ADF Designtime

oracle.adf.dt.controls.treemodel
Class DefaultDataControlAccessorNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byoracle.adf.dt.controls.treemodel.DefaultDataControlTreeNode
          extended byoracle.adf.dt.controls.treemodel.DefaultDataControlAccessorNode
All Implemented Interfaces:
BasicTreeNode, java.lang.Cloneable, ContainerNode, DataControlAccessorNode, DataControlTreeNode, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Direct Known Subclasses:
BC4JModelViewObjectTreeNode, BC4JStructDomainAttributeAccessorNode, BeanStructureTreeNode, JotMethodAccessorReturnNode, JotMethodTreeNode, MethodTreeNode

public abstract class DefaultDataControlAccessorNode
extends DefaultDataControlTreeNode
implements DataControlAccessorNode, ContainerNode

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Fields inherited from interface oracle.adf.dt.controls.DataControlTreeNode
ACCESSOR_NODE, ACTION_NODE, APPLICATION_MODULE, ATTRIBUTE_NODE, COLLECTION_NODE, DATA_CONTROL_NODE, JAVA_BEAN, METHOD_NODE
 
Constructor Summary
DefaultDataControlAccessorNode(JUDTDataControl dataControl)
           
DefaultDataControlAccessorNode(JUDTDataControl dataControl, TreeNodesChooser chooser)
           
 
Method Summary
protected  void addActionNodes()
           
 java.util.ArrayList getActionNodes()
           
 java.lang.Class getIteratorClass()
          Returns the iterator class name.
 java.lang.String getIteratorModelReference()
           
 java.lang.String getIteratorName()
           
 DataControlAccessorNode getMasterNode()
           
 java.lang.String getModelPath()
          Returns the path of the accessor hierarchy.
abstract  RowsetInfo getRowsetInfo()
          Only call this function if getNodeType() returns ACCESSOR_NODE or COLLECTION_NODE
 void initializeIteratorBinding(JUDTIteratorBinding iterator)
          Allows tree node to initalize the iterator binding created based on the node selection.
 boolean isOperationSupported(int nOperation)
          Checks with the node if the operation is supported.
 boolean iteratorRepresentsNode(JUDTIteratorBinding iterator)
          Allows tree node to decide if the given iterator matches the node's iterator definition.
 void setIteratorClass(java.lang.Class iteratorClass)
          Initializes the iterator class name.
 void setMasterNode(DataControlAccessorNode masterNode)
           
 
Methods inherited from class oracle.adf.dt.controls.treemodel.DefaultDataControlTreeNode
actionRepresentsNode, addTransactionNodes, getActionsFolder, getActualBindingType, getAttributeBindings, getAttributeInfo, getBindingNameSuffix, getDataControl, getDefaultBindingName, getInstanceName, getIteratorSourceNode, getIteratorSubType, getMethodReturnNode, getModelObjectName, getNodeIcon, getNodeText, getNodeType, getTooltipText, getTransactionNodes, getTreeNodesChooser, initializeActionBinding, isMethodReturnChildNode, isReadyForBinding, isRuntimeEditable, isRuntimeVisible, isScalarMethodReturnNode, isViewObjectMethod, loadChildNodes, requiresIterator, setActionInstanceName, setInstanceName, setIteratorSourcenode, setNodeIcon, setShouldExpand, shouldExpandNode, toString
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.adf.dt.controls.DataControlAccessorNode
getIteratorSubType
 
Methods inherited from interface oracle.adf.dt.controls.DataControlTreeNode
actionRepresentsNode, getActualBindingType, getAttributeBindings, getAttributeInfo, getBindingNameSuffix, getDataControl, getDefaultBindingName, getInstanceName, getIteratorSourceNode, getMethodReturnNode, getModelObjectName, getModelObjectType, getNodeType, initializeActionBinding, isMethodReturnChildNode, isReadyForBinding, isRuntimeEditable, isRuntimeVisible, isScalarMethodReturnNode, isViewObjectMethod, requiresIterator, setInstanceName
 
Methods inherited from interface oracle.adf.dt.controls.BasicTreeNode
getNodeIcon, getNodeText, getTooltipText, getUserObject, setShouldExpand, shouldExpandNode
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 
Methods inherited from interface oracle.adf.dt.controls.ContainerNode
loadChildNodes
 

Constructor Detail

DefaultDataControlAccessorNode

public DefaultDataControlAccessorNode(JUDTDataControl dataControl)

DefaultDataControlAccessorNode

public DefaultDataControlAccessorNode(JUDTDataControl dataControl,
                                      TreeNodesChooser chooser)
Method Detail

getRowsetInfo

public abstract RowsetInfo getRowsetInfo()
Description copied from interface: DataControlAccessorNode
Only call this function if getNodeType() returns ACCESSOR_NODE or COLLECTION_NODE

Specified by:
getRowsetInfo in interface DataControlAccessorNode
Returns:

setMasterNode

public final void setMasterNode(DataControlAccessorNode masterNode)

getMasterNode

public final DataControlAccessorNode getMasterNode()
Specified by:
getMasterNode in interface DataControlAccessorNode
Returns:
the master node that represents the accessor's source node. It may return null if this is an accessor of the root node.

getIteratorName

public java.lang.String getIteratorName()
Specified by:
getIteratorName in interface DataControlAccessorNode
Returns:
the name to be used for the iterator that provides the data for this field

getIteratorClass

public final java.lang.Class getIteratorClass()
Description copied from interface: DataControlAccessorNode
Returns the iterator class name.

Specified by:
getIteratorClass in interface DataControlAccessorNode
Returns:

setIteratorClass

public final void setIteratorClass(java.lang.Class iteratorClass)
Description copied from interface: DataControlAccessorNode
Initializes the iterator class name.

Specified by:
setIteratorClass in interface DataControlAccessorNode
Parameters:
iteratorClass -

getIteratorModelReference

public java.lang.String getIteratorModelReference()
Specified by:
getIteratorModelReference in interface DataControlAccessorNode
Returns:
The model reference expresssion for use in the iterator for this node.

getModelPath

public java.lang.String getModelPath()
Description copied from interface: DataControlAccessorNode
Returns the path of the accessor hierarchy.

Specified by:
getModelPath in interface DataControlAccessorNode
Returns:

iteratorRepresentsNode

public boolean iteratorRepresentsNode(JUDTIteratorBinding iterator)
Description copied from interface: DataControlAccessorNode
Allows tree node to decide if the given iterator matches the node's iterator definition. It a match is not found a new iterator will be created.

Specified by:
iteratorRepresentsNode in interface DataControlAccessorNode
Parameters:
iterator -
Returns:

initializeIteratorBinding

public void initializeIteratorBinding(JUDTIteratorBinding iterator)
Description copied from interface: DataControlAccessorNode
Allows tree node to initalize the iterator binding created based on the node selection.

Specified by:
initializeIteratorBinding in interface DataControlAccessorNode
Parameters:
iterator -

addActionNodes

protected void addActionNodes()

getActionNodes

public java.util.ArrayList getActionNodes()

isOperationSupported

public boolean isOperationSupported(int nOperation)
Description copied from interface: DataControlTreeNode
Checks with the node if the operation is supported. If false is returned, the action node will not be added. Most node types are not concerned with this function. Only data control and accessor nodes would be expected to override this function.

Specified by:
isOperationSupported in interface DataControlTreeNode
Overrides:
isOperationSupported in class DefaultDataControlTreeNode

ADF Designtime

 

Copyright © 1997, 2004, Oracle. All rights reserved.