Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data.tree
Interface TreeDataProxy

All Known Subinterfaces:
HGridDataProxy
All Known Implementing Classes:
BaseTreeDataProxy

public interface TreeDataProxy

The TreeDataProxy allows users at render time to override particular parts of the data which are distributed across the nodes in the tree. The TreeRender, instead of directly asking the node data for these parts, uses the corresponding methods on the TreeProxy, which, given the rendering context, the node itself, and the rendered index of the node, may use whatever strategy it chooses to respond. doPostRender\ will be called immediately after all the nodes are rendered.

See Also:
TreeBean

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?
 

Method Detail

getChildren

public DataObjectList getChildren(RenderingContext context,
                                  DataObject node)
Get the children of this node.

selectionEnabled

public boolean selectionEnabled(RenderingContext context)
Is selection enabled?

isSelected

public boolean isSelected(RenderingContext context,
                          DataObject node,
                          java.lang.String nodeID)
Is this node selected?

getExpandable

public java.lang.String getExpandable(RenderingContext context,
                                      DataObject node,
                                      int index)
Is this node expanded?
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)
Get the value of the UIConstants.EXPAND_DESTINATION_KEY property.

getCollapseDestination

public java.lang.String getCollapseDestination(RenderingContext context,
                                               DataObject node,
                                               int index)
Get the value of the UIConstants.COLLAPSE_DESTINATION_KEY property.

setFormName

public void setFormName(RenderingContext context,
                        java.lang.String formName)
Use a URL or form submission for destinations?

doPostRender

public void doPostRender(RenderingContext context,
                         UINode node)
                  throws java.io.IOException
Render necessary elements to make proxy work (called after the tree has been rendered.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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