|
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 RenderingContextpublic DataObject setCurrentDataObject(DataObject newDataObject)
RenderingContextsetCurrentDataObject in interface RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.getCurrentDataObject()public int getAncestorNodeCount()
getAncestorNodeCount in interface RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.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 RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.getAncestorNodeCount(),
RenderingContext.getRenderedAncestorNode(int),
RenderingContext.getPath()public Path getPath()
getPath in interface RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.getAncestorNodeCount(),
RenderingContext.getAncestorNode(int)
public void pushChild(UINode child,
java.lang.String childName,
int childIndex)
pushChild in interface RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.popChild(),
RenderingContext.getAncestorNode(int),
RenderingContext.getAncestorNodeCount(),
RenderingContext.getPath()public void popChild()
popChild in interface RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.pushChild(oracle.cabo.ui.UINode, java.lang.String, int),
RenderingContext.getAncestorNode(int),
RenderingContext.getAncestorNodeCount(),
RenderingContext.getPath()public void pushRenderedChild(UINode child)
RenderingContextClients 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 RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.popRenderedChild(),
RenderingContext.getRenderedAncestorNode(int),
RenderingContext.getRenderedAncestorNodeCount()public void popRenderedChild()
RenderingContextClients 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 RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.pushRenderedChild(oracle.cabo.ui.UINode),
RenderingContext.getRenderedAncestorNode(int),
RenderingContext.getRenderedAncestorNodeCount()public void addDataProvider(DataProvider provider)
addDataProvider in interface RenderingContextprovider - the DataProvider to add; if null, the method
is a no-op
public 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 RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.addDataProvider(oracle.cabo.ui.data.DataProvider)protected int getDefaultNodeStackSize()
protected int getDefaultDataProviderSize()
protected void reset()
public java.lang.Object clone()
RenderingContextclone in interface RenderingContextclone 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 | ||||||||