bibliothek.gui.dock.control.relocator
Class MergeOperation

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

public class MergeOperation
extends Object
implements RelocateOperation

Uses a Merger to merge two DockStations.

Author:
Benjamin Sigg

Constructor Summary
MergeOperation(DockController controller, Merger merger, 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

MergeOperation

public MergeOperation(DockController controller,
                      Merger merger,
                      DockStation station)
Creates a new operation.

Parameters:
controller - the controller in whose realm this operation works
merger - the merger that will be used to merge the stations
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