public class Head extends HTMLTag
XMLContainerImpl.sModemContentAndSubtagList| Constructor and Description |
|---|
Head() |
Head(String inTitle)
Constructor that takes the page title.
|
Head(XMLNode inXMLNode) |
| Modifier and Type | Method and Description |
|---|---|
Script |
addJavascript(String inJavascript)
Adds the specified javascript to a 'script' block.
|
Script |
addJavascriptLink(String inURL)
Adds a link to an external stylesheet.
|
void |
addMetaNoCache()
Adds a '<meta http-equiv="pragma" content="no-cache" />' tag, a
'<meta http-equiv="cache-control" content="no-cache" />' tag, and a
'<meta http-equiv="expires" content="0" />' tag to the header.
|
void |
addMetaRefresh(int inTimeSpan,
String inURL)
Adds a 'meta http-equiv="refresh"' tag to the header
|
void |
addMetaTag(String inHttpEquiv,
String inValue)
Adds a 'meta' tag to the header
|
Head |
addStyle(String inStyle)
Deprecated.
use addStyleTag()
|
void |
addStyleSheetLink(String inURL)
Adds a link to an external stylesheet.
|
void |
addStyleTag(String inStyle)
Adds the specified text to a 'style' block.
|
void |
clearStyle()
Removes all style content in the header.
|
String |
getStyle()
Returns the style content.
|
String |
getTitle()
Returns the page title.
|
void |
setShortcutIconLink(String inURL)
Adds a link to a shortcut icon.
|
Head |
setTitle(String inTitle)
Sets the page title.
|
addClass, applyColorSpec, clone, getClassAttribute, getDraggable, getId, initFromXMLNode, removeClass, removeStyleProperty, setAttribute, setAttribute, setClass, setDraggable, setId, setStyle, setStyleColor, toHTML, toHTML, toHTML, toIndentedHTML, toIndentedHTML, toIndentedHTML, toTextaddSubtag, addSubtag, addXMLNamespaceDeclaration, compareTo, equals, findNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getEndTag, getNamespace, getQualifiedTagName, getStartTag, getTagName, hasAttribute, hasAttribute, hasAttributes, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttributes, setContent, setDefaultXMLNamespaceDeclaration, setNamespace, setSortAttributesBeforeWriting, setTagName, setTagName, sortAttributes, toIndentedXML, toIndentedXML, toIndentedXML, toIndentedXML, toString, toXML, toXML, toXML, toXML, useDoubleQuotes, verifyTagName, verifyTagName, verifyTagName, verifyTagNameaddContent, addContentWithoutEscaping, addSubtag, addSubtag, addSubtags, clearContent, clearSubtags, getContent, getContentPlusSubtagList, getNextSibling, getOptionalSubtagByName, getOptionalSubtagByName, getOptionalSubtagByName, getOptionalSubtagByName, getParentNode, getPreviousSibling, getRequiredSubtagById, getRequiredSubtagById, getRequiredSubtagByName, getRequiredSubtagByName, getSubtagByAttribute, getSubtagByAttribute, getSubtags, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByClass, getSubtagsByClass, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getTotalTagCount, getUnescapedContent, getXMLNodeSubtags, hasContent, hasContentOrSubtags, indexOf, innerHTML, removeSubtag, removeSubtagsByAttribute, removeSubtagsByAttribute, removeSubtagsByAttribute, removeSubtagsByClass, removeSubtagsByClass, removeSubtagsByName, removeSubtagsByName, removeSubtagsByName, setContent, setParentNode, setSubtagsfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getNamespace, getTagName, hasAttribute, hasAttribute, hasAttributes, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttributes, setNamespace, setTagName, setTagName, toIndentedXML, verifyTagName, verifyTagName, verifyTagName, verifyTagNameaddContent, addContentWithoutEscaping, addSubtag, addSubtags, clearContent, clearSubtags, getContent, getNextSibling, getOptionalSubtagByName, getOptionalSubtagByName, getParentNode, getPreviousSibling, getRequiredSubtagByName, getRequiredSubtagByName, getSubtags, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getTotalTagCount, getUnescapedContent, getXMLNodeSubtags, hasContent, indexOf, removeSubtag, removeSubtagsByName, removeSubtagsByName, setContent, setParentNode, setSubtagstoIndentedXML, toIndentedXML, toIndentedXML, toXML, toXML, toXMLpublic Head()
public Head(String inTitle)
inTitle - the page titlepublic Head setTitle(String inTitle)
inTitle - the page titlepublic Script addJavascriptLink(String inURL)
inURL - the URL of a javascript file for inclusion via a 'script' tagpublic Script addJavascript(String inJavascript)
inJavascript - javascript for inclusion via a 'script' tagpublic void clearStyle()
public Head addStyle(String inStyle)
public void addStyleTag(String inStyle)
inStyle - CSS style text for inclusion via a 'style' tagpublic void addStyleSheetLink(String inURL)
inURL - the URL of a CSS file for inclusion via a 'link' tagpublic void setShortcutIconLink(String inURL)
inURL - the URL of a shortcut icon file for inclusion via a 'link' tagpublic void addMetaTag(String inHttpEquiv, String inValue)
inHttpEquiv - the http-equiv valueinValue - the content attribute value.public void addMetaRefresh(int inTimeSpan, String inURL)
inTimeSpan - delay in seconds before refreshing page.inURL - the URL of the page to refresh with.public void addMetaNoCache()
jataylor@hairyfatguy.com