bibliothek.gui.dock.station.support
Class ComponentDragOperation

java.lang.Object
  extended by bibliothek.gui.dock.station.support.ComponentDragOperation
All Implemented Interfaces:
StationDragOperation

public abstract class ComponentDragOperation
extends Object
implements StationDragOperation

This implementation of StationDragOperation will call Component.repaint() on creation and when either the operation succeeeds or was canceled.

Author:
Benjamin Sigg

Constructor Summary
ComponentDragOperation(Dockable dockable, Component component)
          Creates a new operation
 
Method Summary
 void canceled()
          Called if the drag and drop operation has been canceled.
protected abstract  void destroy()
          Called once this operation is no longer required
 Dockable getDockable()
          Gets the dockable that is moved around or null if this operation is no longer required
 void succeeded()
          Called if the drag and drop operation successfully finished.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentDragOperation

public ComponentDragOperation(Dockable dockable,
                              Component component)
Creates a new operation

Parameters:
dockable - the item that is removed
component - the component that needs to be repainted
Method Detail

canceled

public void canceled()
Description copied from interface: StationDragOperation
Called if the drag and drop operation has been canceled. This StationDragOperation implicitely is invalid after a call to this method.

Specified by:
canceled in interface StationDragOperation

succeeded

public void succeeded()
Description copied from interface: StationDragOperation
Called if the drag and drop operation successfully finished. This StationDragOperation implicitely is invalid after a call to this method.

Specified by:
succeeded in interface StationDragOperation

getDockable

public Dockable getDockable()
Gets the dockable that is moved around or null if this operation is no longer required

Returns:
the item that is dragged or null

destroy

protected abstract void destroy()
Called once this operation is no longer required