|
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.RenderingContextProxy
Proxy object for 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 | |
RenderingContextProxy()
Creates a RenderingContextProxy. |
|
| Method Summary | |
void |
addDataProvider(DataProvider provider)
Adds a DataProvider. |
abstract java.lang.Object |
clone()
Subclassers need to handle returning a new RenderingContextProxy with the cloned delegated RenderingContext. |
protected RenderingContextProxy |
cloneHelper()
Helper method for implementing clone(). |
Agent |
getAgent()
Returns an Agent object that can be used to identify what device will display the rendering. |
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. |
Configuration |
getConfiguration()
Returns a Configuration object that will be used to locate paths and return global properties. |
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)
Returns the DataObject for the given namespace and name pair. |
DataObject |
getDataObject(java.lang.String namespaceURI,
java.lang.String name)
Returns the DataObject for the given namespace and name pair. |
ErrorLog |
getErrorLog()
Get an interface that can be used to log errors. |
ImageContext |
getImageContext()
Get an interface that can be used for image lookups and rendering. |
LocaleContext |
getLocaleContext()
Returns the LocaleContext that should be used for rendering. |
java.lang.Object |
getLocalProperty(int ancestorIndex,
java.lang.Object key,
java.lang.Object defaultValue)
Retrieves the specifed property from the stack frame of a rendering UINode. |
LookAndFeel |
getLookAndFeel()
Returns the LookAndFeel that should be used when rendering. |
OutputMethod |
getOutputMethod()
Returns the OutputMethod that should be used for rendering text. |
RenderingContext |
getParentContext()
Returns the RenderingContext that this context should delegate calls to pushRenderedChild, popRenderedChild,
and addDataProvider to. |
Path |
getPath()
Returns the path to the current node. |
java.lang.Object |
getProperty(java.lang.String namespace,
java.lang.Object key)
Gets a property stored on the context. |
UINode |
getRenderedAncestorNode(int index)
Returns an ancestor of the node currently being processed. |
int |
getRenderedAncestorNodeCount()
Returns the number of rendered nodes in the path form the current node being rendered to the root of the tree of nodes being rendered. |
RendererManager |
getRendererManager()
Returns the RendererManager that should be used for finding renderers. |
protected abstract RenderingContext |
getRenderingContext()
Returns the RenderingContext being proxied. |
StyleContext |
getStyleContext()
Get an interface that can be used for style lookups and generation. |
URLEncoder |
getURLEncoder()
|
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 renderedChild)
Adds the UINode to actually use to render to the rendered UINode stack. |
DataObject |
setCurrentDataObject(DataObject newDataObject)
Sets the new currentDataObject, returning the current currentDataObject. |
void |
setLocalProperty(java.lang.Object key,
java.lang.Object value)
Sets a property on the stack frame of the currently rendering UINode. |
void |
setProperty(java.lang.String namespace,
java.lang.Object key,
java.lang.Object value)
Stores a property on the context. |
java.lang.String |
transformName(java.lang.String baseName)
Transforms a UINode name to a name suitable for rendering, given the current RenderingContext state. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RenderingContextProxy()
| Method Detail |
public LookAndFeel getLookAndFeel()
getLookAndFeel in interface RenderingContextpublic RendererManager getRendererManager()
getRendererManager in interface RenderingContext
public OutputMethod getOutputMethod()
throws java.io.IOException
getOutputMethod in interface RenderingContextpublic Agent getAgent()
getAgent in interface RenderingContextpublic LocaleContext getLocaleContext()
getLocaleContext in interface RenderingContextpublic int getAncestorNodeCount()
getAncestorNodeCount in interface RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.getAncestorNode(int),
RenderingContext.getRenderedAncestorNodeCount(),
RenderingContext.getPath()public UINode getAncestorNode(int index)
getAncestor(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 int getRenderedAncestorNodeCount()
getRenderedAncestorNodeCount in interface RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.getAncestorNodeCount()public UINode getRenderedAncestorNode(int index)
getRenderedAncestor(0) will always return the current
rendering node. Returns null if the index is greater than or equal to
the number of ancestors.getRenderedAncestorNode in interface RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.getAncestorNode(int)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 renderedChild)
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 RenderingContextoracle.cabo.ui.RenderingContextprovider - the DataProvider to add; if null, the method
is a no-opRenderingContext.getDataObject(java.lang.String, java.lang.String)
public DataObject getDataObject(RenderingContext context,
java.lang.String namespaceURI,
java.lang.String name)
getDataObject in interface RenderingContext
public final DataObject getDataObject(java.lang.String namespaceURI,
java.lang.String name)
getDataObject in interface RenderingContextoracle.cabo.ui.RenderingContextRenderingContext.addDataProvider(oracle.cabo.ui.data.DataProvider)public DataObject getCurrentDataObject()
getCurrentDataObject in interface RenderingContextpublic DataObject setCurrentDataObject(DataObject newDataObject)
setCurrentDataObject in interface RenderingContextgetCurrentDataObject()
public java.lang.Object getProperty(java.lang.String namespace,
java.lang.Object key)
getProperty in interface RenderingContext
public void setProperty(java.lang.String namespace,
java.lang.Object key,
java.lang.Object value)
setProperty in interface RenderingContext
public void setLocalProperty(java.lang.Object key,
java.lang.Object value)
This method is for use by rendering code that needs to save some state while it is rendering.
setLocalProperty in interface RenderingContextkey - Key used to identify this property on the stack frame.value - Value to store. null is an acceptable value.
getLocalProperty(int, java.lang.Object, java.lang.Object)
public java.lang.Object getLocalProperty(int ancestorIndex,
java.lang.Object key,
java.lang.Object defaultValue)
defaultValue is returned.
This method is for use by rendering code that needs to save some state while it is rendering.
getLocalProperty in interface RenderingContextindex - index into the rendered ancestor stack. If 0,
uses the currently rendering nodekey - Key used to identify the property on the stack frame to
retrieve.defaultValue - Value to return if the property doesn't exist
in the stack frame.
setLocalProperty(java.lang.Object, java.lang.Object)public java.lang.String transformName(java.lang.String baseName)
transformName in interface RenderingContextpublic URLEncoder getURLEncoder()
getURLEncoder in interface RenderingContextRenderingContext.getURLEncoder()public Configuration getConfiguration()
getConfiguration in interface RenderingContextpublic ErrorLog getErrorLog()
getErrorLog in interface RenderingContextpublic ImageContext getImageContext()
getImageContext in interface RenderingContextpublic StyleContext getStyleContext()
getStyleContext in interface RenderingContextpublic RenderingContext getParentContext()
RenderingContextpushRenderedChild, popRenderedChild,
and addDataProvider to. The parent context acts to
segregate the logical node structure internal to a composite UINode
from the deceloper's logical UINode structure. By calling
getParentContext.getAncestorNode(0) the composite UINode
gains access to the UINode that the composite UINode is attempting
to render.
Typically, only composite UINode implementors ever need to call this method.
getParentContext in interface RenderingContextpublic abstract java.lang.Object clone()
clone in interface RenderingContextclone in class java.lang.ObjectcloneHelper(),
getRenderingContext()protected final RenderingContextProxy cloneHelper()
clone(). Handles
the grunge of making a shallow copy of the RenderingContextProxy.
clone()protected abstract RenderingContext getRenderingContext()
|
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 | ||||||||