com.jniwrapper.win32.ie.dom
Interface HTMLElement

All Superinterfaces:
org.w3c.dom.Element, org.w3c.dom.events.EventTarget, org.w3c.dom.html.HTMLElement, HTMLNode, org.w3c.dom.Node
All Known Subinterfaces:
OptionElement, SelectElement, Table, TableCell, TableRow
All Known Implementing Classes:
TableCellImpl, TableImpl, TableRowImpl

public interface HTMLElement
extends HTMLNode, org.w3c.dom.html.HTMLElement, org.w3c.dom.events.EventTarget

This class represents element in the HTML document.


Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Method Summary
 void click()
          Emulates click on the element.
 void fireEvent(java.lang.String eventName)
          Fires event on the element.
 void fireEvent(java.lang.String eventName, EventObjectFactory eventObjectFactory)
          Fires event on the element.
 void focus()
          Sets focus to the element.
 java.awt.Point getAbsoluteLocation()
          Returns element absolute location.
 java.awt.Color getBackground()
          Returns element background color.
 ElementBorder getBorder()
          Returns element border.
 java.lang.String getClassName()
          Sets the class attribute of the element.
 java.lang.String getDir()
          Specifies the base direction of directionally neutral text and the directionality of tables.
 java.lang.String getElementClass()
          Returns element class specified in class attribute (like <a class='menuLink'>Home</a>)
 java.lang.Object getElementPeer()
          Returns DOM element native peer.
 java.awt.Dimension getElementSize()
          Returns element size.
 java.lang.String getHeight()
          Returns the element height
 java.lang.String getHTML()
          Returns HTML between tags of the element.
 java.lang.String getId()
          Returns the element's identifier.
 java.lang.String getLang()
          Returns Language code defined in RFC 1766.
 java.awt.Point getLocation()
          Returns element location relative to the offset parent element.
 HTMLElement getOffsetParent()
          Returns element used as origin of coordinates for element location.
 java.lang.String getStyle(java.lang.String styleName)
          Returns element style.
 java.lang.String getText()
          Returns text between tags of the element.
 java.lang.String getTitle()
          Returns the element's advisory title.
 java.lang.String getWidth()
          Returns the element width
 void mouseOver()
          Fires mouse over event on the element.
 void setAttribute(java.lang.String name, java.lang.String value, boolean caseSensitive)
          This method is specially designed to set an element attribute and specify whether its name is case sensitive or not.
 void setBackground(java.awt.Color color)
          Sets element background color.
 void setBorder(java.awt.Color color)
          Sets element border.
 void setBorder(ElementBorder border)
          Sets element border.
 void setClassName(java.lang.String className)
          Returns the class attribute of the element.
 void setDir(java.lang.String dir)
          Specifies the base direction of directionally neutral text and the directionality of tables.
 void setHTML(java.lang.String html)
          Sets HTML between tags of the element.
 void setId(java.lang.String id)
          Sets the element's identifier.
 void setLang(java.lang.String lang)
          Sets Language code defined in RFC 1766.
 void setStyle(java.lang.String styleName, java.lang.String value)
          Sets element style.
 void setText(java.lang.String text)
          Sets text between tags of the element.
 void setTitle(java.lang.String title)
          Sets the element's advisory title.
 
Methods inherited from interface com.jniwrapper.win32.ie.dom.HTMLNode
getNodePeer, getObjectID
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.w3c.dom.events.EventTarget
addEventListener, dispatchEvent, removeEventListener
 

Method Detail

getId

java.lang.String getId()
Returns the element's identifier. See the id attribute definition in HTML 4.0.

Specified by:
getId in interface org.w3c.dom.html.HTMLElement
Returns:
the element's identifier.

setId

void setId(java.lang.String id)
Sets the element's identifier. See the id attribute definition in HTML 4.0.

Specified by:
setId in interface org.w3c.dom.html.HTMLElement
Parameters:
id - the element's identifier.

getTitle

java.lang.String getTitle()
Returns the element's advisory title. See the title attribute definition in HTML 4.0.

Specified by:
getTitle in interface org.w3c.dom.html.HTMLElement
Returns:
the element's advisory title.

setTitle

void setTitle(java.lang.String title)
Sets the element's advisory title. See the title attribute definition in HTML 4.0.

Specified by:
setTitle in interface org.w3c.dom.html.HTMLElement
Parameters:
title - the element's advisory title.

getLang

