|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.tree.AbstractTreeView
public abstract class AbstractTreeView
| Constructor Summary | |
|---|---|
AbstractTreeView()
|
|
| Method Summary | |
|---|---|
abstract UserTransaction |
createReadTransaction()
Create a new instance of a UserTransaction that may be used to read information. |
abstract UserTransaction |
createWriteTransaction()
Create a new instance of a UserTransaction that may be used to write and/or update information. |
abstract UserTransaction |
createWriteTransaction(java.lang.Object source)
Create a new instance of a UserTransaction that may be used to write and/or update information. |
abstract java.util.List |
getChildren(TreeNode parent)
Obtain the set of entries that are considered the children of the specified TreeNode. |
java.util.Comparator |
getComparator()
Return the comparator used to order for children returned from this view. |
TreeNodeFilter |
getFilter()
Return the filter that is being used by this view. |
abstract TreeNode |
getHome()
Obtain the DirectoryEntry that represents the home for the underlying system. |
abstract TreeNode |
getParent(TreeNode node)
Determine the parent TreeNode for the specified node, or null if the specified node is a root. |
abstract java.lang.String |
getPath(TreeNode node)
Obtain the abstract path for this TreeNode. |
abstract PropertiedObjectEditor |
getPropertiedObjectEditor()
Return the propertied object editor for this view. |
abstract java.util.List |
getPropertyDefinitions()
Get the definitions of the properties for the TreeNode instances returned from this view. |
abstract java.util.List |
getRoots()
Returns the single root of this TreeNode system. |
abstract java.lang.String |
getSeparator()
Obtain the character (as a String) that is used to separate names in a path sequence for the abstract path. |
abstract char |
getSeparatorChar()
Obtain the character that is used to separate names in a path sequence for the abstract path. |
abstract TreeNodeEditor |
getTreeNodeEditor()
Return the tree node editor for this view. |
abstract boolean |
isAncestorOf(TreeNode ancestor,
TreeNode descendent)
Determine whether the specified node is a descendent of the given ancestor node. |
abstract boolean |
isHidden(TreeNode node)
Determine whether the specified TreeNode is hidden. |
abstract boolean |
isMarked(TreeNode node)
Return the marked state of the specified node. |
abstract boolean |
isParentOf(TreeNode parent,
TreeNode child)
Determine whether the specified node is a child of the given parent node. |
boolean |
isRoot(TreeNode node)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.metamatrix.common.tree.TreeView |
|---|
allowsChild, allowsChildren, getMarked, setMarked |
| Constructor Detail |
|---|
public AbstractTreeView()
| Method Detail |
|---|
public void setFilter(TreeNodeFilter filter)
setFilter in interface TreeViewfilter - the filter, or null if the default "pass-through" filter should be used.public TreeNodeFilter getFilter()
getFilter in interface TreeViewpublic void setComparator(java.util.Comparator comparator)
setComparator in interface TreeViewcomparator - the comparator, or null if node path sorting should be used.public java.util.Comparator getComparator()
getComparator in interface TreeViewpublic abstract java.util.List getPropertyDefinitions()
getPropertyDefinitions in interface TreeViewpublic abstract java.util.List getRoots()
getRoots in interface TreeViewpublic boolean isRoot(TreeNode node)
isRoot in interface TreeViewnode - the TreeNode instance that is to be checked; may not be null
public abstract boolean isHidden(TreeNode node)
isHidden in interface TreeViewnode - the TreeNode instance that is to be checked; may not be null
public abstract boolean isMarked(TreeNode node)
isMarked in interface TreeViewpublic abstract TreeNode getHome()
getHome in interface TreeViewpublic abstract java.lang.String getPath(TreeNode node)
getPath in interface TreeViewpublic abstract char getSeparatorChar()
getSeparatorChar in interface TreeViewpublic abstract java.lang.String getSeparator()
getSeparator in interface TreeViewpublic abstract TreeNode getParent(TreeNode node)
getParent in interface TreeViewnode - the TreeNode instance for which the parent is to be obtained;
may not be null
public abstract java.util.List getChildren(TreeNode parent)
getChildren in interface TreeViewparent - the TreeNode instance for which the child entries
are to be obtained; may not be null
public abstract boolean isParentOf(TreeNode parent,
TreeNode child)
isParentOf in interface TreeView
public abstract boolean isAncestorOf(TreeNode ancestor,
TreeNode descendent)
isAncestorOf in interface TreeViewpublic abstract PropertiedObjectEditor getPropertiedObjectEditor()
getPropertiedObjectEditor in interface PropertiedObjectViewpublic abstract TreeNodeEditor getTreeNodeEditor()
getTreeNodeEditor in interface TreeViewpublic abstract UserTransaction createReadTransaction()
createReadTransaction in interface UserTransactionFactorypublic abstract UserTransaction createWriteTransaction()
createWriteTransaction in interface UserTransactionFactorypublic abstract UserTransaction createWriteTransaction(java.lang.Object source)
createWriteTransaction in interface UserTransactionFactorysource - the object that is considered to be the source of the transaction;
may be null
public java.util.Iterator iterator()
iterator in interface TreeViewpublic java.util.Iterator iterator(TreeNode startingPoint)
iterator in interface TreeViewstartingPoint - 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 | |||||||||