bibliothek.gui.dock.control.relocator
Class DropOperation

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

public class DropOperation
extends java.lang.Object
implements RelocateOperation

This operation calls DockStation.drop()

Author:
Benjamin Sigg

Constructor Summary
DropOperation(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

DropOperation

public DropOperation(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