java.lang.String getLang()
Returns Language code defined in RFC 1766. See the lang attribute definition in HTML 4.0.

Specified by:
getLang in interface org.w3c.dom.html.HTMLElement
Returns:
Language code defined in RFC 1766.

setLang

void setLang(java.lang.String lang)
Sets Language code defined in RFC 1766. See the lang attribute definition in HTML 4.0.

Specified by:
setLang in interface org.w3c.dom.html.HTMLElement
Parameters:
lang - Language code defined in RFC 1766.

getDir

java.lang.String getDir()
Specifies the base direction of directionally neutral text and the directionality of tables. See the dir attribute definition in HTML 4.0.

Specified by:
getDir in interface org.w3c.dom.html.HTMLElement
Returns:
the base direction of directionally neutral text

setDir

void setDir(java.lang.String dir)
Specifies the base direction of directionally neutral text and the directionality of tables. See the dir attribute definition in HTML 4.0.

Specified by:
setDir in interface org.w3c.dom.html.HTMLElement
Parameters:
dir - the base direction of directionally neutral text

getClassName

java.lang.String getClassName()
Sets the class attribute of the element. This attribute has been renamed due to conflicts with the "class" keyword exposed by many languages. See the class attribute definition in HTML 4.0.

Specified by:
getClassName in interface org.w3c.dom.html.HTMLElement
Returns:
The class attribute of the element.

setClassName

void setClassName(java.lang.String className)
Returns the class attribute of the element. This attribute has been renamed due to conflicts with the "class" keyword exposed by many languages. See the class attribute definition in HTML 4.0.

Specified by:
setClassName in interface org.w3c.dom.html.HTMLElement
Parameters:
className - The class attribute of the element.

getText

java.lang.String getText()
Returns text between tags of the element.

Returns:
element text

setText

void setText(java.lang.String text)
Sets text between tags of the element.

Parameters:
text - new text

getHTML

java.lang.String getHTML()
Returns HTML between tags of the element.

Returns:
element HTML

setHTML

void setHTML(java.lang.String html)
Sets HTML between tags of the element.

Parameters:
html - new html

getStyle

java.lang.String getStyle(java.lang.String styleName)
Returns element style.

Parameters:
styleName - style name
Returns:
style value

getElementClass

java.lang.String getElementClass()
Returns element class specified in class attribute (like <a class='menuLink'>Home</a>)

Returns:
element class

setStyle

void setStyle(java.lang.String styleName,
              java.lang.String value)
Sets element style.

Parameters:
styleName - style name
value - new style value

getBackground

java.awt.Color getBackground()
Returns element background color.

Returns:
background color

setBackground

void setBackground(java.awt.Color color)
Sets element background color.

Parameters:
color - new background color

getBorder

ElementBorder getBorder()
Returns element border.

Returns:
border

setBorder

void setBorder(ElementBorder border)
Sets element border.

Parameters:
border - border

setBorder

void setBorder(java.awt.Color color)
Sets element border.

Parameters:
color - border color.

getLocation

java.awt.Point getLocation()
Returns element location relative to the offset parent element.

Returns:
location

getOffsetParent

HTMLElement getOffsetParent()
Returns element used as origin of coordinates for element location.

Returns:
offset parent

getAbsoluteLocation

java.awt.Point getAbsoluteLocation()
Returns element absolute location.

Returns:
absolute location

getElementSize

java.awt.Dimension getElementSize()
Returns element size.

Returns:
size

click

void click()
Emulates click on the element.


fireEvent

void fireEvent(java.lang.String eventName)
Fires event on the element.

Parameters:
eventName - event name

fireEvent

void fireEvent(java.lang.String eventName,
               EventObjectFactory eventObjectFactory)
Fires event on the element.

Parameters:
eventName - event name
eventObjectFactory - event object factory

mouseOver

void mouseOver()
Fires mouse over event on the element.


focus

void focus()
Sets focus to the element.


setAttribute

void setAttribute(java.lang.String name,
                  java.lang.String value,
                  boolean caseSensitive)
This method is specially designed to set an element attribute and specify whether its name is case sensitive or not.

Parameters:
name - attribute name
value - attribute name
caseSensitive - specifies whether an attribute name is case sensetive or not

getElementPeer

java.lang.Object getElementPeer()
Returns DOM element native peer.

Returns:
element native peer

getWidth

java.lang.String getWidth()
Returns the element width

Returns:
width

getHeight

java.lang.String getHeight()
Returns the element height

Returns:
height