bibliothek.gui.dock
Class FlapDockStation.DockableHandle

java.lang.Object
  extended by bibliothek.gui.dock.FlapDockStation.DockableHandle
All Implemented Interfaces:
PlaceholderListItem<Dockable>
Enclosing class:
FlapDockStation

protected class FlapDockStation.DockableHandle
extends Object
implements PlaceholderListItem<Dockable>

Handles title, listeners and actions that are associated with a Dockable.

Author:
Benjamin Sigg

Constructor Summary
FlapDockStation.DockableHandle(Dockable dockable)
          Creates a new wrapper around dockable
FlapDockStation.DockableHandle(Dockable dockable, boolean forceActionSourceCreation)
          Creates a new wrapper around dockable
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlapDockStation.DockableHandle

public FlapDockStation.DockableHandle(Dockable dockable)
Creates a new wrapper around dockable

Parameters:
dockable - the dockable to wrap

FlapDockStation.DockableHandle

public FlapDockStation.DockableHandle(Dockable dockable,
                                      boolean forceActionSourceCreation)
Creates a new wrapper around dockable

Parameters:
dockable - the dockable to wrap
forceActionSourceCreation - whether getActions() must always return a value other than null
Method Detail

getActions

public FlapDockStationSource getActions()
Gets the DockActionSource that should be shown on the Dockable.

Returns:
the action source, can be null

resetHoldAction

public void resetHoldAction()
Sets the action of getActions() back to the action that was created by FlapDockStation.createHoldAction().


getDockable

public Dockable getDockable()

asDockable

public Dockable asDockable()
Description copied from interface: PlaceholderListItem
Gets the Dockable that is associated with this item.

Specified by:
asDockable in interface PlaceholderListItem<Dockable>
Returns:
the dockable, not null

getTitle

public DockTitle getTitle()

setTitle

public void setTitle(DockTitleVersion version)