|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pepper.guiutils.browser.FormElementManager
public class FormElementManager
Base class that provides access to org.w3.dom.Elements that represent html form elements in a page
Constructor Summary | |
---|---|
FormElementManager(WebBrowserView view)
Creates a new FormElementManager instance. |
Method Summary | |
---|---|
static String |
getAttrValue(Node theNode,
String theAttrName)
Get the value of the specified attribute |
Element |
getElement(String id)
Find an element by id |
List |
getElementIds()
Returns a List of Strings id's of the form elements on the page that have an xpath attribute associated with them.. |
HashMap |
getElementsMap()
Return a HashMap where key is Element and value is ElementInfo object. |
String |
getValue(Element node)
Get the value for a particular Element |
String |
getValue(String id)
Get the value of a particular Element named by id |
void |
init(Document theDoc)
Initialize the elementsMap from the passed in Document |
void |
setModified(String id)
Called by the Bridge to manually mark a particular element as modified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormElementManager(WebBrowserView view)
FormElementManager
instance.
view
- a WebBrowserView
valueMethod Detail |
---|
public void init(Document theDoc)
theDoc
- a Document
valuepublic static String getAttrValue(Node theNode, String theAttrName)
theNode
- The Node to examinetheAttrName
- The attribute to get the value of
String
valuepublic void setModified(String id)
id
- The id of the elementpublic HashMap getElementsMap()
HashMap
valuepublic String getValue(Element node)
node
- a Element
value
String
valuepublic String getValue(String id)
id
- a String
value
String
valuepublic List getElementIds()
List
valuepublic Element getElement(String id)
id
- a String
value
Element
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |