|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeNodeSource
This interface defines an interface to a source of TreeNode information.
| Method Summary | |
|---|---|
boolean |
allowsChildren(TreeNode node)
Determine whether the specified TreeNode may contain children. |
TreeNodeEditor |
createTreeNodeEditor()
Create a new instance of TreeNodeEditor, which is an editor that may be used to access and/or modify a single TreeNode object. |
java.util.List |
getChildren(TreeNode parent)
Obtain the set of entries that are considered the children of the specified TreeNode. |
TreeNode |
getParent(TreeNode node)
Determine the parent TreeNode for the specified entry, or null if the specified entry is a root. |
boolean |
isAncestorOf(TreeNode ancestor,
TreeNode descendent)
Determine whether the specified node is a descendent of the given ancestor node. |
boolean |
isParentOf(TreeNode parent,
TreeNode child)
Determine whether the specified node is a child of the given parent node. |
boolean |
isReadOnly(TreeNode node)
Determine whether the specified TreeNode is considered read-only |
| Method Detail |
|---|
java.util.List getChildren(TreeNode parent)
parent - the TreeNode instance for which the child entries
are to be obtained; may not be null
TreeNode getParent(TreeNode node)
entry - the TreeNode instance for which the parent is to be obtained;
may not be null
TreeNodeEditor createTreeNodeEditor()
boolean allowsChildren(TreeNode node)
entry - the TreeNode instance that is to be checked; may
not be null
boolean isParentOf(TreeNode parent,
TreeNode child)
boolean isAncestorOf(TreeNode ancestor,
TreeNode descendent)
boolean isReadOnly(TreeNode node)
entry - the TreeNode instance that is to be checked; may
not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||