Package bibliothek.gui.dock.common.group
Class SingleGroupMovement
java.lang.Object
bibliothek.gui.dock.common.group.SingleGroupMovement
- All Implemented Interfaces:
CGroupMovement
This
CGroupMovement is the most basic movement as it represents the movement of one
lonely Dockable.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionSingleGroupMovement(Dockable dockable, ExtendedMode target) Creates a new movement object. -
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.
-
Constructor Details
-
SingleGroupMovement
Creates a new movement object.- Parameters:
dockable- the element whose location will be changedtarget- the new mode fordockable
-
-
Method Details
-
apply
Description copied from interface:CGroupMovementExecutes 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.- Specified by:
applyin interfaceCGroupMovement- Parameters:
callback- can be used by this object to freely move around anyDockable
-
forceAccept
Description copied from interface:CGroupMovementTells 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.- Specified by:
forceAcceptin interfaceCGroupMovement- Parameters:
parent- the future parent ofchildchild- the future child ofparent- Returns:
trueif this relation can be allowed without further checks
-