com.gargoylesoftware.htmlunit.html
Class HtmlFont

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

public class HtmlFont
extends StyledElement

Wrapper for the html element "font".

Version:
$Revision: 2132 $
Author:
Mike Bowler, David K. Taylor, Christian Sell, Ahmed Ashour, Rodney Gitzel
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement
HtmlElement.ChildElementsIterator, HtmlElement.MapEntryWrappingIterator
 
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode
DomNode.ChildIterator, DomNode.DescendantElementsIterator
 
Field Summary
static 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, TAB_INDEX_OUT_OF_BOUNDS
 
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
 
Constructor Summary
HtmlFont(HtmlPage page, Map attributes)
          Deprecated. You should not directly construct HtmlFont.
 
Method Summary
 String getColorAttribute()
          Return the value of the attribute "color".
 String getFaceAttribute()
          Return the value of the attribute "face".
 String getLangAttribute()
          Return the value of the attribute "lang".
 String getSizeAttribute()
          Return the value of the attribute "size".
 String getTextDirectionAttribute()
          Return the value of the attribute "dir".
 String getXmlLangAttribute()
          Return the value of the attribute "xml:lang".
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
protected  boolean isTrimmedText()
          Returns a flag indicating whether or not this node should have any leading and trailing whitespace removed when asText() is called; mostly this should be true, but must be false for such things as text formatting tags
 
Methods inherited from class com.gargoylesoftware.htmlunit.html.StyledElement
getClassAttribute, getIdAttribute, getStyleAttribute, getTitleAttribute
 
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.DomNamespaceNode
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix
 
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, notifyIncorrectness, onAddedToPage, onAllChildrenAddedToPage, printChildrenAsXml, reduceWhitespace, remove, removeAllChildren, removeDomChangeListener, removePropertyChangeListener, replace, setNextSibling, setNodeValue, setParentNode, setPreviousSibling, setReadyState, setScriptObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG_NAME

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

See Also:
Constant Field Values
Constructor Detail

HtmlFont

public HtmlFont(HtmlPage page,
                Map attributes)
Deprecated. You should not directly construct HtmlFont.

Create an instance of HtmlFont

Parameters:
page - The HtmlPage that contains this element.
attributes - the initial attributes
Method Detail

getLangAttribute

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

getXmlLangAttribute

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

getTextDirectionAttribute

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

getSizeAttribute

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

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

getColorAttribute

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

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

getFaceAttribute

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

Returns:
The value of the attribute "face" 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 StyledElement
Returns:
The flag

isTrimmedText

protected boolean isTrimmedText()
Returns a flag indicating whether or not this node should have any leading and trailing whitespace removed when asText() is called; mostly this should be true, but must be false for such things as text formatting tags

Overrides:
isTrimmedText in class DomNode
Returns:
The flag


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.