|
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 | +--oracle.cabo.ui.RenderedNodeRenderingContext | +--oracle.cabo.ui.RootRenderingContext
Default implementation of RenderingContext used as the root for rendering
a tree of UINodes. Developers that need to render UINode content
outside of a Servlet or JSP should use this class, but all others
should use its subclass,
ServletRenderingContext
.
Fields inherited from interface oracle.cabo.ui.RenderingContext |
CONTEXT_PATH_PROPERTY, CONTEXT_URI_PROPERTY, SHARED_CONTEXT_PATH_PROPERTY, SHARED_CONTEXT_URI_PROPERTY |
Constructor Summary | |
RootRenderingContext()
Creates a RootRenderingContext using the default RendererManager instance. |
|
RootRenderingContext(OutputMethod method)
Deprecated. Use the no-argument constructor, and call prepareOutput(java.io.PrintWriter, java.io.OutputStream, java.lang.String, java.lang.String) |
|
RootRenderingContext(OutputMethod method,
RendererManager manager)
Deprecated. Use the no-argument constructor, and call prepareOutput(java.io.PrintWriter, java.io.OutputStream, java.lang.String, java.lang.String) |
Method Summary | |
java.lang.Object |
clone()
Returns a clone of the RenderingContext. |
protected ErrorLog |
createErrorLog()
Responsible for creating an error log for the rendering context. |
protected OutputMethod |
createOutputMethod()
Responsible for creating an output method. |
protected OutputMethod |
createOutputMethod(java.io.PrintWriter outWriter,
java.io.OutputStream stream,
java.lang.String contentType,
java.lang.String encoding)
Responsible for creating an output method. |
Agent |
getAgent()
Returns an Agent object that can be used to identify what device will display the rendering. |
protected Agent |
getBaseAgent()
Returns the "base agent", which has not yet been affected by the choice of a rendering facet. |
Configuration |
getConfiguration()
Returns a Configuration object that will be used to locate paths and return global properties. |
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. |
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 logical nodes. |
protected int |
getDefaultPropertyMapSize()
Returns the default size of the PropertyMap used to store properties on the RenderingContext. |
ErrorLog |
getErrorLog()
Get an interface that can be used to log errors. |
java.lang.String |
getFacet()
Returns the rendering facet in use. |
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. |
LookAndFeel |
getLookAndFeel()
Returns the LookAndFeel to use for this render. |
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. |
java.lang.Object |
getProperty(java.lang.String namespace,
java.lang.Object key)
Gets a property stored on the context. |
RendererManager |
getRendererManager()
Returns the RendererManager that should be used for finding renderers. |
StyleContext |
getStyleContext()
Get an interface that can be used for style lookups and generation. |
URLEncoder |
getURLEncoder()
This implementation returns an encoder that does no special encoding, and returns an empty string as the default URL. |
void |
prepareOutput(java.io.PrintWriter outWriter,
java.io.OutputStream stream,
java.lang.String contentType,
java.lang.String encoding)
Prepares the output of the rendering context. |
void |
resetProperties()
Clears all properties from the context. |
void |
setConfiguration(Configuration config)
Sets the configuration for use with this rendering pass. |
void |
setConfiguration(java.lang.String configName)
Sets a configuration by name, for use with this rendering pass. |
void |
setDataObject(java.lang.String namespaceURI,
java.lang.String name,
DataObject dataObject)
Stores a data object on the context. |
void |
setDataObjectDictionary(java.lang.String namespaceURI,
java.util.Dictionary dataObjectDict)
Registers a dictionary for use in retrieving and storing data objects for a single namespace. |
void |
setErrorLog(ErrorLog log)
Get an interface that can be used to log errors. |
void |
setFacet(java.lang.String facet)
Sets the facet of the current look-and-feel. |
void |
setURLEncoder(URLEncoder urlEncoder)
This implementation returns an encoder that does no special encoding, and returns an empty string as the default URL. |
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 oracle.cabo.ui.RenderedNodeRenderingContext |
getLocalProperty, getRenderedAncestorNode, getRenderedAncestorNodeCount, popRenderedChild, pushRenderedChild, reset, setLocalProperty, setProperty |
Methods inherited from class oracle.cabo.ui.LogicalNodeRenderingContext |
addDataProvider, getAncestorNode, getAncestorNodeCount, getCurrentDataObject, getPath, popChild, pushChild, setCurrentDataObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.cabo.style.StyleContext |
setProperty |
Methods inherited from interface oracle.cabo.image.ImageContext |
setProperty |
Constructor Detail |
public RootRenderingContext()
public RootRenderingContext(OutputMethod method)
prepareOutput(java.io.PrintWriter, java.io.OutputStream, java.lang.String, java.lang.String)
public RootRenderingContext(OutputMethod method, RendererManager manager)
prepareOutput(java.io.PrintWriter, java.io.OutputStream, java.lang.String, java.lang.String)
Method Detail |
public void setConfiguration(java.lang.String configName)
public void setConfiguration(Configuration config)
public LookAndFeel getLookAndFeel()
public java.lang.String getFacet()
public void setFacet(java.lang.String facet)
public void prepareOutput(java.io.PrintWriter outWriter, java.io.OutputStream stream, java.lang.String contentType, java.lang.String encoding) throws java.io.IOException
outWriter
- a PrintWriterstream
- an OutputStream, if binary output is used. This is not
currently supported, and must be null.contentType
- the MIME type of the page. eg: "text/html"encoding
- the character encoding of the output. "null" is a legal
value if the encoding is unknown, but it is strongly encouraged
to pass the correct value. eg: "UTF-8"public RendererManager getRendererManager()
public LocaleContext getLocaleContext()
getLocaleContext
in interface StyleContext
public OutputMethod getOutputMethod() throws java.io.IOException
public Agent getAgent()
getAgent
in interface StyleContext
protected Agent getBaseAgent()
public void setDataObject(java.lang.String namespaceURI, java.lang.String name, DataObject dataObject)
namespaceURI
- the namespace of the data objectname
- the namespace of the data objectdataObject
- the data objectpublic void setDataObjectDictionary(java.lang.String namespaceURI, java.util.Dictionary dataObjectDict)
namespaceURI
- the namespace of the data objectdataObjectDict
- a Dictionary of data objectspublic final DataObject getDataObject(java.lang.String namespaceURI, java.lang.String name)
getDataObject
in class LogicalNodeRenderingContext
oracle.cabo.ui.RenderingContext
RenderingContext.addDataProvider(oracle.cabo.ui.data.DataProvider)
public DataObject getDataObject(RenderingContext context, java.lang.String namespaceURI, java.lang.String name)
getDataObject
in class LogicalNodeRenderingContext
public java.lang.Object getProperty(java.lang.String namespace, java.lang.Object key)
getProperty
in interface StyleContext
getProperty
in class RenderedNodeRenderingContext
public java.lang.String transformName(java.lang.String baseName)
public URLEncoder getURLEncoder()
RenderingContext.getURLEncoder()
public void setURLEncoder(URLEncoder urlEncoder)
RenderingContext.getURLEncoder()
public Configuration getConfiguration()
getConfiguration
in interface StyleContext
public ErrorLog getErrorLog()
getErrorLog
in interface StyleContext
public void setErrorLog(ErrorLog log)
public ImageContext getImageContext()
public StyleContext getStyleContext()
getStyleContext
in interface ImageContext
public final RenderingContext getParentContext()
RenderingContext
pushRenderedChild
, 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.
public void resetProperties()
resetProperties
in class RenderedNodeRenderingContext
public java.lang.Object clone()
RenderingContext
clone
in class RenderedNodeRenderingContext
protected ErrorLog createErrorLog()
System.err
.protected OutputMethod createOutputMethod()
prepareOutput(PrintWriter,OutputStream,String,String)
protected OutputMethod createOutputMethod(java.io.PrintWriter outWriter, java.io.OutputStream stream, java.lang.String contentType, java.lang.String encoding) throws java.io.IOException
LookAndFeel.getOutputMethod(java.io.PrintWriter, java.io.OutputStream, java.lang.String, java.lang.String, oracle.cabo.share.error.ErrorLog)
.
Users usually do not need to overwrite this method; instead they should
call prepareOutput(PrintWriter,OutputStream,String,String)
protected int getDefaultNodeStackSize()
getDefaultNodeStackSize
in class RenderedNodeRenderingContext
protected int getDefaultDataProviderSize()
LogicalNodeRenderingContext
getDefaultDataProviderSize
in class LogicalNodeRenderingContext
protected int getDefaultPropertyMapSize()
RenderedNodeRenderingContext
The default for this property is relatively small.
getDefaultPropertyMapSize
in class RenderedNodeRenderingContext
|
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 |