|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.tree.basic.BasicTreeNodeSource
public class BasicTreeNodeSource
This interface defines an interface to a source of TreeNode information.
Constructor Summary | |
---|---|
BasicTreeNodeSource(ObjectIDFactory idFactory)
|
|
BasicTreeNodeSource(ObjectIDFactory idFactory,
PropertyAccessPolicy policy,
UserTransactionFactory txnFactory)
|
|
BasicTreeNodeSource(ObjectIDFactory idFactory,
UserTransactionFactory txnFactory)
|
Method Summary | |
---|---|
boolean |
allowsChild(TreeNode parent,
TreeNode potentialChild)
Determine whether the specified parent TreeNode may contain the specified child node. |
boolean |
allowsChildren(TreeNode node)
Determine whether the specified TreeNode may contain children. |
protected BasicTreeNode |
assertBasicTreeNode(TreeNode node)
|
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. |
ObjectIDFactory |
getObjectIDFactory()
Return the ObjectIDFactory instance for this TreeNodeSource |
TreeNode |
getParent(TreeNode node)
Determine the parent TreeNode for the specified entry, or null if the specified entry is a root. |
PropertyAccessPolicy |
getPropertyAccessPolicy()
Return the PropertyAccessPolicy instance for this TreeNodeSource |
UserTransactionFactory |
getUserTransactionFactory()
Return the UserTransactionFactory instance for this TreeNodeSource |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicTreeNodeSource(ObjectIDFactory idFactory)
public BasicTreeNodeSource(ObjectIDFactory idFactory, UserTransactionFactory txnFactory)
public BasicTreeNodeSource(ObjectIDFactory idFactory, PropertyAccessPolicy policy, UserTransactionFactory txnFactory)
Method Detail |
---|
protected BasicTreeNode assertBasicTreeNode(TreeNode node)
public java.util.List getChildren(TreeNode parent)
getChildren
in interface TreeNodeSource
parent
- the TreeNode instance for which the child entries
are to be obtained; may not be null
public TreeNode getParent(TreeNode node)
getParent
in interface TreeNodeSource
entry
- the TreeNode instance for which the parent is to be obtained;
may not be null
public TreeNodeEditor createTreeNodeEditor()
createTreeNodeEditor
in interface TreeNodeSource
public boolean allowsChildren(TreeNode node)
allowsChildren
in interface TreeNodeSource
entry
- the TreeNode instance that is to be checked; may
not be null
public 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
public boolean isParentOf(TreeNode parent, TreeNode child)
isParentOf
in interface TreeNodeSource
public boolean isAncestorOf(TreeNode ancestor, TreeNode descendent)
isAncestorOf
in interface TreeNodeSource
public boolean isReadOnly(TreeNode node)
isReadOnly
in interface TreeNodeSource
entry
- the TreeNode instance that is to be checked; may
not be null
public ObjectIDFactory getObjectIDFactory()
public PropertyAccessPolicy getPropertyAccessPolicy()
public UserTransactionFactory getUserTransactionFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |