cox.jmatt.java.MathTools.markup.html
Class HnTag
java.lang.Object
cox.jmatt.java.MathTools.markup.Tag
cox.jmatt.java.MathTools.markup.html.BaseHTag
cox.jmatt.java.MathTools.markup.html.ContainerTag
cox.jmatt.java.MathTools.markup.html.SimpleDecorationTag
cox.jmatt.java.MathTools.markup.html.HnTag
public class HnTag
- extends SimpleDecorationTag
These are heading tags: <h1> to <h6>. All use the same default values so setting 'Hn_TAG' affects all heading tag classes.
Fields inherited from class cox.jmatt.java.MathTools.markup.Tag |
myTagName |
Constructor Summary |
HnTag()
Standard constructor for editable tags. |
HnTag(byte pLevel)
Construct a tag with the level given. |
HnTag(byte pLevel,
java.lang.String pContent)
Construct a tag with level and content given. |
HnTag(java.lang.String pContent)
Construct a tag with content. |
Methods inherited from class cox.jmatt.java.MathTools.markup.html.BaseHTag |
_addTag, _content, _enableCopy, _setContent, addCDATA, addContent, getID, getRawContent, getTagKey, getTagName, isInBody, setClicked, setCSS, setName, setStyle |
Methods inherited from class cox.jmatt.java.MathTools.markup.Tag |
_addAttribute, _addAttributes, _addNAttribute, _asBoolean, _asDouble, _asInt, _attributes, _clampNAttribute, _clampNAttribute, _fixKey, _setEnableXMLTag, badPizza, closeTag, configureTag, configureTagFromGlobalPizza, makeTag, openTag, reset, setID, toString, validString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HnTag
public HnTag()
- Standard constructor for editable tags.
HnTag
public HnTag(byte pLevel)
- Construct a tag with the level given.
HnTag
public HnTag(java.lang.String pContent)
- Construct a tag with content.
HnTag
public HnTag(byte pLevel,
java.lang.String pContent)
- Construct a tag with level and content given.
copyOf
public HnTag copyOf()
- Copy the current tag.
setLevel
public HnTag setLevel(byte pLevel)
- Change the heading level of the tag. Only the numbers '1' through '6' are valid, anything else is ignored.