|
||||||||||
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 TreeView
filter
- the filter, or null if the default "pass-through" filter should be used.public TreeNodeFilter getFilter()
getFilter
in interface TreeView
public void setComparator(java.util.Comparator comparator)
setComparator
in interface TreeView
comparator
- the comparator, or null if node path sorting should be used.public java.util.Comparator getComparator()
getComparator
in interface TreeView
public abstract java.util.List getPropertyDefinitions()
getPropertyDefinitions
in interface TreeView
public abstract java.util.List getRoots()
getRoots
in interface TreeView
public boolean isRoot(TreeNode node)
isRoot
in interface TreeView
node
- the TreeNode instance that is to be checked; may not be null
public abstract boolean isHidden(TreeNode node)
isHidden
in interface TreeView
node
- the TreeNode instance that is to be checked; may not be null
public abstract boolean isMarked(TreeNode node)
isMarked
in interface TreeView
public abstract TreeNode getHome()
getHome
in interface TreeView
public abstract java.lang.String getPath(TreeNode node)
getPath
in interface TreeView
public abstract char getSeparatorChar()
getSeparatorChar
in interface TreeView
public abstract java.lang.String getSeparator()
getSeparator
in interface TreeView
public abstract TreeNode getParent(TreeNode node)
getParent
in interface TreeView
node
- 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 TreeView
parent
- 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 TreeView
public abstract PropertiedObjectEditor getPropertiedObjectEditor()
getPropertiedObjectEditor
in interface PropertiedObjectView
public abstract TreeNodeEditor getTreeNodeEditor()
getTreeNodeEditor
in interface TreeView
public abstract UserTransaction createReadTransaction()
createReadTransaction
in interface UserTransactionFactory
public abstract UserTransaction createWriteTransaction()
createWriteTransaction
in interface UserTransactionFactory
public abstract UserTransaction createWriteTransaction(java.lang.Object source)
createWriteTransaction
in interface UserTransactionFactory
source
- the object that is considered to be the source of the transaction;
may be null
public java.util.Iterator iterator()
iterator
in interface TreeView
public java.util.Iterator iterator(TreeNode startingPoint)
iterator
in interface TreeView
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 |