com.mtp.pounder.assrt
Class WindowAssertItem

java.lang.Object
  |
  +--com.mtp.pounder.RecordingItem
        |
        +--com.mtp.pounder.assrt.WindowAssertItem
Direct Known Subclasses:
TextEqualsItem, WindowShowingItem

public abstract class WindowAssertItem
extends RecordingItem

An assertion performed on some part of a specific window.

Author:
Matthew Pekar

Field Summary
protected  int windowID
           
protected  String windowTitle
           
 
Fields inherited from class com.mtp.pounder.RecordingItem
decimalNumberFormat, delay
 
Constructor Summary
WindowAssertItem(Element e, PounderPrefs prefs, ComponentIdentifierFactory f)
           
WindowAssertItem(int windowID)
           
WindowAssertItem(String windowTitle)
           
 
Method Summary
protected  void addXMLAttributes(Element e, Document doc)
           
 boolean equals(Object o)
          Should be called by all subclasses.
protected  String getAttribs()
           
 Window getWindow(WindowWatcher ww)
          Throws PlaybackException if Window is not found.
protected  Window getWindowByID(WindowWatcher ww)
           
protected  Window getWindowByTitle(WindowWatcher ww)
           
 int getWindowID()
           
 String getWindowTitle()
           
 
Methods inherited from class com.mtp.pounder.RecordingItem
buildXMLElement, getDelay, instantiate, playback, setDelay, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

windowID

protected int windowID

windowTitle

protected String windowTitle
Constructor Detail

WindowAssertItem

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

WindowAssertItem

public WindowAssertItem(int windowID)

WindowAssertItem

public WindowAssertItem(String windowTitle)
Method Detail

getWindowID

public int getWindowID()

getWindowTitle

public String getWindowTitle()

getWindow

public Window getWindow(WindowWatcher ww)
                 throws PlaybackException
Throws PlaybackException if Window is not found.

PlaybackException

getWindowByID

protected Window getWindowByID(WindowWatcher ww)
                        throws PlaybackException
PlaybackException

getWindowByTitle

protected Window getWindowByTitle(WindowWatcher ww)
                           throws PlaybackException
PlaybackException

equals

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

Overrides:
equals in class RecordingItem

addXMLAttributes

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

getAttribs

protected String getAttribs()
Overrides:
getAttribs in class RecordingItem


Copyright © 2002 Matthew Pekar. All Rights Reserved.