| Modifier and Type | Class and Description |
|---|---|
static interface |
LeafState.Supplier |
| Enum Constant and Description |
|---|
ALWAYS
Specifies that a tree should not show the collapse/expand icon for the node, because this node cannot have any children.
|
ASYNC
Specifies that a tree should show the collapse/expand icon for the node, only if this node have some children.
|
DEFAULT
Specifies that a tree should show the collapse/expand icon for the node, only if this node have some children.
|
NEVER
Specifies that a tree should always show the collapse/expand icon for the node, even if this node have no children.
|
| Modifier and Type | Method and Description |
|---|---|
static LeafState |
get(java.lang.Object node) |
static LeafState |
get(java.lang.Object node,
javax.swing.tree.TreeModel model) |
static LeafState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LeafState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeafState ALWAYS
AbstractTreeNode.isAlwaysLeaf()public static final LeafState NEVER
AbstractTreeNode.isAlwaysShowPlus()public static final LeafState DEFAULT
TreeModel.getChildCount(Object)public static final LeafState ASYNC
public static LeafState[] values()
for (LeafState c : LeafState.values()) System.out.println(c);
public static LeafState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static LeafState get(java.lang.Object node)
node - a tree node, which leaf state interested inDEFAULT valuepublic static LeafState get(java.lang.Object node, javax.swing.tree.TreeModel model)
node - a tree node, which leaf state interested inmodel - a tree model used to resolve a leaf state of the specified tree node