Class DragSourceRouter

java.lang.Object
com.diffplug.common.swt.dnd.DragSourceRouter

public final class DragSourceRouter extends Object
Provides a mechanism for a single control to route its DragSourceEvents to various listeners. There is only one active listener at a time.
  • Method Details

    • setActiveListener

      public void setActiveListener(DragSourceListener newListener, Transfer[] transfers)
      Sets the DragSourceListener which will get called for this DragSource.
    • forControl

      public static DragSourceRouter forControl(Control ctl)
      Returns the MultipleDragSource for the given Control.