com.arsdigita.bebop.tree
Interface TreeCellRenderer
- All Known Implementing Classes:
- DefaultTreeCellRenderer
- public interface TreeCellRenderer
The interface
describes how a tree node (component) can be rendered.
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/bebop/tree/TreeCellRenderer.java#9 $
- Author:
- David Lutterkort, Tri Tran
- See Also:
TreeModel
,
TreeNode
,
Tree
versionId
public static final String versionId
- See Also:
- Constant Field Values
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.
- 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 nodeisSelected
- 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