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

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.AnchorTag

public class AnchorTag
extends SimpleDecorationTag

This class provides the anchor ('<a>') tag. The 'href=' attribute is mandatory so this class cannot be constructed without a valid value for it. For this reason there is a static construction method and no public constructor.


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
 
Method Summary
 AnchorTag copyOf()
          Copy the current tag.
static AnchorTag newInstance(java.lang.String pHREF, java.lang.String pContent)
          Use this method to obtain tag instances.
 void reset()
          Overridden to preserve the 'href=' attribute.
 
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, setID, toString, validString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newInstance

public static final AnchorTag newInstance(java.lang.String pHREF,
                                          java.lang.String pContent)
Use this method to obtain tag instances. If pHREF is null or blank the method returns null. If pContent is null or blank it is ignored.

Parameters:
pHREF - The value of the 'href=' attribute. Must not be null or blank.
pContent - The (text) content of the tag. Ignored if null or blank.

copyOf

public AnchorTag copyOf()
Copy the current tag.


reset

public void reset()
Overridden to preserve the 'href=' attribute.

Overrides:
reset in class Tag