|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.LogicalNodeRenderingContext
Abstract RenderingContext implementation providing support for managing logical ancestors and DataProviders. Although this class supports both root and child RenderingContexts, it is configured by default to support child-style RenderingContexts.
Fields inherited from interface oracle.cabo.ui.RenderingContext |
CONTEXT_PATH_PROPERTY, CONTEXT_URI_PROPERTY, SHARED_CONTEXT_PATH_PROPERTY, SHARED_CONTEXT_URI_PROPERTY |
Constructor Summary | |
LogicalNodeRenderingContext()
Creates a AbstractRenderingContext. |
Method Summary | |
void |
addDataProvider(DataProvider provider)
Adds a DataProvider. |
java.lang.Object |
clone()
Returns a clone of the RenderingContext. |
UINode |
getAncestorNode(int index)
Returns an ancestor of the node currently being processed. |
int |
getAncestorNodeCount()
Returns the number of nodes in the path form the current node to the root of the tree of nodes being rendered. |
DataObject |
getCurrentDataObject()
Returns a DataObject for the current node (such as a row of a table). |
DataObject |
getDataObject(RenderingContext context,
java.lang.String namespaceURI,
java.lang.String name)
Internal version of getDataObject(). |
DataObject |
getDataObject(java.lang.String namespaceURI,
java.lang.String name)
Returns the DataObject for the given namespace and name pair. |
protected int |
getDefaultDataProviderSize()
Returns the default initial number of DataProvider slots to allocate. |
protected int |
getDefaultNodeStackSize()
Returns the default initial number of nodes in the stack of nodes. |
Path |
getPath()
Returns the path to the current node. |
void |
popChild()
Removes a UINode from the stack. |
void |
popRenderedChild()
Removes the UINode to actually use to render from the rendered UINode stack. |
void |
pushChild(UINode child,
java.lang.String childName,
int childIndex)
Adds the UINode about to be rendered to the rendering stack. |
void |
pushRenderedChild(UINode child)
Adds the UINode to actually use to render to the rendered UINode stack. |
protected void |
reset()
Reset the state of the RenderingContext for reuse, even in case where RenderingContext did not complete cleanly. |
DataObject |
setCurrentDataObject(DataObject newDataObject)
Sets the new currentDataObject, returning the current currentDataObject. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.cabo.ui.RenderingContext |
getAgent, getConfiguration, getErrorLog, getImageContext, getLocaleContext, getLocalProperty, getLookAndFeel, getOutputMethod, getParentContext, getProperty, getRenderedAncestorNode, getRenderedAncestorNodeCount, getRendererManager, getStyleContext, getURLEncoder, setLocalProperty, setProperty, transformName |
Constructor Detail |
public LogicalNodeRenderingContext()
Method Detail |
public DataObject getCurrentDataObject()
getCurrentDataObject
in interface RenderingContext
public DataObject setCurrentDataObject(DataObject newDataObject)
RenderingContext
setCurrentDataObject
in interface RenderingContext
oracle.cabo.ui.RenderingContext
RenderingContext.getCurrentDataObject()
public int getAncestorNodeCount()
getAncestorNodeCount
in interface RenderingContext
oracle.cabo.ui.RenderingContext
RenderingContext.getAncestorNode(int)
,
RenderingContext.getRenderedAncestorNodeCount()
,
RenderingContext.getPath()
public UINode getAncestorNode(int index)
getAncestorNode(0)
will always return the current
node. Returns null if the index is greater than or equal to
the number of ancestors.getAncestorNode
in interface RenderingContext
oracle.cabo.ui.RenderingContext
RenderingContext.getAncestorNodeCount()
,
RenderingContext.getRenderedAncestorNode(int)
,
RenderingContext.getPath()
public Path getPath()
getPath
in interface RenderingContext
oracle.cabo.ui.RenderingContext
RenderingContext.getAncestorNodeCount()
,
RenderingContext.getAncestorNode(int)
public void pushChild(UINode child, java.lang.String childName, int childIndex)
pushChild
in interface RenderingContext
oracle.cabo.ui.RenderingContext
RenderingContext.popChild()
,
RenderingContext.getAncestorNode(int)
,
RenderingContext.getAncestorNodeCount()
,
RenderingContext.getPath()
public void popChild()
popChild
in interface RenderingContext
oracle.cabo.ui.RenderingContext
RenderingContext.pushChild(oracle.cabo.ui.UINode, java.lang.String, int)
,
RenderingContext.getAncestorNode(int)
,
RenderingContext.getAncestorNodeCount()
,
RenderingContext.getPath()
public void pushRenderedChild(UINode child)
RenderingContext
Clients shuld never need to call this method as calls to this method are typically made on their behalf by the composite UINode framework.
pushRenderedChild
in interface RenderingContext
oracle.cabo.ui.RenderingContext
RenderingContext.popRenderedChild()
,
RenderingContext.getRenderedAncestorNode(int)
,
RenderingContext.getRenderedAncestorNodeCount()
public void popRenderedChild()
RenderingContext
Clients shuld never need to call this method as calls to this method are typically made on their behalf by the composite UINode framework.
popRenderedChild
in interface RenderingContext
oracle.cabo.ui.RenderingContext
RenderingContext.pushRenderedChild(oracle.cabo.ui.UINode)
,
RenderingContext.getRenderedAncestorNode(int)
,
RenderingContext.getRenderedAncestorNodeCount()
public void addDataProvider(DataProvider provider)
addDataProvider
in interface RenderingContext
provider
- the DataProvider to add; if null, the method
is a no-oppublic DataObject getDataObject(RenderingContext context, java.lang.String namespaceURI, java.lang.String name)
getDataObject
in interface RenderingContext
public DataObject getDataObject(java.lang.String namespaceURI, java.lang.String name)
getDataObject
in interface RenderingContext
oracle.cabo.ui.RenderingContext
RenderingContext.addDataProvider(oracle.cabo.ui.data.DataProvider)
protected int getDefaultNodeStackSize()
protected int getDefaultDataProviderSize()
protected void reset()
public java.lang.Object clone()
RenderingContext
clone
in interface RenderingContext
clone
in class java.lang.Object
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |