Class DragAwareEventQueue

java.lang.Object
java.awt.EventQueue
org.fest.swing.input.DragAwareEventQueue

class DragAwareEventQueue extends EventQueue
Catches native drop target events, which are normally hidden from AWTEventListeners.
  • Field Details

  • Constructor Details

  • Method Details

    • pop

      public void pop() throws EmptyStackException
      Stops dispatching events using this EventQueue, only if this EventQueue is the same as the Toolkit's system event queue. Any pending events are transferred to the previous EventQueue for processing.
      Overrides:
      pop in class EventQueue
      Throws:
      EmptyStackException - if no previous push was made on this EventQueue.
    • dispatchEvent

      protected void dispatchEvent(AWTEvent e)
      Dispatch native drag/drop events the same way non-native drags are reported. Enter/Exit are reported with the appropriate source, while drag and release events use the drag source as the source.
      Overrides:
      dispatchEvent in class EventQueue
      Parameters:
      e - an instance of java.awt.AWTEvent.
    • relayDnDEvent

      private void relayDnDEvent(MouseEvent event)