|
ElegantJ Trees Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
AWTTreeCellRenderer provides the interface for the cell editor for the AWTTree any component which is implemented with AWTTreeCellEditor will be set as a cell editor for the AWTTree
| Method Summary | |
java.awt.Component |
getAWTTreeCellRendererComponent(AWTTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
AWTTreeNode node,
boolean hasFocus)
Returns the cell renderer for the specified node and it's parameters |
java.awt.Image |
getImageIcon(AWTTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
AWTTreeNode node,
boolean hasFocus)
Returns the image icon for the specified node |
java.lang.Object |
getValue()
Returns the value of the cell renderer |
void |
setValue(java.lang.Object value)
Sets the value for the cell renderer |
| Method Detail |
public java.awt.Component getAWTTreeCellRendererComponent(AWTTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
AWTTreeNode node,
boolean hasFocus)
tree - The AWTTreevalue - The user obejct of the nodeselected - wheather node is selected or notexpanded - wheather node is expanded or notleaf - wheather node is leaf or notnode - The AWTTreeNodehasFocus - wheather node has focus or not
public java.awt.Image getImageIcon(AWTTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
AWTTreeNode node,
boolean hasFocus)
tree - The AWTTreevalue - The user obejct of the nodeselected - wheather node is selected or notexpanded - wheather node is expanded or notleaf - wheather node is leaf or notnode - The AWTTreeNodehasFocus - wheather node has focus or not
public void setValue(java.lang.Object value)
value - The value for the cell rendererpublic java.lang.Object getValue()
|
ElegantJ Trees Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||