Class XHtmlTagTool
java.lang.Object
org.exoplatform.webui.form.wysiwyg.XHtmlTagTool
Tool to construct a XHTML-tag.
Usage:
Usage:
XHtmlTagTool tag = XHtmlTagTool("a", "link");
tag.addAttribute("href", "http://google.com");
tag.toString(); : <a href="http://google.com">link</a>
Hint:
- Attributes are not ordered.
- If your tag shouldn't have a value but the tag has to close with '</[tagname]>', set the value to
SPACE.
- Version:
- $Id: XHtmlTagTool.java 1719 2008-03-18 11:08:52Z mosipov $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SPACE
Indicator to uses non self-closing tag.- See Also:
-
-
Constructor Details
-
XHtmlTagTool
-
XHtmlTagTool
-
-
Method Details
-
setValue
Setter for the value of the tag.- Parameters:
value-
-
addAttribute
Adds an attribute to the tag.- Parameters:
key-value-- Throws:
IllegalArgumentException- if 'key' is empty.
-
toString
Constructs the tag. -
equals
-
hashCode
public int hashCode()
-