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 BCNode

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.osn.panel.BCNode
Direct Known Subclasses:
AMNode, FndOsnIntegrationNode, ModelNode, PackageNode, ViewLinkUsageNode, VONode

public abstract class BCNode
extends java.lang.Object

Basic node class to be used in swing DefaultMutableTreeNode as the UserObject.


Field Summary
protected  java.lang.String _eol
           
static java.lang.String XML_NAMESPACE
          Namespace of applcore osn metadata.
 
Constructor Summary
BCNode(java.lang.String name, java.lang.String displayValue)
          Default constructor.
 
Method Summary
 boolean equals(java.lang.Object object)
          
 java.lang.String getDisplayValue()
          Get the display value.
abstract  javax.swing.Icon getIcon()
          Return an appropriate icon for this node.
 java.lang.String getName()
          Get the name.
abstract  java.lang.String getToolTip()
          Get the tool tip for this node.
 int hashCode()
          
static javax.swing.tree.DefaultMutableTreeNode loadXFromXML(oracle.ide.Context context, org.w3c.dom.Element e)
          Factory method to load e, and all appropriate sub-Elements into a tree for displaying in a swing tree.
abstract  java.lang.String toXML(javax.swing.tree.DefaultMutableTreeNode thisNode)
          Encode this node, and all children appropriately into xml.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_NAMESPACE

public static final java.lang.String XML_NAMESPACE
Namespace of applcore osn metadata.

See Also:
Constant Field Values

_eol

protected java.lang.String _eol
Constructor Detail

BCNode

public BCNode(java.lang.String name,
              java.lang.String displayValue)
Default constructor. All nodes need a name (code value), and display value which is seen by the user.

Parameters:
name - code value identifying the node.
displayValue - user shown value.
Method Detail

getName

public java.lang.String getName()
Get the name.

Returns:
name.

getDisplayValue

public java.lang.String getDisplayValue()
Get the display value.

Returns:
display value.

loadXFromXML

public static javax.swing.tree.DefaultMutableTreeNode loadXFromXML(oracle.ide.Context context,
                                                                   org.w3c.dom.Element e)
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.
Returns:
a non-null tree of nodes to be represent the file.

toXML

public abstract java.lang.String toXML(javax.swing.tree.DefaultMutableTreeNode thisNode)
Encode this node, and all children appropriately into xml.

Parameters:
thisNode - node to encode.
Returns:
String representation.

getIcon

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

Returns:
an Icon.

getToolTip

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

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 java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

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

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.