Package bibliothek.gui.dock.common.group
Interface CGroupBehaviorCallback
public interface CGroupBehaviorCallback
A set of information and methods for the
CGroupBehavior.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptiongetLocation(Dockable dockable) Gets the current location ofdockable.LocationModeManager<? extends LocationMode>Gets theLocationModeManagerwhich is handling this callback.voidsetLocation(Dockable dockable, Location location) Sets the location ofdockable.
Note:LocationModes may decide that more than oneDockablemust be moved in order to accomplish the goal, any cached location information aboutDockables should be considered invalid once this method has been executed.voidsetMode(Dockable dockable, ExtendedMode mode) Sets theExtendedModeofdockableusing all available history information.
Note:LocationModes may decide that more than oneDockablemust be moved in order to accomplish the goal, any cached location information aboutDockables should be considered invalid once this method has been executed.
-
Method Details
-
getManager
LocationModeManager<? extends LocationMode> getManager()Gets theLocationModeManagerwhich is handling this callback.- Returns:
- the manager, not
null
-
setMode
Sets theExtendedModeofdockableusing all available history information.
Note:LocationModes may decide that more than oneDockablemust be moved in order to accomplish the goal, any cached location information aboutDockables should be considered invalid once this method has been executed.- Parameters:
dockable- the element whose mode is going to changemode- the new mode
-
getLocation
Gets the current location ofdockable.- Parameters:
dockable- some item whose location is requested- Returns:
- the location, may be
null
-
setLocation
Sets the location ofdockable.
Note:LocationModes may decide that more than oneDockablemust be moved in order to accomplish the goal, any cached location information aboutDockables should be considered invalid once this method has been executed.- Parameters:
dockable- the element whose location is going to be setlocation- the new location
-