bibliothek.gui.dock.common.group
Class SingleGroupMovement

java.lang.Object
  extended by bibliothek.gui.dock.common.group.SingleGroupMovement
All Implemented Interfaces:
CGroupMovement

public class SingleGroupMovement
extends Object
implements CGroupMovement

This CGroupMovement is the most basic movemenet as it represents the movement of one lonely Dockable.

Author:
Benjamin Sigg

Constructor Summary
SingleGroupMovement(Dockable dockable, ExtendedMode target)
          Creates a new movement object.
 
Method Summary
 void apply(CGroupBehaviorCallback callback)
          Executes this movement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleGroupMovement

public SingleGroupMovement(Dockable dockable,
                           ExtendedMode target)
Creates a new movement object.

Parameters:
dockable - the element whose location will be changed
target - the new mode for dockable
Method Detail

apply

public void apply(CGroupBehaviorCallback callback)
Description copied from interface: CGroupMovement
Executes this movement. While this operation runs, focus management is disabled. The framework will choose a new focused Dockable once this method finished.

Specified by:
apply in interface CGroupMovement
Parameters:
callback - can be used by this object to freely move around any Dockable