protected class AbstractLocationMode.DockableHandle extends Object
Constructor and Description |
---|
AbstractLocationMode.DockableHandle(Dockable dockable)
Creates a new handle.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Called when this handle is no longer of any use
|
DockActionSource |
getActions(Mode<Location> mode)
Called by
AbstractLocationMode.getActionsFor(Dockable, Mode)
to the actions related to this dockable. |
Dockable |
getDockable()
Gets the element of this handle.
|
public AbstractLocationMode.DockableHandle(Dockable dockable)
dockable
- the new element, not null
public Dockable getDockable()
null
public void destroy()
public DockActionSource getActions(Mode<Location> mode)
AbstractLocationMode.getActionsFor(Dockable, Mode)
to the actions related to this dockable. The default implementation
is to return a source returned by the current LocationModeActionProvider
.mode
- the current mode of this elementnull