public abstract class ComponentDragOperation extends java.lang.Object implements StationDragOperation
StationDragOperation
will call
Component.repaint()
on creation and when either the
operation succeeds or was canceled.Constructor and Description |
---|
ComponentDragOperation(Dockable dockable,
java.awt.Component component)
Creates a new operation
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ComponentDragOperation(Dockable dockable, java.awt.Component component)
dockable
- the item that is removedcomponent
- the component that needs to be repaintedpublic void canceled()
StationDragOperation
StationDragOperation
implicitly is invalid after a call to this method.canceled
in interface StationDragOperation
public void succeeded()
StationDragOperation
StationDragOperation
implicitly is invalid after a call to this method.succeeded
in interface StationDragOperation
public Dockable getDockable()
null
if this
operation is no longer requirednull
protected abstract void destroy()