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

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

public class DLTag
extends BaseHTag

This class provides the definition list tag and container for definition elements: <dl>, <dt> and <dd>. Although the term and definition tags subclass SimpleDecorationTag they are used here.

Terms and definitions are kept in the order in which they are given and may be intermixed. Since both DTTag and DDTag extend SimpleDecorationTag their text content can contain bold, italic, emphasized, etc. formatting.


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
DLTag()
          Standard constructor for an empty definition list.
 
Method Summary
 DLTag addDef(DDTag pTag)
          Add an existing <dd> tag to the container, ignored if null, returns a self-reference for method chaining.
 DLTag addDef(java.lang.String pDefinition)
          Add a definition to the container with defaults, self-reference, and disregarding of null or blank Strings.
 DLTag addTerm(DTTag pTag)
          Add a pre-constructed <dt> to the list and return a self-reference.
 DLTag addTerm(java.lang.String pDefTerm)
          Add a definition term directly to the container.
 DLTag copyOf()
          Create a copy of this tag.
 
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

DLTag

public DLTag()
Standard constructor for an empty definition list.

Method Detail

copyOf

public DLTag copyOf()
Create a copy of this tag.


addTerm

public DLTag addTerm(java.lang.String pDefTerm)
Add a definition term directly to the container. All defaults apply, a self-reference is returned, and the tag is not created if the text is not valid.


addTerm

public DLTag addTerm(DTTag pTag)
Add a pre-constructed <dt> to the list and return a self-reference.


addDef

public DLTag addDef(java.lang.String pDefinition)
Add a definition to the container with defaults, self-reference, and disregarding of null or blank Strings.


addDef

public DLTag addDef(DDTag pTag)
Add an existing <dd> tag to the container, ignored if null, returns a self-reference for method chaining.