|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.swing.XTree.Renderer
protected class XTree.Renderer
Custom tree cell renderer class. Never draws focus indicators.
Constructor Summary | |
---|---|
protected |
XTree.Renderer()
|
Method Summary | |
---|---|
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
Get the tree cell renderer component. |
void |
setClosedIcon(javax.swing.ImageIcon newIcon)
Set the closed folder icon for the tree display. |
void |
setLeafIcon(javax.swing.ImageIcon newIcon)
Set the leaf icon for the tree display. |
void |
setOpenIcon(javax.swing.ImageIcon newIcon)
Set the open folder icon for the tree display. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected XTree.Renderer()
Method Detail |
---|
public void setLeafIcon(javax.swing.ImageIcon newIcon)
setLeafIcon
in interface TreeIconSetter
newIcon
- The new leaf icon. public void setOpenIcon(javax.swing.ImageIcon newIcon)
setOpenIcon
in interface TreeIconSetter
newIcon
- The new open folder icon. public void setClosedIcon(javax.swing.ImageIcon newIcon)
setClosedIcon
in interface TreeIconSetter
newIcon
- The new closed folder icon. public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, java.lang.Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
getTreeCellRendererComponent
in interface javax.swing.tree.TreeCellRenderer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |