|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jniwrapper.win32.ie.dom.ElementTypes
public class ElementTypes
This class is helper for resolving element types. For example, this class contains
ElementTypes.isLink(Element) method that returns true for hyperlink element (tag name equals to "a").
| Field Summary | |
|---|---|
static java.lang.String |
TAG_BODY
|
static java.lang.String |
TAG_BUTTON
|
static java.lang.String |
TAG_CHECKBOX
|
static java.lang.String |
TAG_DIV
|
static java.lang.String |
TAG_FILE_UPLOAD
|
static java.lang.String |
TAG_FORM
|
static java.lang.String |
TAG_HEAD
|
static java.lang.String |
TAG_IMAGE
|
static java.lang.String |
TAG_INPUT
|
static java.lang.String |
TAG_LINK
|
static java.lang.String |
TAG_PASSWORD_FIELD
|
static java.lang.String |
TAG_RADIO_BUTTON
|
static java.lang.String |
TAG_SELECT
|
static java.lang.String |
TAG_SELECT_OPTION
|
static java.lang.String |
TAG_SUBMIT
|
static java.lang.String |
TAG_TABLE
|
static java.lang.String |
TAG_TEXT_AREA
|
static java.lang.String |
TAG_TEXT_FIELD
|
static java.lang.String |
TYPE_BUTTON
|
static java.lang.String |
TYPE_CHECKBOX
|
static java.lang.String |
TYPE_FILE_UPLOAD
|
static java.lang.String |
TYPE_PASSWORD_FIELD
|
static java.lang.String |
TYPE_RADIO_BUTTON
|
static java.lang.String |
TYPE_SUBMIT
|
static java.lang.String |
TYPE_TEXT_FIELD
|
| Constructor Summary | |
|---|---|
ElementTypes()
|
|
| Method Summary | |
|---|---|
static boolean |
isBody(org.w3c.dom.Element element)
Returns true if specified element is body element. |
static boolean |
isButton(org.w3c.dom.Element element)
Returns true if specified element is button. |
static boolean |
isCheckbox(org.w3c.dom.Element element)
Returns true if specified element is checkbox. |
static boolean |
isDiv(org.w3c.dom.Element element)
Returns true if specified element is div element. |
static boolean |
isElementWithTag(org.w3c.dom.Element element,
java.lang.String tagName)
Returns true if element is represented by tag with specified name. |
static boolean |
isElementWithType(org.w3c.dom.Element element,
java.lang.String type)
Return true if element has specified type attribute. |
static boolean |
isFileUpload(org.w3c.dom.Element element)
Returns true if specified element is file upload element. |
static boolean |
isForm(org.w3c.dom.Element element)
Returns true if specified element is form element. |
static boolean |
isHead(org.w3c.dom.Element element)
Returns true if specified element is head element. |
static boolean |
isImage(org.w3c.dom.Element element)
Returns true if specified element is image element. |
static boolean |
isLink(org.w3c.dom.Element element)
Returns true if specified element is link element. |
static boolean |
isPasswordField(org.w3c.dom.Element element)
Returns true if specified element is password field. |
static boolean |
isRadioButton(org.w3c.dom.Element element)
Returns true if specified element is radio button. |
static boolean |
isSelect(org.w3c.dom.Element element)
Returns true if specified element is select element. |
static boolean |
isSelectOption(org.w3c.dom.Element element)
Returns true if specified element is select option. |
static boolean |
isSubmit(org.w3c.dom.Element element)
Returns true if specified element is submit. |
static boolean |
isTable(org.w3c.dom.Element element)
Returns true if specified element is table element. |
static boolean |
isTextArea(org.w3c.dom.Element element)
Returns true if specified element is text area. |
static boolean |
isTextField(org.w3c.dom.Element element)
Returns true if specified element is text field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAG_HEAD
public static final java.lang.String TAG_BODY
public static final java.lang.String TAG_LINK
public static final java.lang.String TAG_IMAGE
public static final java.lang.String TAG_DIV
public static final java.lang.String TAG_TABLE
public static final java.lang.String TAG_FORM
public static final java.lang.String TAG_INPUT
public static final java.lang.String TAG_TEXT_FIELD
public static final java.lang.String TAG_PASSWORD_FIELD
public static final java.lang.String TAG_CHECKBOX
public static final java.lang.String TAG_RADIO_BUTTON
public static final java.lang.String TAG_FILE_UPLOAD
public static final java.lang.String TAG_SUBMIT
public static final java.lang.String TYPE_TEXT_FIELD
public static final java.lang.String TYPE_PASSWORD_FIELD
public static final java.lang.String TYPE_CHECKBOX
public static final java.lang.String TYPE_RADIO_BUTTON
public static final java.lang.String TYPE_FILE_UPLOAD
public static final java.lang.String TYPE_BUTTON
public static final java.lang.String TYPE_SUBMIT
public static final java.lang.String TAG_BUTTON
public static final java.lang.String TAG_TEXT_AREA
public static final java.lang.String TAG_SELECT
public static final java.lang.String TAG_SELECT_OPTION
| Constructor Detail |
|---|
public ElementTypes()
| Method Detail |
|---|
public static boolean isHead(org.w3c.dom.Element element)
element - DOM element
public static boolean isBody(org.w3c.dom.Element element)
element - DOM element
public static boolean isLink(org.w3c.dom.Element element)
element - DOM element
public static boolean isImage(org.w3c.dom.Element element)
element - DOM element
public static boolean isDiv(org.w3c.dom.Element element)
element - DOM element
public static boolean isTable(org.w3c.dom.Element element)
element - DOM element
public static boolean isForm(org.w3c.dom.Element element)
element - DOM element
public static boolean isTextField(org.w3c.dom.Element element)
element - DOM element
public static boolean isTextArea(org.w3c.dom.Element element)
element - DOM element
public static boolean isPasswordField(org.w3c.dom.Element element)
element - DOM element
public static boolean isCheckbox(org.w3c.dom.Element element)
element - DOM element
public static boolean isRadioButton(org.w3c.dom.Element element)
element - DOM element
public static boolean isSelect(org.w3c.dom.Element element)
element - DOM element
public static boolean isSelectOption(org.w3c.dom.Element element)
element - DOM element
public static boolean isButton(org.w3c.dom.Element element)
element - DOM element
public static boolean isFileUpload(org.w3c.dom.Element element)
element - DOM element
public static boolean isSubmit(org.w3c.dom.Element element)
element - DOM element
public static boolean isElementWithType(org.w3c.dom.Element element,
java.lang.String type)
element - DOM elementtype - value for type attribute
public static boolean isElementWithTag(org.w3c.dom.Element element,
java.lang.String tagName)
element - DOM elementtagName - HTML tag name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||