org.csstudio.ui.util.dnd
Class ControlSystemDropTarget
java.lang.Object
org.csstudio.ui.util.dnd.ControlSystemDropTarget
public abstract class ControlSystemDropTarget
- extends java.lang.Object
General purpose utility to allowing Drag-and-Drop "Drop" of any
adaptable or serializable object.
Filters the received items to match the desired type, based on the
order or preference specified. Can also accept plain text.
- Author:
- Gabriele Carcassi, Kay Kasemir
Constructor Summary |
ControlSystemDropTarget(Control control,
java.lang.Class<?>... accepted)
Initialize 'drop' target |
Method Summary |
abstract void |
handleDrop(java.lang.Object item)
To be implemented by derived class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControlSystemDropTarget
public ControlSystemDropTarget(Control control,
java.lang.Class<?>... accepted)
- Initialize 'drop' target
- Parameters:
control
- Control onto which items may be droppedaccepted
- (Base) class of accepted items
handleDrop
public abstract void handleDrop(java.lang.Object item)
- To be implemented by derived class.
Will be called for each 'dropped' item that
has the accepted data type
- Parameters:
item
- Control system item