A - the kind of item this representspublic abstract class ConnectingViewItem<A> extends Object implements ViewItem<A>
ViewItem. This
item registers when a DockController is available and needed. It
does this by observing a Dockable.| Constructor and Description |
|---|
ConnectingViewItem(Dockable dockable,
ViewItem<A> delegate)
Creates a new item.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public ConnectingViewItem(Dockable dockable, ViewItem<A> delegate)
dockable - the element to observe for a DockController.delegate - the delegate that carries out most of the workpublic 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 nullnewController - the new controller, can be nullpublic void bind()
ViewItempublic DockAction getAction()
ViewItemCopyright © 2017 Docking Frames. All rights reserved.