org.htmlparser.parserapplications.filterbuilder
public class HtmlTreeCellRenderer extends DefaultTreeCellRenderer implements TreeCellRenderer
Constructor Summary | |
---|---|
HtmlTreeCellRenderer()
Create a new tree cell renderer for Nodes. |
Method Summary | |
---|---|
Component | getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
Render the node for the tree cell. |
String | toHtml(TagNode tag)
Render the tag as HTML.
|
String | toText(TextNode node)
Express this string node as a printable string
This is suitable for display in a debugger or output to a printout.
|
Parameters: tree {@inheritDoc } value {@inheritDoc } selected {@inheritDoc } expanded {@inheritDoc } leaf {@inheritDoc } row {@inheritDoc } hasFocus {@inheritDoc }
Returns: {@inheritDoc }
See Also: TreeCellRenderer#getTreeCellRendererComponent(JTree, Object, boolean, boolean, boolean, int, boolean)
Parameters: tag The tag to convert to HTML.
Returns: A string suitable for rendering the tag.
See Also: toHtml
Parameters: node The node to render.
Returns: A string representation of the string node.
HTML Parser is an open source library released under LGPL. | |