org.safs.selenium
Class SGuiObjectVector

java.lang.Object
  extended byorg.safs.GuiObjectVector
      extended byorg.safs.selenium.SGuiObjectVector

public class SGuiObjectVector
extends GuiObjectVector

Part of the required implementation to support SAFS "standard" recognition strings. External users would normally not use this class directly. Consequently, the API and associated data is subject to change without notice.


Field Summary
 
Fields inherited from class org.safs.GuiObjectVector
childName, childSeparator, DEFAULT_CHILD_SEPARATOR, OBJECTTYPE_POPUPMENU, OBJECTTYPE_POPUPWINDOW, path, pathVector, SIMPLETYPE_POPUPMENU, windowName
 
Constructor Summary
SGuiObjectVector(java.lang.String window, java.lang.String child, java.lang.String pathString)
          Default Constructor for our SGuiObjectVector.
 
Method Summary
 GuiChildIterator createGuiChildIterator(java.util.List gather)
          Provide a GuiChildIterator instance as required.
 GuiChildIterator createGuiChildIterator(java.lang.Object aparent, GuiObjectVector govVector, java.util.List gather)
          Provide our GuiChildIterator instance as required.
 GuiObjectRecognition createGuiObjectRecognition(java.lang.String subpath)
          Provide our SGuiObjectRecognition instance as required during initialization.
 java.lang.Object[] getChildObjects(java.lang.Object parent)
          Return an array representing all known child objects of the parent.
 SGuiObjectRecognition getChildRecognition(int index)
          Casts the GuiObjectRecognition from getChildGuiObjectRecognition to our subclass.
 GuiClassData getGuiClassData()
          Return our SGuiClassData subclass as required.
 java.lang.Object[] getParentObjects()
          Return an array representing all known top level window objects.
 boolean isValidGuiContainer(java.lang.Object object)
          Return true if the object is a Container.
 boolean isValidGuiObject(java.lang.Object object)
          Return true if the object is a Component.
 
Methods inherited from class org.safs.GuiObjectVector
getChildGuiObjectRecognition, getChildMatchData, getChildName, getFinalChildGuiObjectRecognition, getMatchingChildObject, getMatchingParentObject, getParentGuiObjectRecognition, getRecognitionDepth, getVectorString, getWindowName, initGuiObjectRecognition, isMatchingParent, isSeekingPopupMenu, isTopLevelPopupWindow, iterateChildMatchData, iterateChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SGuiObjectVector

public SGuiObjectVector(java.lang.String window,
                        java.lang.String child,
                        java.lang.String pathString)
Default Constructor for our SGuiObjectVector.

Method Detail

createGuiChildIterator

public GuiChildIterator createGuiChildIterator(java.lang.Object aparent,
                                               GuiObjectVector govVector,
                                               java.util.List gather)
Provide our GuiChildIterator instance as required. We currently use the default org.safs.GuiChildIterator

Specified by:
createGuiChildIterator in class GuiObjectVector

createGuiChildIterator

public GuiChildIterator createGuiChildIterator(java.util.List gather)
Provide a GuiChildIterator instance as required. We currently use the default org.safs.GuiChildIterator

Specified by:
createGuiChildIterator in class GuiObjectVector

createGuiObjectRecognition

public GuiObjectRecognition createGuiObjectRecognition(java.lang.String subpath)
Provide our SGuiObjectRecognition instance as required during initialization.

Specified by:
createGuiObjectRecognition in class GuiObjectVector

getGuiClassData

public GuiClassData getGuiClassData()
Return our SGuiClassData subclass as required.

Specified by:
getGuiClassData in class GuiObjectVector

getChildRecognition

public SGuiObjectRecognition getChildRecognition(int index)
Casts the GuiObjectRecognition from getChildGuiObjectRecognition to our subclass.


getParentObjects

public java.lang.Object[] getParentObjects()
Return an array representing all known top level window objects.

Specified by:
getParentObjects in class GuiObjectVector

getChildObjects

public java.lang.Object[] getChildObjects(java.lang.Object parent)
Return an array representing all known child objects of the parent.

Specified by:
getChildObjects in class GuiObjectVector

isValidGuiObject

public boolean isValidGuiObject(java.lang.Object object)
Return true if the object is a Component. Currently we check if the object is a java.awt.Component subclass.

Specified by:
isValidGuiObject in class GuiObjectVector

isValidGuiContainer

public boolean isValidGuiContainer(java.lang.Object object)
Return true if the object is a Container. Currently we check if object is java.awt.Container subclass.

Specified by:
isValidGuiContainer in class GuiObjectVector