com.gargoylesoftware.htmlunit.html
Class HtmlStyle

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.DomNode
      extended by com.gargoylesoftware.htmlunit.html.DomNamespaceNode
          extended by com.gargoylesoftware.htmlunit.html.HtmlElement
              extended by com.gargoylesoftware.htmlunit.html.HtmlStyle
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class HtmlStyle
extends HtmlElement

Wrapper for the html element "style".

Version:
$Revision: 1.3 $
Author:
Mike Bowler, Christian Sell, Marc Guillemot, Ahmed Ashour
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement
HtmlElement.MapEntryWrappingIterator
 
Field Summary
static java.lang.String TAG_NAME
 the HTML tag represented by this element
 
Fields inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement
ATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY
 
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode
PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED
 
Method Summary
 java.lang.String asText()
 Returns a text representation of this element that represents what would be visible to the user if this page was shown in a web browser.
 java.lang.String getLangAttribute()
 Return the value of the attribute "lang".
 java.lang.String getMediaAttribute()
 Return the value of the attribute "media".
 java.lang.String getTextDirectionAttribute()
 Return the value of the attribute "dir".
 java.lang.String getTitleAttribute()
 Return the value of the attribute "title".
 java.lang.String getTypeAttribute()
 Return the value of the attribute "type".
 java.lang.String getXmlLangAttribute()
 Return the value of the attribute "xml:lang".
 
Methods inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement
addHtmlAttributeChangeListener, appendChildIfNoneExists, cloneDomNode, fireEvent, fireEvent, getAttributeEntriesIterator, getAttributeValue, getChildElementsIterator, getEnclosingElement, getEnclosingForm, getEnclosingFormOrDie, getEventHandler, getHtmlElementById, getHtmlElementsByAttribute, getHtmlElementsByTagName, getHtmlElementsByTagNames, getId, getNodeName, getNodeType, getOneHtmlElementByAttribute, getTagName, hasHtmlElementWithId, isAttributeDefined, keyDown, keyDown, mouseDown, mouseDown, mouseMove, mouseMove, mouseOut, mouseOut, mouseOver, mouseOver, mouseUp, mouseUp, removeAttribute, removeChild, removeEventHandler, removeHtmlAttributeChangeListener, rightClick, rightClick, setAttributeValue, setEventHandler, setEventHandler, setId, toString
 
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNamespaceNode
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix
 
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode
addDomChangeListener, appendDomChild, asXml, getAllHtmlChildElements, getByXPath, getChildIterator, getEndColumnNumber, getEndLineNumber, getFirstDomChild, getLastDomChild, getNextDomSibling, getNodeValue, getPage, getParentDomNode, getPreviousDomSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, remove, removeAllChildren, removeDomChangeListener, replace, setNodeValue, setReadyState, setScriptObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG_NAME

public static final java.lang.String TAG_NAME
the HTML tag represented by this element

See Also:
Constant Field Values
Method Detail

asText

public java.lang.String asText()
Description copied from class: DomNode
Returns a text representation of this element that represents what would be visible to the user if this page was shown in a web browser. For example, a single-selection select element would return the currently selected value as text.

Overrides:
asText in class DomNode
Returns:
an empty string as the content of style is not visible by itself
See Also:
HtmlInput.asText()

getLangAttribute

public final java.lang.String getLangAttribute()
Return the value of the attribute "lang". Refer to the HTML 4.01 documentation for details on the use of this attribute.

Returns:
The value of the attribute "lang" or an empty string if that attribute isn't defined.

getMediaAttribute

public final java.lang.String getMediaAttribute()
Return the value of the attribute "media". Refer to the HTML 4.01 documentation for details on the use of this attribute.

Returns:
The value of the attribute "media" or an empty string if that attribute isn't defined.

getTextDirectionAttribute

public final java.lang.String getTextDirectionAttribute()
Return the value of the attribute "dir". Refer to the HTML 4.01 documentation for details on the use of this attribute.

Returns:
The value of the attribute "dir" or an empty string if that attribute isn't defined.

getTitleAttribute

public final java.lang.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.

getTypeAttribute

public final java.lang.String getTypeAttribute()
Return the value of the attribute "type". Refer to the HTML 4.01 documentation for details on the use of this attribute.

Returns:
The value of the attribute "type" or an empty string if that attribute isn't defined.

getXmlLangAttribute

public final java.lang.String getXmlLangAttribute()
Return the value of the attribute "xml:lang". Refer to the HTML 4.01 documentation for details on the use of this attribute.

Returns:
The value of the attribute "xml:lang" or an empty string if that attribute isn't defined.


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.