bibliothek.gui.dock.control.relocator
Class MoveOperation

java.lang.Object
  extended by bibliothek.gui.dock.control.relocator.MoveOperation
All Implemented Interfaces:
RelocateOperation

public class MoveOperation
extends java.lang.Object
implements RelocateOperation

This operation calls DockStation.move().

Author:
Benjamin Sigg

Constructor Summary
MoveOperation(DockController controller, DockStation station)
          Creates a new operation
 
Method Summary
 void execute(Dockable selection, DockRelocatorListener listener)
          Executes this operation.
 DockStation getStation()
          Gets the station which is the target of this operation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveOperation

public MoveOperation(DockController controller,
                     DockStation station)
Creates a new operation

Parameters:
controller - the controller in whose realm this operation works
station - the target of this operation
Method Detail

getStation

public DockStation getStation()
Description copied from interface: RelocateOperation
Gets the station which is the target of this operation

Specified by:
getStation in interface RelocateOperation
Returns:
the target, not null

execute

public void execute(Dockable selection,
                    DockRelocatorListener listener)
Description copied from interface: RelocateOperation
Executes this operation.

Specified by:
execute in interface RelocateOperation
Parameters:
selection - the element that is moved around
listener - a listener to be informed about events happening because of this operation