Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data.tree
Class BaseTreeDataProxy

java.lang.Object
  |
  +--oracle.cabo.ui.data.tree.BaseTreeDataProxy
All Implemented Interfaces:
TreeDataProxy
Direct Known Subclasses:
BaseHGridDataProxy, ClientStateHGridDataProxy, ClientStateTreeDataProxy

public class BaseTreeDataProxy
extends java.lang.Object
implements TreeDataProxy

A default implementation of the TreeDataProxy interface. It simply defers to the node's value for each property.


Constructor Summary
BaseTreeDataProxy()
           
 
Method Summary
 void doPostRender(RenderingContext context, UINode node)
          Render necessary elements to make proxy work (called after the tree has been rendered.
 DataObjectList getChildren(RenderingContext context, DataObject node)
          Get the children of this node.
 java.lang.String getCollapseDestination(RenderingContext context, DataObject node, int index)
          Get the value of the UIConstants.COLLAPSE_DESTINATION_KEY property.
 java.lang.String getExpandable(RenderingContext context, DataObject node, int index)
          Is this node expanded?
 java.lang.String getExpandDestination(RenderingContext context, DataObject node, int index)
          Get the value of the UIConstants.EXPAND_DESTINATION_KEY property.
 boolean isSelected(RenderingContext context, DataObject node, java.lang.String nodeID)
          Is this node selected?
 boolean selectionEnabled(RenderingContext context)
          Is selection enabled?
 void setFormName(RenderingContext context, java.lang.String formName)
          Use a URL or form submission for destinations?
static TreeDataProxy sharedInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTreeDataProxy

public BaseTreeDataProxy()
Method Detail

sharedInstance

public static TreeDataProxy sharedInstance()

getChildren

public DataObjectList getChildren(RenderingContext context,
                                  DataObject node)
Description copied from interface: TreeDataProxy
Get the children of this node.
Specified by:
getChildren in interface TreeDataProxy
Returns:
if the node does not have any children, then an empty DataObjectList is returned.

getExpandable

public java.lang.String getExpandable(RenderingContext context,
                                      DataObject node,
                                      int index)
Description copied from interface: TreeDataProxy
Is this node expanded?
Specified by:
getExpandable in interface TreeDataProxy
Following copied from interface: oracle.cabo.ui.data.tree.TreeDataProxy
Parameters:
node - the tree node being examined.
index - the position of this node in the order in which the nodes of the tree are rendered.
Returns:
one of UIConstants.EXPANDABLE_NO, UIConstants.EXPANDABLE_EXPANDED or UIConstants.EXPANDABLE_COLLAPSED

getExpandDestination

public java.lang.String getExpandDestination(RenderingContext context,
                                             DataObject node,
                                             int index)
Description copied from interface: TreeDataProxy
Get the value of the UIConstants.EXPAND_DESTINATION_KEY property.
Specified by:
getExpandDestination in interface TreeDataProxy

getCollapseDestination

public java.lang.String getCollapseDestination(RenderingContext context,
                                               DataObject node,
                                               int index)
Description copied from interface: TreeDataProxy
Get the value of the UIConstants.COLLAPSE_DESTINATION_KEY property.
Specified by:
getCollapseDestination in interface TreeDataProxy

selectionEnabled

public boolean selectionEnabled(RenderingContext context)
Description copied from interface: TreeDataProxy
Is selection enabled?
Specified by:
selectionEnabled in interface TreeDataProxy

isSelected

public boolean isSelected(RenderingContext context,
                          DataObject node,
                          java.lang.String nodeID)
Description copied from interface: TreeDataProxy
Is this node selected?
Specified by:
isSelected in interface TreeDataProxy

setFormName

public void setFormName(RenderingContext context,
                        java.lang.String formName)
Description copied from interface: TreeDataProxy
Use a URL or form submission for destinations?
Specified by:
setFormName in interface TreeDataProxy

doPostRender

public void doPostRender(RenderingContext context,
                         UINode node)
                  throws java.io.IOException
Description copied from interface: TreeDataProxy
Render necessary elements to make proxy work (called after the tree has been rendered.
Specified by:
doPostRender in interface TreeDataProxy

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.