cox.jmatt.java.MathTools.markup.html
Class TDTag
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.TDTag
public class TDTag
- extends SimpleDecorationTag
This class provides the <td> and <th> tags. Both tag classes use the same defaults, so setting 'TD_TAG' also affects table headers. (This is
neither bug nor feature, simply the way of things.) To change a <td> to <th> call setHeader(true)
. All other settings remain the
same.
Fields inherited from class cox.jmatt.java.MathTools.markup.Tag |
myTagName |
Constructor Summary |
TDTag()
Standard constructor for editable tags. |
TDTag(java.lang.String pContent)
Construct a tag with content. |
Method Summary |
TDTag |
copyOf()
Copy the current tag. |
void |
setColSpan(java.lang.Integer pSpan)
Set the 'colspan=' attribute. |
TDTag |
setHeader(boolean isTH)
Use this method to change <td> to <th>. |
void |
setRowSpan(java.lang.Integer pSpan)
Set the 'rowspan=' attribute. |
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 |
TDTag
public TDTag()
- Standard constructor for editable tags.
TDTag
public TDTag(java.lang.String pContent)
- Construct a tag with content.
copyOf
public TDTag copyOf()
- Copy the current tag.
setRowSpan
public void setRowSpan(java.lang.Integer pSpan)
- Set the 'rowspan=' attribute. Ignored if negative, removed if null.
setColSpan
public void setColSpan(java.lang.Integer pSpan)
- Set the 'colspan=' attribute. Ignored if negative, removed if null.
setHeader
public TDTag setHeader(boolean isTH)
- Use this method to change <td> to <th>. The change takes place immediately and does survive
reset()
. Returns a self-reference.
- Parameters:
isTH
- 'true' for <th>, false for <td>.