Class ControlSystemDropTarget

java.lang.Object
org.csstudio.ui.util.dnd.ControlSystemDropTarget

public abstract class ControlSystemDropTarget extends 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.

  • Constructor Details

    • ControlSystemDropTarget

      public ControlSystemDropTarget(Control control, Class<?>... accepted)
      Initialize 'drop' target
      Parameters:
      control - Control onto which items may be dropped
      accepted - (Base) class of accepted items
  • Method Details

    • handleDrop

      public abstract void handleDrop(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