cox.jmatt.java.MathTools.markup.html
Class HnTag

java.lang.Object
  extended by cox.jmatt.java.MathTools.markup.Tag
      extended by cox.jmatt.java.MathTools.markup.html.BaseHTag
          extended by cox.jmatt.java.MathTools.markup.html.ContainerTag
              extended by cox.jmatt.java.MathTools.markup.html.SimpleDecorationTag
                  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class cox.jmatt.java.MathTools.markup.html.BaseHTag
BaseHTag.TagKeys
 
Field Summary
 
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.
 
Method Summary
 HnTag copyOf()
          Copy the current tag.
 HnTag setLevel(byte pLevel)
          Change the heading level of the tag.
 
Methods inherited from class cox.jmatt.java.MathTools.markup.html.SimpleDecorationTag
add
 
Methods inherited from class cox.jmatt.java.MathTools.markup.html.ContainerTag
addAnchor, addBold, addBQ, addBreak, addEM, addHeading, addHR, addImage, addItalic, addUnderline
 
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
 

Constructor Detail

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.

Method Detail

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.