Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.dt.osn.panel
Class VONode

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.osn.panel.BCNode
      extended by oracle.apps.fnd.applcore.dt.osn.panel.VONode

public class VONode
extends BCNode

BCNode class implementation representing a View Object, to be used in swing DefaultMutableTreeNode as the UserObject.


Field Summary
static java.lang.String XML_LOCAL_NAME
           
static java.lang.String XML_LOCAL_NAME_VLU
           
 
Fields inherited from class oracle.apps.fnd.applcore.dt.osn.panel.BCNode
_eol, XML_NAMESPACE
 
Constructor Summary
VONode(oracle.ide.Context context, java.lang.String name, java.lang.String displayValue, java.lang.String viewObjectName)
          Construct a VO Node.
VONode(oracle.ide.Context context, java.lang.String name, java.lang.String displayValue, java.lang.String viewObjectName, ViewLinkUsageNode parentVlu)
          Construct a VO Node.
 
Method Summary
 boolean equals(java.lang.Object object)
          
static javax.swing.tree.DefaultMutableTreeNode fromXML(oracle.ide.Context context, org.w3c.dom.Element e, javax.swing.tree.DefaultMutableTreeNode parent)
          Factory method to load e, and all appropriate sub-Elements into a tree for displaying in a swing tree.
 java.util.List<EnableableViewAttribute> getEnableableAttrs()
          Ge a List of Enableable View Link Usage objects.
 javax.swing.Icon getIcon()
          Return an appropriate icon for this node.
 ViewLinkUsageNode getParentVlu()
          Get the parent view Link Usage node, if one is present.
 java.lang.String getToolTip()
          Get the tool tip for this node.
 java.lang.String getViewObjectName()
          Get the View Object name.
 int hashCode()
          
 java.lang.String toXML(javax.swing.tree.DefaultMutableTreeNode thisNode)
          Encode this node, and all children appropriately into xml.
 boolean updateVOIfNeeded()
          Update the VO's OSN Enable flag if needed.
 
Methods inherited from class oracle.apps.fnd.applcore.dt.osn.panel.BCNode
getDisplayValue, getName, loadXFromXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_LOCAL_NAME

public static final java.lang.String XML_LOCAL_NAME
See Also:
Constant Field Values

XML_LOCAL_NAME_VLU

public static final java.lang.String XML_LOCAL_NAME_VLU
See Also:
Constant Field Values
Constructor Detail

VONode

public VONode(oracle.ide.Context context,
              java.lang.String name,
              java.lang.String displayValue,
              java.lang.String viewObjectName)
Construct a VO Node.

Parameters:
name - name.
displayValue - display value.
viewObjectName - fully qualified view object name.

VONode

public VONode(oracle.ide.Context context,
              java.lang.String name,
              java.lang.String displayValue,
              java.lang.String viewObjectName,
              ViewLinkUsageNode parentVlu)
Construct a VO Node.

Parameters:
name - name.
displayValue - display value.
viewObjectName - fully qualified view object name.
parentVlu - optiopnal parent view link usage node, if this VO is a child of another (as opposed to a direct child of an AM).
Method Detail

getViewObjectName

public java.lang.String getViewObjectName()
Get the View Object name.

Returns:
VO name.

toXML

public java.lang.String toXML(javax.swing.tree.DefaultMutableTreeNode thisNode)
Encode this node, and all children appropriately into xml. For example:
 Simple VO
 <ViewUsage Name="Projects"
           ViewObjectName="oracle.apps.fnd.applcore.crmdemo.model.ProjectsVO">

 Vo child with a usage:
 <ViewLinkUsage Name="ProjectsToTasksVL"
                ViewLinkObjectName="oracle.apps.fnd.applcore.crmdemo.model.ProjectsToTasksVL"
                SrcViewUsageName="oracle.apps.fnd.applcore.crmdemo.model.applicationModule.ProjectsTasksAM.Projects"
                DstViewUsageName="oracle.apps.fnd.applcore.crmdemo.model.applicationModule.ProjectsTasksAM.Tasks"
                Reversed="false">
         <ViewUsage Name="Tasks"
                    ViewObjectName="oracle.apps.fnd.applcore.crmdemo.model.TasksVO"/>                       
    </ViewLinkUsage>
 

Specified by:
toXML in class BCNode
Parameters:
thisNode -
Returns:

fromXML

public static javax.swing.tree.DefaultMutableTreeNode fromXML(oracle.ide.Context context,
                                                              org.w3c.dom.Element e,
                                                              javax.swing.tree.DefaultMutableTreeNode parent)
Factory method to load e, and all appropriate sub-Elements into a tree for displaying in a swing tree.

Parameters:
context - context of environment.
e - element acting as root, likely the document node.
parent - non-null Element to become the parent of the newly created node.
Returns:
a non-null tree of nodes to be represent the file.

getIcon

public javax.swing.Icon getIcon()
Return an appropriate icon for this node.

Specified by:
getIcon in class BCNode
Returns:
an Icon.

getToolTip

public java.lang.String getToolTip()
Get the tool tip for this node.

Specified by:
getToolTip in class BCNode
Returns:
textural tool tip to show in the tree on hover over a Node.

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class BCNode

hashCode

public int hashCode()

Overrides:
hashCode in class BCNode

getParentVlu

public ViewLinkUsageNode getParentVlu()
Get the parent view Link Usage node, if one is present.

Returns:
possibly null parent vlu node.

getEnableableAttrs

public java.util.List<EnableableViewAttribute> getEnableableAttrs()
Ge a List of Enableable View Link Usage objects. This is calculated and defensively cached as late as possible to aboid memory bloat.


updateVOIfNeeded

public boolean updateVOIfNeeded()
Update the VO's OSN Enable flag if needed. If this VO has not been touched, or no setting has changed (or it has been doubly flipped, meaning no effective change), then nothing is done to the VO.

Returns:
true if the VO is updated, false otherwise.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.