|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeModelAdapter<T>
Used with DefaultTreeModel
to define how to extract labels and child nodes from a value.
Method Summary | |
---|---|
List<T> |
getChildren(T value)
Returns the children, in the order they should be presented to the client. |
String |
getLabel(T value)
Returns a text label for the value, which may be presented to the client. |
boolean |
hasChildren(T value)
Returns true if the value has children (only invoked for non-leaf values). |
boolean |
isLeaf(T value)
Determines if the value is a leaf or a (potential) container of children. |
Method Detail |
---|
boolean isLeaf(T value)
TreeNode.isLeaf()
boolean hasChildren(T value)
TreeNode.getHasChildren()
List<T> getChildren(T value)
TreeNode.getChildren()
String getLabel(T value)
TreeNode.getLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |