ADF Designtime

oracle.adf.dt.controls.treemodel.bc4j
Class BC4JObjectAttributeAccessorTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byoracle.adf.dt.controls.treemodel.DefaultDataControlTreeNode
          extended byoracle.adf.dt.controls.treemodel.bc4j.BC4JViewObjectAttributeTreeNode
              extended byoracle.adf.dt.controls.treemodel.bc4j.BC4JObjectAttributeAccessorTreeNode
All Implemented Interfaces:
BasicTreeNode, java.lang.Cloneable, ContainerNode, DataControlAccessorNode, DataControlTreeNode, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class BC4JObjectAttributeAccessorTreeNode
extends BC4JViewObjectAttributeTreeNode
implements ContainerNode, DataControlAccessorNode

See Also:
Serialized Form

Field Summary
 
Fields inherited from class oracle.adf.dt.controls.treemodel.bc4j.BC4JViewObjectAttributeTreeNode
_parent, _viewAttribute
 
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
BC4JObjectAttributeAccessorTreeNode(JUDTDataControl dc, BC4JModelViewObjectTreeNode parent, oracle.jbo.dt.objects.JboViewAttr viewAttribute)
           
 
Method Summary
protected  void addActionNodes()
           
 java.util.ArrayList getActionNodes()
           
 java.util.ArrayList getAttributeBindings()
           
 int getDefaultIteratorRangeSize()
           
 java.lang.Class getIteratorClass()
          Returns the iterator class name.
 java.lang.String getIteratorModelReference()
           
 java.lang.String getIteratorName()
           
 DataControlAccessorNode getIteratorSourceNode()
          If the requiresIterator() function returns true, the getIteratorSourceNode return the node that provides the iterator information for initialization purposes.
 java.lang.String getIteratorSubType()
           
 DataControlAccessorNode getMasterNode()
           
 java.lang.String getModelPath()
          Returns the path of the accessor hierarchy.
 int getNodeType()
           
 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 iteratorRepresentsNode(JUDTIteratorBinding iterator)
          Allows tree node to decide if the given iterator matches the node's iterator definition.
 void loadChildNodes()
          Makes sure the child nodes are loaded.
 void setIteratorClass(java.lang.Class iteratorClass)
          Initializes the iterator class name.
 
Methods inherited from class oracle.adf.dt.controls.treemodel.bc4j.BC4JViewObjectAttributeTreeNode
getAttribute, getAttributeInfo, getModelObjectName, getModelObjectType, getNodeText, getTooltipText, isRuntimeEditable, isRuntimeVisible
 
Methods inherited from class oracle.adf.dt.controls.treemodel.DefaultDataControlTreeNode
actionRepresentsNode, addTransactionNodes, getActionsFolder, getActualBindingType, getBindingNameSuffix, getDataControl, getDefaultBindingName, getInstanceName, getMethodReturnNode, getNodeIcon, getTransactionNodes, getTreeNodesChooser, initializeActionBinding, isMethodReturnChildNode, isOperationSupported, isReadyForBinding, isScalarMethodReturnNode, isViewObjectMethod, 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.DataControlTreeNode
actionRepresentsNode, getActualBindingType, getAttributeInfo, getBindingNameSuffix, getDataControl, getDefaultBindingName, getInstanceName, getMethodReturnNode, getModelObjectName, getModelObjectType, initializeActionBinding, isMethodReturnChildNode, isOperationSupported, 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
 

Constructor Detail

BC4JObjectAttributeAccessorTreeNode

public BC4JObjectAttributeAccessorTreeNode(JUDTDataControl dc,
                                           BC4JModelViewObjectTreeNode parent,
                                           oracle.jbo.dt.objects.JboViewAttr viewAttribute)
Method Detail

getIteratorSourceNode

public DataControlAccessorNode getIteratorSourceNode()
Description copied from interface: DataControlTreeNode
If the requiresIterator() function returns true, the getIteratorSourceNode return the node that provides the iterator information for initialization purposes. The most common scenario is to return your own reference. This is necessary to point to the accessor node that is to initiallize its own iterator.

Specified by:
getIteratorSourceNode in interface DataControlTreeNode
Overrides:
getIteratorSourceNode in class BC4JViewObjectAttributeTreeNode

getMasterNode

public 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.

addActionNodes

protected void addActionNodes()

loadChildNodes

public void loadChildNodes()
Description copied from interface: ContainerNode
Makes sure the child nodes are loaded. If Any.

Specified by:
loadChildNodes in interface ContainerNode
Overrides:
loadChildNodes in class DefaultDataControlTreeNode

getAttributeBindings

public java.util.ArrayList getAttributeBindings()
Specified by:
getAttributeBindings in interface DataControlTreeNode
Overrides:
getAttributeBindings in class BC4JViewObjectAttributeTreeNode

getNodeType

public int getNodeType()
Specified by:
getNodeType in interface DataControlTreeNode
Overrides:
getNodeType in class BC4JViewObjectAttributeTreeNode

getIteratorSubType

public java.lang.String getIteratorSubType()
Specified by:
getIteratorSubType in interface DataControlAccessorNode
Overrides:
getIteratorSubType in class DefaultDataControlTreeNode

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

getRowsetInfo

public 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
Overrides:
getRowsetInfo in class BC4JViewObjectAttributeTreeNode

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 -

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.

getIteratorClass

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

Specified by:
getIteratorClass in interface DataControlAccessorNode
Returns:

setIteratorClass

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

Specified by:
setIteratorClass in interface DataControlAccessorNode
Parameters:
iteratorClass -

getDefaultIteratorRangeSize

public int getDefaultIteratorRangeSize()

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:

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:

getActionNodes

public java.util.ArrayList getActionNodes()

ADF Designtime

 

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