bibliothek.gui.dock.common.group
Class TopMostGroupBehavior
java.lang.Object
bibliothek.gui.dock.common.group.TopMostGroupBehavior
- All Implemented Interfaces:
- CGroupBehavior
public class TopMostGroupBehavior
- extends Object
- implements CGroupBehavior
This most simple CGroupBehavior
just set the mode of the one
Dockable
whose mode should change anyway.
- Author:
- Benjamin Sigg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopMostGroupBehavior
public TopMostGroupBehavior()
forward
public void forward(Dockable dockable,
ExtendedMode target,
CGroupBehaviorCallback callback)
- Description copied from interface:
CGroupBehavior
- Changes the mode of
dockable
such that it matches target
. This method may also change
the ExtendedMode
or location of other Dockable
s to keep the group together. While this
method runs, focus management is disabled. The focus will be transfered to dockable
if
target
represents a LocationMode
that requires focus transfer.
Dockable
s to change their mode.
- Specified by:
forward
in interface CGroupBehavior
- Parameters:
dockable
- the element that was clicked by the usertarget
- the extended mode intended for dockable
callback
- a set of information and methods that may be needed to apply all the necessary changes to
dockable
and maybe other Dockable
s as well