cox.jmatt.java.MathTools.markup.html
Class HRTag
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.HRTag
public class HRTag
- extends SimpleDecorationTag
This class provides the <hr> tag. Since there is no content construction is fairly simple. The standard constructor produces a page-spanning rule.
If the one-argument constructor (width) is used the number is interpreted as follows. If the number is negative it is made positive. If it is between
0.0 (inclusive) and 1.0 (exclusive) it is interpreted as a percent and the '%' sign is appended. If the value is 1.0 or greater it is interpreted as a raw
pixel width and added as an integer.
Fields inherited from class cox.jmatt.java.MathTools.markup.Tag |
myTagName |
Constructor Summary |
HRTag()
Standard constructor for editable tags. |
HRTag(double pWidth)
Construct a tag with content. |
Method Summary |
protected java.lang.String |
_content()
This tag is always empty! This method always returns null. |
protected void |
_setContent(java.lang.String pContent)
Always sets null (clears) content. |
HRTag |
copyOf()
Copy the current tag. |
HRTag |
setWidth(double pWidth)
Set the width of this rule. |
Methods inherited from class cox.jmatt.java.MathTools.markup.html.BaseHTag |
_addTag, _enableCopy, 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 |
HRTag
public HRTag()
- Standard constructor for editable tags.
HRTag
public HRTag(double pWidth)
- Construct a tag with content.
copyOf
public HRTag copyOf()
- Copy the current tag.
setWidth
public HRTag setWidth(double pWidth)
- Set the width of this rule. The number is processed as described above.
_content
protected java.lang.String _content()
- This tag is always empty! This method always returns null.
- Overrides:
_content
in class BaseHTag
_setContent
protected void _setContent(java.lang.String pContent)
- Always sets null (clears) content. Not that this tag would ever have content.
- Overrides:
_setContent
in class BaseHTag