com.gargoylesoftware.htmlunit.html
Class HtmlDivision
java.lang.Object
com.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomNamespaceNode
com.gargoylesoftware.htmlunit.html.DomElement
com.gargoylesoftware.htmlunit.html.HtmlElement
com.gargoylesoftware.htmlunit.html.StyledElement
com.gargoylesoftware.htmlunit.html.ClickableElement
com.gargoylesoftware.htmlunit.html.HtmlDivision
- All Implemented Interfaces:
- Serializable, Cloneable
public class HtmlDivision
- extends ClickableElement
Wrapper for the html element "div".
- Version:
- $Revision: 2132 $
- Author:
- Mike Bowler, David K. Taylor, Christian Sell, Ahmed Ashour
- See Also:
- Serialized Form
Field Summary |
static String |
TAG_NAME
the HTML tag represented by this element |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED, TEXT_NODE |
Method Summary |
String |
getAlignAttribute()
Return the value of the attribute "align". |
protected boolean |
isEmptyXmlTagExpanded()
Indicates if a node without children should be written in expanded form as xml
(ie with closing tag rather than with "/>) |
Methods inherited from class com.gargoylesoftware.htmlunit.html.ClickableElement |
click, click, click, dblClick, dblClick, doClickAction, getLangAttribute, getOnClickAttribute, getOnDblClickAttribute, getOnKeyDownAttribute, getOnKeyPressAttribute, getOnKeyUpAttribute, getOnMouseDownAttribute, getOnMouseMoveAttribute, getOnMouseOutAttribute, getOnMouseOverAttribute, getOnMouseUpAttribute, getTextDirectionAttribute, getXmlLangAttribute, isStateUpdateFirst |
Methods inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
addHtmlAttributeChangeListener, appendChildIfNoneExists, assertNotEmpty, blur, cloneDomNode, cloneNode, fireEvent, fireEvent, fireHtmlAttributeAdded, fireHtmlAttributeRemoved, fireHtmlAttributeReplaced, focus, getAttribute, getAttributeEntriesIterator, getAttributeNS, getAttributeValue, getChildElementsIterator, getEnclosingElement, getEnclosingForm, getEnclosingFormOrDie, getEventHandler, getHtmlElementById, getHtmlElementsByAttribute, getHtmlElementsByTagName, getHtmlElementsByTagNames, getId, getNodeName, getNodeType, getOneHtmlElementByAttribute, getTabIndex, getTagName, hasAttribute, hasAttributeNS, hasAttributes, hasHtmlElementWithId, isAttributeDefined, isSubmittableByEnter, keyDown, keyDown, mouseDown, mouseDown, mouseMove, mouseMove, mouseOut, mouseOut, mouseOver, mouseOver, mouseUp, mouseUp, notImplemented, preventDefault, printOpeningTagContentAsXml, printXml, removeAttribute, removeAttributeNS, removeChild, removeEventHandler, removeHtmlAttributeChangeListener, rightClick, rightClick, setAttribute, setAttributeNS, setAttributeValue, setAttributeValue, setEventHandler, setEventHandler, setId, toString, type, type, type, type |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
addDomChangeListener, addPropertyChangeListener, appendChild, appendDomChild, asText, asXml, fireNodeAdded, fireNodeDeleted, firePropertyChange, getAllHtmlChildElements, getByXPath, getChildIterator, getChildrenAsText, getEndColumnNumber, getEndLineNumber, getFirstByXPath, getFirstChild, getFirstDomChild, getLastChild, getLastDomChild, getLog, getNativePage, getNextDomSibling, getNextSibling, getNodeValue, getPage, getParentDomNode, getParentNode, getPreviousDomSibling, getPreviousSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, isAncestorOf, isTrimmedText, notifyIncorrectness, onAddedToPage, onAllChildrenAddedToPage, printChildrenAsXml, reduceWhitespace, remove, removeAllChildren, removeDomChangeListener, removePropertyChangeListener, replace, setNextSibling, setNodeValue, setParentNode, setPreviousSibling, setReadyState, setScriptObject |
TAG_NAME
public static final String TAG_NAME
- the HTML tag represented by this element
- See Also:
- Constant Field Values
HtmlDivision
public HtmlDivision(HtmlPage page,
Map attributes)
- Deprecated. You should not directly construct HtmlDivision.
- Create an instance of HtmlDivision
- Parameters:
page
- The HtmlPage that contains this element.attributes
- the initial attributes
HtmlDivision
public HtmlDivision(String namespaceURI,
String qualifiedName,
HtmlPage page,
Map attributes)
- Create an instance of HtmlDivision.
Don't directly construct, it is public as an implementation side-effect.
- Parameters:
namespaceURI
- the URI that identifies an XML namespace.qualifiedName
- The qualified name of the element type to instantiatepage
- The HtmlPage that contains this element.attributes
- the initial attributes
getAlignAttribute
public final String getAlignAttribute()
- Return the value of the attribute "align". Refer to the
HTML 4.01
documentation for details on the use of this attribute.
- Returns:
- The value of the attribute "align"
or an empty string if that attribute isn't defined.
isEmptyXmlTagExpanded
protected boolean isEmptyXmlTagExpanded()
- Indicates if a node without children should be written in expanded form as xml
(ie with closing tag rather than with "/>)
- Overrides:
isEmptyXmlTagExpanded
in class HtmlElement
- Returns:
true
to make generated xml readable as html
Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.