ElegantJ Trees Java API Specification v1.1

com.elegantj.awt.tree
Interface AWTTreeCellRenderer

All Known Implementing Classes:
ButtonAWTTreeCellRenderer, CheckboxAWTTreeCellRenderer, ChoiceAWTTreeCellRenderer, DefaultAWTTreeCellRenderer, JLabelTreeCellRenderer, TextAreaAWTTreeCellRenderer

public interface AWTTreeCellRenderer

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

getAWTTreeCellRendererComponent

public 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

Parameters:
tree - The AWTTree
value - The user obejct of the node
selected - wheather node is selected or not
expanded - wheather node is expanded or not
leaf - wheather node is leaf or not
node - The AWTTreeNode
hasFocus - wheather node has focus or not
Returns:
The cell renderer for the AWTTree

getImageIcon

public 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

Parameters:
tree - The AWTTree
value - The user obejct of the node
selected - wheather node is selected or not
expanded - wheather node is expanded or not
leaf - wheather node is leaf or not
node - The AWTTreeNode
hasFocus - wheather node has focus or not
Returns:
The image icon for the specified node

setValue

public void setValue(java.lang.Object value)
Sets the value for the cell renderer

Parameters:
value - The value for the cell renderer

getValue

public java.lang.Object getValue()
Returns the value of the cell renderer

Returns:
The value of the cell renderer

ElegantJ Trees Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.