Package bibliothek.gui.dock.facile.mode
Class AbstractLocationMode.DockableHandle
java.lang.Object
bibliothek.gui.dock.facile.mode.AbstractLocationMode.DockableHandle
- Enclosing class:
AbstractLocationMode<A extends ModeArea>
Meta information about a currently registered Dockable.
- Author:
- Benjamin Sigg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Called when this handle is no longer of any usegetActions(Mode<Location> mode) Called byAbstractLocationMode.getActionsFor(Dockable, Mode)to the actions related to this dockable.Gets the element of this handle.
-
Constructor Details
-
DockableHandle
Creates a new handle.- Parameters:
dockable- the new element, notnull
-
-
Method Details
-
getDockable
Gets the element of this handle.- Returns:
- the element, not
null
-
destroy
public void destroy()Called when this handle is no longer of any use -
getActions
Called byAbstractLocationMode.getActionsFor(Dockable, Mode)to the actions related to this dockable. The default implementation is to return a source returned by the currentLocationModeActionProvider.- Parameters:
mode- the current mode of this element- Returns:
- the actions or
null
-