public class HTMLTag extends XMLTag implements HTMLNode, Cloneable
XMLContainerImpl.sModemContentAndSubtagList| Constructor and Description |
|---|
HTMLTag(String inName) |
HTMLTag(String inName,
Hashtable<String,String> inAttributes) |
HTMLTag(String inName,
Hashtable inAttributes,
String inContent) |
HTMLTag(XMLNode inXMLNode) |
| Modifier and Type | Method and Description |
|---|---|
HTMLTag |
addClass(String inValue) |
HTMLTag |
addStyle(String inValue) |
HTMLTag |
applyColorSpec(ColorSpec inValue) |
HTMLTag |
clone() |
String |
getClassAttribute()
Not called getClass() for obvious reasons.
|
boolean |
getDraggable() |
String |
getId() |
String |
getStyle() |
protected void |
initFromXMLNode(XMLNode inXMLNode) |
HTMLTag |
removeClass(String inValue) |
HTMLTag |
removeStyleProperty(CSSProperty inValue) |
HTMLTag |
setAttribute(String inName,
Object inValue) |
HTMLTag |
setAttribute(XMLName inName,
Object inValue) |
HTMLTag |
setClass(String inValue) |
HTMLTag |
setDraggable(boolean inValue) |
HTMLTag |
setId(String inValue) |
HTMLTag |
setStyle(CharSequence inValue) |
HTMLTag |
setStyleColor(Color inValue)
Sets the CSS color declaration in the existing style attribute content or,
if no color declaration exists, one is added.
|
String |
toHTML() |
void |
toHTML(OutputStream inStream) |
void |
toHTML(PrintWriter inWriter) |
String |
toIndentedHTML(int inInitialIndentLevel,
int inIndentSize) |
void |
toIndentedHTML(OutputStream inOutputStream,
int inInitialIndentLevel,
int inIndentSize) |
void |
toIndentedHTML(PrintWriter inWriter,
int inInitialIndentLevel,
int inIndentSize) |
String |
toText()
Returns output stripped of HTML tags.
|
addSubtag, 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 void toHTML(OutputStream inStream)
public void toHTML(PrintWriter inWriter)
public String toIndentedHTML(int inInitialIndentLevel, int inIndentSize)
public void toIndentedHTML(OutputStream inOutputStream, int inInitialIndentLevel, int inIndentSize)
public void toIndentedHTML(PrintWriter inWriter, int inInitialIndentLevel, int inIndentSize)
public HTMLTag setAttribute(String inName, Object inValue)
setAttribute in interface XMLNodesetAttribute in class XMLTagpublic HTMLTag setAttribute(XMLName inName, Object inValue)
setAttribute in interface XMLNodesetAttribute in class XMLTagpublic HTMLTag removeClass(String inValue)
public String getClassAttribute()
public HTMLTag setStyle(CharSequence inValue)
public HTMLTag removeStyleProperty(CSSProperty inValue)
public HTMLTag applyColorSpec(ColorSpec inValue)
public HTMLTag setStyleColor(Color inValue)
inValue - Color value to use. A value of null will cause an existing
color declaration to be removed.public HTMLTag setDraggable(boolean inValue)
public boolean getDraggable()
protected void initFromXMLNode(XMLNode inXMLNode)
jataylor@hairyfatguy.com