oracle.adf.dt.controls.treemodel
Class DefaultDataControlTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
oracle.adf.dt.controls.treemodel.DefaultDataControlTreeNode
- All Implemented Interfaces:
- BasicTreeNode, java.lang.Cloneable, DataControlTreeNode, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
- Direct Known Subclasses:
- ActionNode, BaseToplinkModelDataControlTreeNode, BC4JApplicationModuleReferenceTreeNode, BC4JDataControlTreeNode, BC4JDomainAttributeTreeNode, BC4JViewObjectAttributeTreeNode, BeanMethodScalarReturnNode, BeanModelAttributeTreeNode, DefaultDataControlAccessorNode, JotMethodReturnNode
- public abstract class DefaultDataControlTreeNode
- extends javax.swing.tree.DefaultMutableTreeNode
- implements DataControlTreeNode
- See Also:
- Serialized Form
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
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 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 |
DefaultDataControlTreeNode
public DefaultDataControlTreeNode(JUDTDataControl dataControl)
DefaultDataControlTreeNode
public DefaultDataControlTreeNode(JUDTDataControl dataControl,
TreeNodesChooser chooser)
setNodeIcon
public final void setNodeIcon(javax.swing.Icon icon)
getNodeIcon
public final javax.swing.Icon getNodeIcon()
-
- Specified by:
getNodeIcon
in interface BasicTreeNode
-
- Returns:
- node icon
isReadyForBinding
public boolean isReadyForBinding()
-
- Specified by:
isReadyForBinding
in interface DataControlTreeNode
-
- Returns:
- false if this node is not fully defined. An example of this is a collection without the beanClass attribute set. If the node returns false, dragging from this node is disabled.
isMethodReturnChildNode
public boolean isMethodReturnChildNode()
- Description copied from interface:
DataControlTreeNode
- Returns True if this node is contained within a method return node. This means that it is a prt of a method result.
-
- Specified by:
isMethodReturnChildNode
in interface DataControlTreeNode
getMethodReturnNode
public MethodReturnNode getMethodReturnNode()
- Description copied from interface:
DataControlTreeNode
- Returns the method return node. This will be null if isMethodReturnChildNode returns false.
-
- Specified by:
getMethodReturnNode
in interface DataControlTreeNode
requiresIterator
public boolean requiresIterator()
-
- Specified by:
requiresIterator
in interface DataControlTreeNode
-
- Returns:
- true if this node requires an iterator definition to be created.
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
-
- Returns:
setIteratorSourcenode
public void setIteratorSourcenode(DataControlAccessorNode iteratorSource)
getDataControl
public final JUDTDataControl getDataControl()
- Description copied from interface:
DataControlTreeNode
- Returns the DataControl parent of this node.
-
- Specified by:
getDataControl
in interface DataControlTreeNode
-
- Returns:
getTreeNodesChooser
public TreeNodesChooser getTreeNodesChooser()
getInstanceName
public final java.lang.String getInstanceName()
-
- Specified by:
getInstanceName
in interface DataControlTreeNode
-
- Returns:
- instance name for runtime use via expression language
setInstanceName
public final void setInstanceName(java.lang.String sName)
-
- Specified by:
setInstanceName
in interface DataControlTreeNode
-
- Parameters:
sName
- - new instance name to be used for node
getActionsFolder
public final javax.swing.tree.DefaultMutableTreeNode getActionsFolder()
setShouldExpand
public final void setShouldExpand(boolean bSet)
-
- Specified by:
setShouldExpand
in interface BasicTreeNode
-
- Parameters:
bSet
- true is node should be expanded by default
shouldExpandNode
public final boolean shouldExpandNode()
-
- Specified by:
shouldExpandNode
in interface BasicTreeNode
-
- Returns:
- true is node should be expanded by default
isRuntimeEditable
public boolean isRuntimeEditable()
- Description copied from interface:
DataControlTreeNode
- Returns true if the service objects supports editing
-
- Specified by:
isRuntimeEditable
in interface DataControlTreeNode
isRuntimeVisible
public boolean isRuntimeVisible()
- Description copied from interface:
DataControlTreeNode
- return true if this node has the visible hint on, it is possible to hide nodes such as attributes from being generated in the user interface. This is only a hint, it is not required that it be respected by the snippets or controls being generated.
-
- Specified by:
isRuntimeVisible
in interface DataControlTreeNode
isViewObjectMethod
public boolean isViewObjectMethod()
- Description copied from interface:
DataControlTreeNode
- Returns true if we have a View Object method node
-
- Specified by:
isViewObjectMethod
in interface DataControlTreeNode
isScalarMethodReturnNode
public boolean isScalarMethodReturnNode()
- Description copied from interface:
DataControlTreeNode
- Returns true if we have a scalar method return node
-
- Specified by:
isScalarMethodReturnNode
in interface DataControlTreeNode
getBindingNameSuffix
public java.lang.String getBindingNameSuffix()
- Description copied from interface:
DataControlTreeNode
- Returns the binding name suffix used in generating the control id.
-
- Specified by:
getBindingNameSuffix
in interface DataControlTreeNode
getDefaultBindingName
public java.lang.String getDefaultBindingName()
-
- Specified by:
getDefaultBindingName
in interface DataControlTreeNode
-
- Returns:
- The default name for a binding the is created to access this node. This allows the node creators to control the generated names.
getIteratorSubType
public java.lang.String getIteratorSubType()
getActualBindingType
public java.lang.String getActualBindingType(java.lang.String sBindingType)
- The default behavior is to return the same value of the passed-in parameter. No substitution will occur.
-
- Specified by:
getActualBindingType
in interface DataControlTreeNode
-
- Parameters:
sBindingType
-
- Returns:
setActionInstanceName
protected void setActionInstanceName(JUDTCtrlAction action)
initializeActionBinding
public void initializeActionBinding(JUDTCtrlAction action)
- Description copied from interface:
DataControlTreeNode
- Allows the tree node to initialize the action that is bound to it. The default implementation provides initialization for the known method types.
-
- Specified by:
initializeActionBinding
in interface DataControlTreeNode
-
- Parameters:
action
-
actionRepresentsNode
public boolean actionRepresentsNode(JUDTCtrlAction action)
- Allows the tree node to decide if the passed in action represents the action that the tree node requires. Since the comparison is data control specific, the tree node needs to decide if the action that already exists in the binding container matches the node's requirements.
-
- Specified by:
actionRepresentsNode
in interface DataControlTreeNode
-
- Parameters:
action
-
- Returns:
loadChildNodes
public void loadChildNodes()
toString
public java.lang.String toString()
addTransactionNodes
protected void addTransactionNodes(java.lang.String sInstanceName)
getTransactionNodes
public java.util.ArrayList getTransactionNodes(java.lang.String sInstanceName)
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
-
- Parameters:
nOperation
-
- Returns:
getNodeText
public abstract java.lang.String getNodeText()
-
- Specified by:
getNodeText
in interface BasicTreeNode
-
- Returns:
- display text for node
getTooltipText
public abstract java.lang.String getTooltipText()
-
- Specified by:
getTooltipText
in interface BasicTreeNode
-
- Returns:
- Tooltip text for node
getModelObjectName
public abstract java.lang.String getModelObjectName()
-
- Specified by:
getModelObjectName
in interface DataControlTreeNode
-
- Returns:
- model object name.
getAttributeBindings
public abstract java.util.ArrayList getAttributeBindings()
-
- Specified by:
getAttributeBindings
in interface DataControlTreeNode
-
- Returns:
- list of attributes that this node exposes for binding.
getNodeType
public abstract int getNodeType()
-
- Specified by:
getNodeType
in interface DataControlTreeNode
getAttributeInfo
public abstract AttributeInfo getAttributeInfo()
- Description copied from interface:
DataControlTreeNode
- Only call this function if getNodeType() returns ATTRIBUTE_NODE
-
- Specified by:
getAttributeInfo
in interface DataControlTreeNode
-
- Returns:
Copyright © 1997, 2004, Oracle. All rights reserved.