com.gargoylesoftware.htmlunit.html
Class StyledElement
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
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- BaseFrame, ClickableElement, HtmlApplet, HtmlBidirectionalOverride, HtmlBreak, HtmlFont, HtmlFrameSet, HtmlIsIndex
public abstract class StyledElement
- extends HtmlElement
Intermediate base class for "styled" HTML elements. As defined
HTML 4.01 documentation,
this class is a base class for all HTML elements except these:
base, basefont, head, html, meta, param, script, style and title.
- Version:
- $Revision: 2132 $
- Author:
- Mike Bowler, David K. Taylor, Christian Sell, Ahmed Ashour, Rodney Gitzel
- See Also:
- Serialized Form
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 |
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, isEmptyXmlTagExpanded, 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 |
StyledElement
protected StyledElement(String namespaceURI,
String qualifiedName,
HtmlPage page,
Map attributes)
- Create an instance
- Parameters:
namespaceURI
- the URI that identifies an XML namespace.qualifiedName
- The qualified name of the element type to instantiatepage
- The page that contains this elementattributes
- the initial attributes
getIdAttribute
public final String getIdAttribute()
- Return the value of the attribute "id". Refer to the
HTML 4.01
documentation for details on the use of this attribute.
- Returns:
- The value of the attribute "id"
or an empty string if that attribute isn't defined.
getClassAttribute
public final String getClassAttribute()
- Return the value of the attribute "class". Refer to the
HTML 4.01
documentation for details on the use of this attribute.
- Returns:
- The value of the attribute "class"
or an empty string if that attribute isn't defined.
getStyleAttribute
public final String getStyleAttribute()
- Return the value of the attribute "style". Refer to the
HTML 4.01
documentation for details on the use of this attribute.
- Returns:
- The value of the attribute "style"
or an empty string if that attribute isn't defined.
getTitleAttribute
public final String getTitleAttribute()
- Return the value of the attribute "title". Refer to the
HTML 4.01
documentation for details on the use of this attribute.
- Returns:
- The value of the attribute "title"
or an empty string if that attribute isn't defined.
isRenderedVisible
protected boolean isRenderedVisible()
- Returns a flag indicating whether or not this node itself results
in any space taken up in the browser windows; for instance, ""
affects the specified text, but does not use up any space itself
- Overrides:
isRenderedVisible
in class DomNode
- Returns:
- The flag
Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.