jaxcent
Class SearchType

java.lang.Object
  extended byjaxcent.SearchType

public class SearchType
extends java.lang.Object

SearchType is a (backwards compatible) enumeration class. It provides various options for searching for HTML tag elements on the page. Note that "search" in this context may not actually be a search, because this class also provides a "createNew" enumeration!


Field Summary
static SearchType createNew
          createNew is for creating new elements on the page.
static SearchType searchById
          Search by the "ID" attribute.
static SearchType searchByName
          Search by the NAME attribute.
static SearchType searchByTag
          Search by the tag name.
static SearchType searchInputByType
          Search INPUT elements by TYPE.
static SearchType searchInputByValue
          Search INPUT elements by VALUE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searchById

public static SearchType searchById
Search by the "ID" attribute. This is the recommended search method.


searchByTag

public static SearchType searchByTag
Search by the tag name.


searchByName

public static SearchType searchByName
Search by the NAME attribute.


searchInputByType

public static SearchType searchInputByType
Search INPUT elements by TYPE.


searchInputByValue

public static SearchType searchInputByValue
Search INPUT elements by VALUE. Useful in cases like multiple SUBMIT buttons, checkboxes, or radio buttons etc.


createNew

public static SearchType createNew
createNew is for creating new elements on the page. It is not really a search! The newly created element then needs to be inserted at the appopriate place in the page.