|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.action.view.ConnectingViewItem<A>
A
- the kind of item this representspublic abstract class ConnectingViewItem<A>
A connecting view item is a wrapper around another ViewItem
. This
item registers when a DockController
is available and needed. It
does this by observing a Dockable
.
Constructor Summary | |
---|---|
ConnectingViewItem(Dockable dockable,
ViewItem<A> delegate)
Creates a new item. |
Method Summary | |
---|---|
void |
bind()
Binds this item to its action |
protected abstract void |
changed(DockController oldController,
DockController newController)
Called when the DockController changed. |
void |
check()
Checks the current DockController and may replace the controller
when a new one is available. |
DockAction |
getAction()
Gets the action that is represented by this target. |
A |
getItem()
Gets this item as component. |
void |
unbind()
Unbinds this item from its action |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectingViewItem(Dockable dockable, ViewItem<A> delegate)
dockable
- the element to observe for a DockController
.delegate
- the delegate that carries out most of the workMethod Detail |
---|
public void check()
DockController
and may replace the controller
when a new one is available.
protected abstract void changed(DockController oldController, DockController newController)
DockController
changed.
oldController
- the old controller, can be null
newController
- the new controller, can be null
public void bind()
ViewItem
bind
in interface ViewItem<A>
public DockAction getAction()
ViewItem
getAction
in interface ViewItem<A>
null
public A getItem()
ViewItem
getItem
in interface ViewItem<A>
public void unbind()
ViewItem
unbind
in interface ViewItem<A>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |