|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.ui.LogicalNodeRenderingContext
@Deprecated public abstract class 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.
| Field Summary |
|---|
| Fields inherited from interface org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext |
|---|
CONTEXT_PATH_PROPERTY, CONTEXT_URI_PROPERTY |
| Constructor Summary | |
|---|---|
LogicalNodeRenderingContext()
Deprecated. Creates a AbstractRenderingContext. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Deprecated. Returns a clone of the RenderingContext. |
UINode |
getAncestorNode(int index)
Deprecated. Returns an ancestor of the node currently being processed. |
int |
getAncestorNodeCount()
Deprecated. Returns the number of nodes in the path form the current node to the root of the tree of nodes being rendered. |
DataObject |
getCurrentDataObject()
Deprecated. Returns a DataObject for the current node (such as a row of a table). |
DataObject |
getDataObject(java.lang.String namespaceURI,
java.lang.String name)
Deprecated. Returns the DataObject for the given namespace and name pair. |
DataObject |
getDataObject(UIXRenderingContext context,
java.lang.String namespaceURI,
java.lang.String name)
Deprecated. Internal version of getDataObject(). |
protected int |
getDefaultNodeStackSize()
Deprecated. Returns the default initial number of nodes in the stack of nodes. |
javax.faces.context.FacesContext |
getFacesContext()
Deprecated. |
Path |
getPath()
Deprecated. Returns the path to the current node. |
protected java.lang.String |
getSkinResourceMappedKey(java.lang.String key)
Deprecated. Given a key, look in the skin resource key map for the mapped value. |
void |
popChild()
Deprecated. Removes a UINode from the stack. |
void |
popRenderedChild(UIXRenderingContext currentContext)
Deprecated. Removes the UINode to actually use to render from the rendered UINode stack. |
void |
pushChild(UINode child,
java.lang.String childName,
int childIndex)
Deprecated. Adds the UINode about to be rendered to the rendering stack. |
void |
pushRenderedChild(UIXRenderingContext currentContext,
UINode child)
Deprecated. Adds the UINode to actually use to render to the rendered UINode stack. |
protected void |
reset()
Deprecated. Reset the state of the RenderingContext for reuse, even in case where RenderingContext did not complete cleanly. |
DataObject |
setCurrentDataObject(DataObject newDataObject)
Deprecated. 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 org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext |
|---|
getAgent, getConfiguration, getFormEncoder, getIcon, getImageContext, getLocaleContext, getLocalProperty, getLookAndFeel, getParentContext, getPartialPageContext, getProperty, getRenderedAncestorNode, getRenderedAncestorNodeCount, getRendererManager, getResponseWriter, getSkin, getSkinResourceKeyMap, getStyleClass, getStyleContext, getTranslatedString, getTranslatedValue, getURLEncoder, getVariableResolver, setLocalProperty, setProperty, setResponseWriter, setSkinResourceKeyMap |
| Constructor Detail |
|---|
public LogicalNodeRenderingContext()
| Method Detail |
|---|
public javax.faces.context.FacesContext getFacesContext()
getFacesContext in interface UIXRenderingContextpublic DataObject getCurrentDataObject()
getCurrentDataObject in interface UIXRenderingContextpublic DataObject setCurrentDataObject(DataObject newDataObject)
UIXRenderingContext
setCurrentDataObject in interface UIXRenderingContextUIXRenderingContext.getCurrentDataObject()public int getAncestorNodeCount()
getAncestorNodeCount in interface UIXRenderingContextUIXRenderingContext.getAncestorNode(int),
UIXRenderingContext.getRenderedAncestorNodeCount(),
UIXRenderingContext.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 UIXRenderingContextUIXRenderingContext.getAncestorNodeCount(),
UIXRenderingContext.getRenderedAncestorNode(int),
UIXRenderingContext.getPath()public Path getPath()
getPath in interface UIXRenderingContextUIXRenderingContext.getAncestorNodeCount(),
UIXRenderingContext.getAncestorNode(int)
public void pushChild(UINode child,
java.lang.String childName,
int childIndex)
pushChild in interface UIXRenderingContextUIXRenderingContext.popChild(),
UIXRenderingContext.getAncestorNode(int),
UIXRenderingContext.getAncestorNodeCount(),
UIXRenderingContext.getPath()public void popChild()
popChild in interface UIXRenderingContextUIXRenderingContext.pushChild(org.apache.myfaces.trinidadinternal.ui.UINode, java.lang.String, int),
UIXRenderingContext.getAncestorNode(int),
UIXRenderingContext.getAncestorNodeCount(),
UIXRenderingContext.getPath()
public void pushRenderedChild(UIXRenderingContext currentContext,
UINode child)
UIXRenderingContextClients 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 UIXRenderingContextcurrentContext - The RenderingContext that is used when rendering
the specified child node.child - The UINode that is being rendered.UIXRenderingContext.popRenderedChild(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext),
UIXRenderingContext.getRenderedAncestorNode(int),
UIXRenderingContext.getRenderedAncestorNodeCount()public void popRenderedChild(UIXRenderingContext currentContext)
UIXRenderingContextClients 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 UIXRenderingContextcurrentContext - The current RenderingContext. That is, the
context that was used to render the UINode
that is being popped from the rendered child
stack.UIXRenderingContext.pushRenderedChild(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode),
UIXRenderingContext.getRenderedAncestorNode(int),
UIXRenderingContext.getRenderedAncestorNodeCount()
public DataObject getDataObject(UIXRenderingContext context,
java.lang.String namespaceURI,
java.lang.String name)
getDataObject in interface UIXRenderingContext
public DataObject getDataObject(java.lang.String namespaceURI,
java.lang.String name)
getDataObject in interface UIXRenderingContext#addDataProviderprotected int getDefaultNodeStackSize()
protected java.lang.String getSkinResourceMappedKey(java.lang.String key)
key -
protected void reset()
public java.lang.Object clone()
UIXRenderingContext
clone in interface UIXRenderingContextclone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||