edu.sdsc.grid.gui
Class JargonTreeCellRenderer
java.lang.Object
edu.sdsc.grid.gui.JargonTreeCellRenderer
- All Implemented Interfaces:
- javax.swing.tree.TreeCellRenderer
public class JargonTreeCellRenderer
- extends java.lang.Object
- implements javax.swing.tree.TreeCellRenderer
Displays an entry in a tree.
A custom tree cell renderer to compliment the JargonTreeModel
The GeneralFile classes which form the nodes of the tree will be displayed,
as inline JLabel, and expanded to a table for filesystems that
support metadata.
- Since:
- JARGON1.5
- See Also:
JargonTreeModel,
JargonTreeCellEditor
|
Method Summary |
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
Sets the value of the current tree cell to value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JargonTreeCellRenderer
public JargonTreeCellRenderer()
- Default empty constructor.
getTreeCellRendererComponent
public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
- Sets the value of the current tree cell to value. If selected is true,
the cell will be drawn as if selected. If expanded is true the node is
currently expanded and if leaf is true the node represets a leaf and if
hasFocus is true the node currently has focus. tree is the JTree the
receiver is being configured for. Returns the Component that the renderer
uses to draw the value.
- Specified by:
getTreeCellRendererComponent in interface javax.swing.tree.TreeCellRenderer