com.arsdigita.bebop.tree
Class DefaultTreeCellRenderer
java.lang.Object
com.arsdigita.bebop.tree.DefaultTreeCellRenderer
- All Implemented Interfaces:
- TreeCellRenderer
- public class DefaultTreeCellRenderer
- extends Object
- implements TreeCellRenderer
The interface
describes how a tree node (component) can be rendered.
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/bebop/tree/DefaultTreeCellRenderer.java#9 $
- Author:
- David Lutterkort, Tri Tran
- See Also:
TreeModel
,
TreeNode
,
Tree
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
DefaultTreeCellRenderer
public DefaultTreeCellRenderer()
getComponent
public Component getComponent(Tree tree,
PageState state,
Object value,
boolean isSelected,
boolean isExpanded,
boolean isLeaf,
Object key)
- Returns node component to be displayed. The component's
generateXML
or print
is called
to render the node.
- Specified by:
getComponent
in interface TreeCellRenderer
- Parameters:
tree
- the Tree
in which this node is being displayedstate
- represents the state of the current requestvalue
- the object returned by the TreeModel for that node,
such as pretty nameisSelected
- true if the node is selectedisExpanded
- true if the node is expanded (not collapsed)isLeaf
- true if the node is a leaf node (no children)key
- the object uniquely identify that node (primary key)
- Returns:
- the component used to generate the output for the node item
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC