com.gargoylesoftware.htmlunit.html
Class HtmlDivision
java.lang.Object
   com.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomNode
       com.gargoylesoftware.htmlunit.html.DomNamespaceNode
com.gargoylesoftware.htmlunit.html.DomNamespaceNode
           com.gargoylesoftware.htmlunit.html.DomElement
com.gargoylesoftware.htmlunit.html.DomElement
               com.gargoylesoftware.htmlunit.html.HtmlElement
com.gargoylesoftware.htmlunit.html.HtmlElement
                   com.gargoylesoftware.htmlunit.html.HtmlDivision
com.gargoylesoftware.htmlunit.html.HtmlDivision
- All Implemented Interfaces: 
- Serializable, Cloneable, Element, Node
- public class HtmlDivision 
- extends HtmlElement
Wrapper for the HTML element "div".
- Version:
- $Revision: 5301 $
- Author:
- Mike Bowler, David K. Taylor, Christian Sell, Ahmed Ashour
- See Also:
- Serialized Form
 
 
 
| Field Summary | 
| static String | TAG_NAMEThe HTML tag represented by this element.
 | 
 
 
 
 
| 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 | 
|  String | getAlignAttribute()Returns the value of the attribute "align".
 | 
| protected  boolean | isBlock()Indicates if the text representation of this element is made as a block, ie if new lines need
 to be inserted before and after it.
 | 
| protected  boolean | isEmptyXmlTagExpanded()Indicates if a node without children should be written in expanded form as XML
 (i.e.
 | 
 
| Methods inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement | 
| addHtmlAttributeChangeListener, appendChildIfNoneExists, blur, checkChildHierarchy, click, click, click, dblClick, dblClick, doClickAction, doType, fireEvent, fireEvent, fireHtmlAttributeAdded, fireHtmlAttributeRemoved, fireHtmlAttributeReplaced, focus, getCanonicalXPath, getChildElements, getElementById, getElementsByAttribute, getEnclosingElement, getEnclosingForm, getEnclosingFormOrDie, getEventTargetElement, getHtmlElementsByTagName, getHtmlElementsByTagNames, getId, getLangAttribute, getNodeName, getOnClickAttribute, getOnDblClickAttribute, getOneHtmlElementByAttribute, getOnKeyDownAttribute, getOnKeyPressAttribute, getOnKeyUpAttribute, getOnMouseDownAttribute, getOnMouseMoveAttribute, getOnMouseOutAttribute, getOnMouseOverAttribute, getOnMouseUpAttribute, getTabIndex, getTextDirectionAttribute, getXmlLangAttribute, hasEventHandlers, hasHtmlElementWithId, isAttributeCaseSensitive, isStateUpdateFirst, isSubmittableByEnter, mouseDown, mouseDown, mouseMove, mouseMove, mouseOut, mouseOut, mouseOver, mouseOver, mouseUp, mouseUp, preventDefault, removeAttribute, removeChild, removeEventHandler, removeHtmlAttributeChangeListener, rightClick, rightClick, setAttributeNS, setEventHandler, setEventHandler, setId, toString, type, type, type, type | 
 
| Methods inherited from class com.gargoylesoftware.htmlunit.html.DomElement | 
| cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributesMap, getElementsByTagName, getElementsByTagNameNS, getNodeType, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasAttributes, namespaces, printOpeningTagContentAsXml, printXml, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS | 
 
 
| Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode | 
| addDomChangeListener, appendChild, asText, asXml, compareDocumentPosition, fireNodeAdded, fireNodeDeleted, getAllHtmlChildElements, getAncestors, getBaseURI, getByXPath, getChildNodes, getChildren, getDescendants, getEndColumnNumber, getEndLineNumber, getFeature, getFirstByXPath, getFirstChild, getHtmlElementDescendants, getIndex, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getPage, getParentNode, getPreviousSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, getTextContent, getUserData, hasChildNodes, insertBefore, insertBefore, isAncestorOf, isAncestorOfAny, isDefaultNamespace, isDisplayed, isEqualNode, isSameNode, isSupported, isTrimmedText, lookupNamespaceURI, lookupPrefix, mayBeDisplayed, normalize, notifyIncorrectness, onAddedToPage, onAllChildrenAddedToPage, printChildrenAsXml, remove, removeAllChildren, removeChild, removeDomChangeListener, replace, replaceChild, setNextSibling, setNodeValue, setParentNode, setPreviousSibling, setReadyState, setScriptObject, setTextContent, setUserData | 
 
 
| Methods inherited from interface org.w3c.dom.Node | 
| appendChild, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData | 
 
TAG_NAME
public static final String TAG_NAME
- The HTML tag represented by this element.
 
- See Also:
- Constant Field Values
 
HtmlDivision
public HtmlDivision(String namespaceURI,
                    String qualifiedName,
                    SgmlPage page,
                    Map<String,DomAttr> attributes)
- Creates 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 instantiate
- page- the HtmlPage that contains this element
- attributes- the initial attributes
 
getAlignAttribute
public final String getAlignAttribute()
- Returns 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
 (i.e. with closing tag rather than with "/>")
 
- 
- Overrides:
- isEmptyXmlTagExpandedin class- DomElement
 
- 
- Returns:
- trueto make generated XML readable as HTML
 
isBlock
protected boolean isBlock()
- Indicates if the text representation of this element is made as a block, ie if new lines need
 to be inserted before and after it.
 
- 
- Overrides:
- isBlockin class- DomNode
 
- 
- Returns:
- trueif this element represents a block
 
Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.