Class EventPlayer


  • public class EventPlayer
    extends java.lang.Object
    EventPlayer uses the java.awt.robot API to inject streams of events into a component. An event player is instantiated on a given component and then passes events to that component every time its play() method is called.
    Version:
    $Id$
    Author:
    Michael Shilman
    See Also:
    EventRecorder
    Pt.AcceptedRating:
    Red
    • Constructor Summary

      Constructors 
      Constructor Description
      EventPlayer​(java.awt.Component component)
      Play events into the given component.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void play​(java.awt.event.InputEvent[] events)
      Play the given sequence of events into the component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventPlayer

        public EventPlayer​(java.awt.Component component)
        Play events into the given component.
    • Method Detail

      • play

        public void play​(java.awt.event.InputEvent[] events)
        Play the given sequence of events into the component.