|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeView
This interface defines a view of a hierarchy of TreeNode instances.
Method Summary | |
---|---|
boolean |
allowsChild(TreeNode parent,
TreeNode potentialChild)
Determine whether the specified parent TreeNode may contain the specified child node. |
boolean |
allowsChildren(TreeNode entry)
Determine whether the specified TreeNode may contain children. |
java.util.List |
getChildren(TreeNode parent)
Obtain the set of entries that are considered the children of the specified TreeNode. |
java.util.Comparator |
getComparator()
Set the comparator that provides the order for children returned from this view. |
TreeNodeFilter |
getFilter()
Set the filter that limits the set of TreeNode instances returned from this view. |
TreeNode |
getHome()
Obtain the TreeNode that represents the home for the underlying system. |
java.util.Set |
getMarked()
Return the set of marked nodes for this view. |
TreeNode |
getParent(TreeNode entry)
Determine the parent TreeNode for the specified entry, or null if the specified entry is a root. |
java.lang.String |
getPath(TreeNode entry)
Obtain the abstract path for this TreeNode. |
java.util.List |
getPropertyDefinitions()
Get the definitions of the properties for the TreeNode instances returned from this view. |
java.util.List |
getRoots()
Returns all root partitians on this TreeNode system. |
java.lang.String |
getSeparator()
Obtain the character (as a String) that is used to separate names in a path sequence for the abstract path. |
char |
getSeparatorChar()
Obtain the character that is used to separate names in a path sequence for the abstract path. |
TreeNodeEditor |
getTreeNodeEditor()
Return the tree node editor for this view. |
boolean |
isAncestorOf(TreeNode ancestor,
TreeNode descendent)
Determine whether the specified node is a descendent of the given ancestor node. |
boolean |
isHidden(TreeNode entry)
Determine whether the specified TreeNode is hidden. |
boolean |
isMarked(TreeNode entry)
Return the marked state of the specified entry. |
boolean |
isParentOf(TreeNode parent,
TreeNode child)
Determine whether the specified node is a child of the given parent node. |
boolean |
isRoot(TreeNode entry)
Determine whether the specified TreeNode is a root of the underlying system. |
java.util.Iterator |
iterator()
Obtain an iterator for this whole view, which navigates the view's nodes using pre-order rules (i.e., it visits a node before its children). |
java.util.Iterator |
iterator(TreeNode startingPoint)
Obtain an iterator for the view starting at the specified node. |
void |
setComparator(java.util.Comparator comparator)
Set the comparator that should be used to order the children. |
void |
setFilter(TreeNodeFilter filter)
Set the filter that limits the set of TreeNode instances returned from this view. |
void |
setMarked(TreeNode entry,
boolean markedState)
Set the marked state of the specified entry. |
Methods inherited from interface com.metamatrix.common.object.PropertiedObjectView |
---|
getPropertiedObjectEditor |
Methods inherited from interface com.metamatrix.common.transaction.UserTransactionFactory |
---|
createReadTransaction, createWriteTransaction, createWriteTransaction |
Method Detail |
---|
void setFilter(TreeNodeFilter filter)
filter
- the filter, or null if the default "pass-through" filter should be used.TreeNodeFilter getFilter()
void setComparator(java.util.Comparator comparator)
comparator
- the comparator, or null if entry name sorting should be used.java.util.Comparator getComparator()
java.util.List getPropertyDefinitions()
java.util.List getRoots()
boolean isRoot(TreeNode entry)
entry
- the TreeNode instance that is to be checked; may
not be null
boolean allowsChildren(TreeNode entry)
entry
- the TreeNode instance that is to be checked; may
not be null
boolean allowsChild(TreeNode parent, TreeNode potentialChild)
parent
- the TreeNode instance that is to be the parent;
may not be nullpotentialChild
- the TreeNode instance that is to be the child;
may not be null
boolean isHidden(TreeNode entry)
entry
- the TreeNode instance that is to be checked; may
not be null
boolean isMarked(TreeNode entry)
void setMarked(TreeNode entry, boolean markedState)
true
- if the node is to be marked, or false if it is to be un-marked.java.util.Set getMarked()
the
- unmodifiable set of marked nodes; never nullTreeNode getHome()
java.lang.String getPath(TreeNode entry)
char getSeparatorChar()
java.lang.String getSeparator()
TreeNode getParent(TreeNode entry)
entry
- the TreeNode instance for which the parent is to be obtained;
may not be null
java.util.List getChildren(TreeNode parent)
parent
- the TreeNode instance for which the child entries
are to be obtained; may not be null
boolean isParentOf(TreeNode parent, TreeNode child)
boolean isAncestorOf(TreeNode ancestor, TreeNode descendent)
TreeNodeEditor getTreeNodeEditor()
java.util.Iterator iterator()
java.util.Iterator iterator(TreeNode startingPoint)
startingPoint
- the root of the subtree over which the iterator
is to navigate; may not be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |