com.mtp.pounder.assrt
Class TextEqualsItem

java.lang.Object
  |
  +--com.mtp.pounder.RecordingItem
        |
        +--com.mtp.pounder.assrt.WindowAssertItem
              |
              +--com.mtp.pounder.assrt.TextEqualsItem

public class TextEqualsItem
extends WindowAssertItem

Asserts that the text of a Component is a certain value.

Author:
Matthew Pekar

Field Summary
protected  String componentName
          The name of the JTextComponent to check.
protected  String desiredValue
          The desired text value of the JTextComponent.
 
Fields inherited from class com.mtp.pounder.assrt.WindowAssertItem
windowID, windowTitle
 
Fields inherited from class com.mtp.pounder.RecordingItem
decimalNumberFormat, delay
 
Constructor Summary
TextEqualsItem(Element e, PounderPrefs prefs, ComponentIdentifierFactory f)
           
TextEqualsItem(int windowID, String componentName, String desiredValue)
           
TextEqualsItem(String windowTitle, String componentName, String desiredValue)
           
 
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.
 String toString()
           
 
Methods inherited from class com.mtp.pounder.assrt.WindowAssertItem
getAttribs, getWindow, getWindowByID, getWindowByTitle, getWindowID, getWindowTitle
 
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

componentName

protected String componentName
The name of the JTextComponent to check.


desiredValue

protected String desiredValue
The desired text value of the JTextComponent.

Constructor Detail

TextEqualsItem

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

TextEqualsItem

public TextEqualsItem(int windowID,
                      String componentName,
                      String desiredValue)

TextEqualsItem

public TextEqualsItem(String windowTitle,
                      String componentName,
                      String desiredValue)
Method Detail

equals

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

Overrides:
equals in class WindowAssertItem

addXMLAttributes

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

buildXMLElement

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

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.