com.mtp.pounder
Class InputMethodItem

java.lang.Object
  |
  +--com.mtp.pounder.RecordingItem
        |
        +--com.mtp.pounder.ComponentItem
              |
              +--com.mtp.pounder.InputMethodItem

public class InputMethodItem
extends ComponentItem

Represents a mouse click.

Author:
Matthew Pekar

Field Summary
protected  byte[] serializedEvent
          The serialized InputMethodEvent, with source set to null.
 
Fields inherited from class com.mtp.pounder.ComponentItem
component, robots, windowID
 
Fields inherited from class com.mtp.pounder.RecordingItem
decimalNumberFormat, delay
 
Constructor Summary
InputMethodItem(Element e, PounderPrefs prefs, ComponentIdentifierFactory f)
           
InputMethodItem(InputMethodEvent e, int windowID, long delay, ComponentIdentifierFactory f)
           
 
Method Summary
protected  void addXMLAttributes(Element e, Document doc)
           
protected  Element buildXMLElement(Document doc)
           
 boolean equals(Object o)
          Should be called by all subclasses.
 void playback(WindowWatcher ww, PounderPrefs prefs)
          Playback on this Component.
protected  InputMethodEvent restoreEvent(byte[] serialized)
           
protected  boolean serializedEventsEqual(byte[] event1, byte[] event2)
           
protected  byte[] serializeEvent(InputMethodEvent e)
           
 String toString()
           
 
Methods inherited from class com.mtp.pounder.ComponentItem
getAttribs, getComponent, getComponentIdentifier, getRobot, getWindowID, setComponentIdentifier, setWindowID
 
Methods inherited from class com.mtp.pounder.RecordingItem
getDelay, instantiate, setDelay, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serializedEvent

protected byte[] serializedEvent
The serialized InputMethodEvent, with source set to null.

Constructor Detail

InputMethodItem

public InputMethodItem(Element e,
                       PounderPrefs prefs,
                       ComponentIdentifierFactory f)

InputMethodItem

public InputMethodItem(InputMethodEvent e,
                       int windowID,
                       long delay,
                       ComponentIdentifierFactory f)
Method Detail

serializeEvent

protected byte[] serializeEvent(InputMethodEvent e)
                         throws IOException
IOException

buildXMLElement

protected Element buildXMLElement(Document doc)
Specified by:
buildXMLElement in class RecordingItem

addXMLAttributes

protected void addXMLAttributes(Element e,
                                Document doc)
Overrides:
addXMLAttributes in class ComponentItem

serializedEventsEqual

protected boolean serializedEventsEqual(byte[] event1,
                                        byte[] event2)

equals

public boolean equals(Object o)
Description copied from class: RecordingItem
Should be called by all subclasses.

Overrides:
equals in class ComponentItem

restoreEvent

protected InputMethodEvent restoreEvent(byte[] serialized)
                                 throws IOException,
                                        ClassNotFoundException
IOException
ClassNotFoundException

playback

public void playback(WindowWatcher ww,
                     PounderPrefs prefs)
              throws Exception
Description copied from class: RecordingItem
Playback on this Component.

Specified by:
playback in class RecordingItem
Exception

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002 Matthew Pekar. All Rights Reserved.