|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.odell.glazedlists.swing.AbstractTreeTableNodeDataRenderer
public abstract class AbstractTreeTableNodeDataRenderer
A convenient renderer that eases the implementation of
TreeTableNodeDataRenderer by providing convenient access methods to the data
within the given TreeNodeData
.
Constructor Summary | |
---|---|
AbstractTreeTableNodeDataRenderer()
|
Method Summary | |
---|---|
protected boolean |
allowsChildren()
Returns true if the node is of the type that can have child elements; false otherwise. |
protected int |
getDepth()
Returns the depth of the tree node in the hierarchy. |
protected boolean |
hasChildren()
Returns true if the tree node has child nodes; false otherwise. |
protected boolean |
isExpanded()
Returns true if the node is expanded and its children are thus visible; false if it is collapsed and its children are thus hidden. |
void |
setTreeNodeData(TreeNodeData treeNodeData)
This method will be called before TableCellRenderer.getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolean, int, int)
in order to provide hierarchy information about the tree node being
rendered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableCellRenderer |
---|
getTableCellRendererComponent |
Constructor Detail |
---|
public AbstractTreeTableNodeDataRenderer()
Method Detail |
---|
public final void setTreeNodeData(TreeNodeData treeNodeData)
TreeTableNodeDataRenderer
TableCellRenderer.getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolean, int, int)
in order to provide hierarchy information about the tree node being
rendered. Implementations should store a reference to the given
treeNodeData
and use it when producing an renderer component.
setTreeNodeData
in interface TreeTableNodeDataRenderer
treeNodeData
- an object describing hierarchical information about
the tree node being renderedprotected int getDepth()
protected boolean hasChildren()
protected boolean allowsChildren()
protected boolean isExpanded()
hasChildren()
returns true; otherwise it should be ignored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |