protected class FlapDockStation.DockableHandle extends Object implements PlaceholderListItem<Dockable>
Dockable
.Constructor and Description |
---|
DockableHandle(Dockable dockable)
Creates a new wrapper around
dockable |
DockableHandle(Dockable dockable,
boolean forceActionSourceCreation)
Creates a new wrapper around
dockable |
Modifier and Type | Method and Description |
---|---|
Dockable |
asDockable()
Gets the
Dockable that is associated with this item. |
FlapDockStationSource |
getActions()
Gets the
DockActionSource that should be shown on the Dockable . |
Dockable |
getDockable() |
DockTitle |
getTitle() |
void |
resetHoldAction()
Sets the action of
getActions() back to the action that was created
by FlapDockStation.createHoldAction() . |
void |
setTitle(DockTitleVersion version) |
public DockableHandle(Dockable dockable)
dockable
dockable
- the dockable to wrappublic DockableHandle(Dockable dockable, boolean forceActionSourceCreation)
dockable
dockable
- the dockable to wrapforceActionSourceCreation
- whether getActions()
must always return a value other
than null
public FlapDockStationSource getActions()
DockActionSource
that should be shown on the Dockable
.null
public void resetHoldAction()
getActions()
back to the action that was created
by FlapDockStation.createHoldAction()
.public Dockable getDockable()
public Dockable asDockable()
PlaceholderListItem
Dockable
that is associated with this item.asDockable
in interface PlaceholderListItem<Dockable>
null
public DockTitle getTitle()
public void setTitle(DockTitleVersion version)