public class Head extends HTMLTag
XMLContainerImpl.sMode
mContentAndSubtagList
Constructor and Description |
---|
Head() |
Head(java.lang.String inTitle)
Constructor that takes the page title.
|
Head(XMLNode inXMLNode) |
Modifier and Type | Method and Description |
---|---|
Script |
addJavascript(java.lang.String inJavascript)
Adds the specified javascript to a 'script' block.
|
Script |
addJavascriptLink(java.lang.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,
java.lang.String inURL)
Adds a 'meta http-equiv="refresh"' tag to the header
|
void |
addMetaTag(java.lang.String inHttpEquiv,
java.lang.String inValue)
Adds a 'meta' tag to the header
|
Head |
addStyle(java.lang.String inStyle)
Deprecated.
use addStyleTag()
|
void |
addStyleSheetLink(java.lang.String inURL)
Adds a link to an external stylesheet.
|
void |
addStyleTag(java.lang.String inStyle)
Adds the specified text to a 'style' block.
|
void |
clearStyle()
Removes all style content in the header.
|
java.lang.String |
getStyle()
Returns the style content.
|
java.lang.String |
getTitle()
Returns the page title.
|
void |
setShortcutIconLink(java.lang.String inURL)
Adds a link to a shortcut icon.
|
Head |
setTitle(java.lang.String inTitle)
Sets the page title.
|
addClass, applyColorSpec, clone, getClassAttribute, getDraggable, getId, initFromXMLNode, removeClass, setAttribute, setAttribute, setClass, setDraggable, setId, setStyle, setStyleColor, toHTML, toHTML, toHTML, toIndentedHTML, toIndentedHTML, toIndentedHTML, toText
addSubtag, addSubtag, addXMLNamespaceDeclaration, findNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getEndTag, getNamespace, getQualifiedTagName, getStartTag, getTagName, hasAttribute, hasAttribute, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttributes, setContent, setDefaultXMLNamespaceDeclaration, setNamespace, setSortAttributesBeforeWriting, setTagName, sortAttributes, toIndentedXML, toIndentedXML, toIndentedXML, toIndentedXML, toString, toXML, toXML, toXML, toXML, useDoubleQuotes, verifyTagName, verifyTagName, verifyTagName, verifyTagName
addContent, 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, setSubtags
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getNamespace, getTagName, hasAttribute, hasAttribute, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttributes, setNamespace, setTagName, toIndentedXML, verifyTagName, verifyTagName, verifyTagName, verifyTagName
addContent, 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, setSubtags
toIndentedXML, toIndentedXML, toIndentedXML, toXML, toXML, toXML
public Head()
public Head(java.lang.String inTitle)
inTitle
- the page titlepublic Head setTitle(java.lang.String inTitle)
inTitle
- the page titlepublic java.lang.String getTitle()
public Script addJavascriptLink(java.lang.String inURL)
inURL
- the URL of a javascript file for inclusion via a 'script' tagpublic Script addJavascript(java.lang.String inJavascript)
inJavascript
- javascript for inclusion via a 'script' tagpublic void clearStyle()
public Head addStyle(java.lang.String inStyle)
public void addStyleTag(java.lang.String inStyle)
inStyle
- CSS style text for inclusion via a 'style' tagpublic java.lang.String getStyle()
public void addStyleSheetLink(java.lang.String inURL)
inURL
- the URL of a CSS file for inclusion via a 'link' tagpublic void setShortcutIconLink(java.lang.String inURL)
inURL
- the URL of a shortcut icon file for inclusion via a 'link' tagpublic void addMetaTag(java.lang.String inHttpEquiv, java.lang.String inValue)
inHttpEquiv
- the http-equiv valueinValue
- the content attribute value.public void addMetaRefresh(int inTimeSpan, java.lang.String inURL)
inTimeSpan
- delay in seconds before refreshing page.inURL
- the URL of the page to refresh with.public void addMetaNoCache()
[email protected]