Package org.csstudio.ui.util.dnd
Class ControlSystemDropTarget
java.lang.Object
org.csstudio.ui.util.dnd.ControlSystemDropTarget
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.
-
Constructor Summary
ConstructorDescriptionControlSystemDropTarget
(Control control, Class<?>... accepted) Initialize 'drop' target -
Method Summary
Modifier and TypeMethodDescriptionabstract void
handleDrop
(Object item) To be implemented by derived class.
-
Constructor Details
-
ControlSystemDropTarget
Initialize 'drop' target- Parameters:
control
- Control onto which items may be droppedaccepted
- (Base) class of accepted items
-
-
Method Details
-
handleDrop
To be implemented by derived class. Will be called for each 'dropped' item that has the accepted data type- Parameters:
item
- Control system item
-