|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--DOMTreeCellRenderer
This class has as its responsibility returning a component that draws
nodes of the JTree.
| Constructor Summary | |
DOMTreeCellRenderer(ContentOwner owner)
|
|
| Method Summary | |
void |
flushCache()
Flushes the TreeCellRenderCache. |
boolean |
getRenderedView()
Sets the renderedView parameter: if false, the default
XML view is used; if true, docspecs rules are applied. |
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
Returns a component that can render the given node of the JTree. |
static boolean |
isRightToLeft(java.lang.String text)
Returns true if text contains any characters defined
as strong right-left characters in Unicode Bidi. |
void |
setDocSpec(DocSpec spec)
Sets the DocSpec. |
void |
setRenderedView(boolean value)
Sets the renderedView parameter: if false, the default
XML view is used; if true, docspecs rules are applied. |
void |
updateFont()
Updates the font used for the tree. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DOMTreeCellRenderer(ContentOwner owner)
| Method Detail |
public void updateFont()
public void setDocSpec(DocSpec spec)
DocSpec.spec - DDL objectpublic void setRenderedView(boolean value)
renderedView parameter: if false, the default
XML view is used; if true, docspecs rules are applied.value - value for renderedViewpublic boolean getRenderedView()
renderedView parameter: if false, the default
XML view is used; if true, docspecs rules are applied.
public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
JTree.getTreeCellRendererComponent in interface javax.swing.tree.TreeCellRendererpublic static boolean isRightToLeft(java.lang.String text)
text contains any characters defined
as strong right-left characters in Unicode Bidi.text - text to test for directionalitypublic void flushCache()
TreeCellRenderCache.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||