Package bibliothek.gui.dock.common.group
Interface CGroupMovement
- All Known Implementing Classes:
SingleGroupMovement,StackGroupMovement
public interface CGroupMovement
A group movement describes the movement of an undefined number of
Dockables
by a LocationModeManager. The moved Dockables have to be somehow in a group,
and that group has to be described by one Dockable. A logical choice would be that
all Dockables are children of some DockStation and the DockStation
represents the entire group.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(CGroupBehaviorCallback callback) Executes this movement.booleanforceAccept(DockStation parent, Dockable child) Tells someDockAcceptances whether a check forchildbecoming a child ofparentneeds to be performed.
-
Method Details
-
apply
Executes this movement. While this operation runs, focus management is disabled. The framework will choose a new focusedDockableonce this method finished.
Note: While the variousapply-methods ofLocationModeManageronly take one argument, more than oneDockablemight be moved because of the internal logic of someLocationModes. Implementations should assume that any cached information about anyDockableis invalid once aDockablehas been moved.- Parameters:
callback- can be used by this object to freely move around anyDockable
-
forceAccept
Tells someDockAcceptances whether a check forchildbecoming a child ofparentneeds to be performed. The default result of this method should betrue. A value oftruedoes not prevent customDockAcceptances from preventing the operation.- Parameters:
parent- the future parent ofchildchild- the future child ofparent- Returns:
trueif this relation can be allowed without further checks
-