bibliothek.gui.dock.common.group
Interface CGroupBehavior

All Known Implementing Classes:
StackGroupBehavior, TopMostGroupBehavior

public interface CGroupBehavior

A CGroupBehavior allows to define groups of CDockable. Groups normaly act together when changing the LocationMode: e.g. if one CDockable is minimized, all the other CDockables follow.

Author:
Benjamin Sigg

Method Summary
 void forward(Dockable dockable, ExtendedMode target, CGroupBehaviorCallback callback)
          Changes the mode of dockable such that it matches target.
 

Method Detail

forward

void forward(Dockable dockable,
             ExtendedMode target,
             CGroupBehaviorCallback callback)
Changes the mode of dockable such that it matches target. This method may also change the ExtendedMode or location of other Dockables 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. Dockables to change their mode.

Parameters:
dockable - the element that was clicked by the user
target - 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 Dockables as well