Class EventDispatcher

java.lang.Object
org.netbeans.jemmy.EventDispatcher
All Implemented Interfaces:
Outputable, Timeoutable

public class EventDispatcher extends Object implements Outputable, Timeoutable
Provides low level functions for reproducing user actions. One dispatch model uses the managed component's event queue to dispatch events. The other dispatch model uses java.awt.Robot to generate native events. It is an option in the Robot dispatch model to wait for the managed component's event queue to empty before dispatching events. Timeouts used:
EventDispatcher.WaitQueueEmptyTimeout - to wait event queue empty.
EventDispatcher.RobotAutoDelay - param for java.awt.Robot.setAutoDelay method.
EventDispatcher.WaitComponentUnderMouseTimeout - time to wait component under mouse.
Author:
Alexandre Iline (alexandre.iline@sun.com)
See Also:
  • Field Details

    • component

      protected Component component
      Component to dispatch events to.
  • Constructor Details

    • EventDispatcher

      public EventDispatcher(Component comp)
      Constructor.
      Parameters:
      comp - Component to operate with.
  • Method Details