org.apache.myfaces.trinidadinternal.uinode
Class FacesRenderingContext

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.ui.LogicalNodeRenderingContext
      extended by org.apache.myfaces.trinidadinternal.ui.RenderedNodeRenderingContext
          extended by org.apache.myfaces.trinidadinternal.ui.RootRenderingContext
              extended by org.apache.myfaces.trinidadinternal.uinode.FacesRenderingContext
All Implemented Interfaces:
java.lang.Cloneable, ImageContext, UIXRenderingContext

public class FacesRenderingContext
extends RootRenderingContext

RenderingContext implementation that supports JSF.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/uinode/FacesRenderingContext.java#0 $) $Date: 10-nov-2005.18:49:15 $
Author:
The Oracle ADF Faces Team

Field Summary
 
Fields inherited from interface org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext
CONTEXT_PATH_PROPERTY, CONTEXT_URI_PROPERTY
 
Method Summary
static FacesRenderingContext createRenderingContext(javax.faces.context.FacesContext fContext)
           
 TrinidadAgent getAgent()
          Returns the end user's Agent.
 org.apache.myfaces.trinidad.context.LocaleContext getLocaleContext()
          Returns the LocaleContext that should be used for rendering.
 org.apache.myfaces.trinidad.context.PartialPageContext getPartialPageContext()
           
static org.apache.myfaces.trinidad.context.PartialPageContext getPartialPageContext(javax.faces.context.FacesContext fContext)
          Gets the current PartialPageContext.
static UIXRenderingContext getRenderingContext(javax.faces.context.FacesContext fContext, javax.faces.component.UIComponent component)
          Gets the current RenderingContext.
static UIXRenderingContext getRenderingContext(javax.faces.context.FacesContext fContext, javax.faces.component.UIComponent component, boolean createIfNull)
          Gets the current RenderingContext.
protected  java.lang.Object getRenderingProperty(java.lang.Object key)
           
 org.apache.myfaces.trinidad.skin.Skin getSkin()
          Returns the Skin to use for this render.
 java.util.Map<java.lang.String,java.lang.String> getSkinResourceKeyMap()
          Get the _skinResourceKeyMap Map.
 StyleContext getStyleContext()
          Get an interface that can be used for style lookups and generation.
protected  void setRenderingProperty(java.lang.Object key, java.lang.Object value)
           
 void setSkinResourceKeyMap(java.util.Map<java.lang.String,java.lang.String> mapping)
          Store a Map that maps a skin's resource keys from one key to another.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.RootRenderingContext
clone, createVariableResolver, getConfiguration, getDataObject, getDataObject, getDefaultNodeStackSize, getDefaultPropertyMapSize, getFacesContext, getFacet, getFormEncoder, getIcon, getImageContext, getLookAndFeel, getParentContext, getProperty, getRendererManager, getResponseWriter, getStyleClass, getTranslatedString, getTranslatedValue, getURLEncoder, getVariableResolver, init, setConfiguration, setDataObject, setDataObjectMap, setFacet, setFormEncoder, setResponseWriter, setURLEncoder
 
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.RenderedNodeRenderingContext
getLocalProperty, getRenderedAncestorNode, getRenderedAncestorNodeCount, popRenderedChild, pushRenderedChild, reset, resetProperties, setLocalProperty, setProperty
 
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.LogicalNodeRenderingContext
getAncestorNode, getAncestorNodeCount, getCurrentDataObject, getPath, getSkinResourceMappedKey, popChild, pushChild, setCurrentDataObject
 
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.image.ImageContext
setProperty
 

Method Detail

getRenderingContext

public static UIXRenderingContext getRenderingContext(javax.faces.context.FacesContext fContext,
                                                      javax.faces.component.UIComponent component)
                                               throws java.io.IOException
Gets the current RenderingContext.

Throws:
java.io.IOException

getRenderingContext

public static UIXRenderingContext getRenderingContext(javax.faces.context.FacesContext fContext,
                                                      javax.faces.component.UIComponent component,
                                                      boolean createIfNull)
                                               throws java.io.IOException
Gets the current RenderingContext.

Throws:
java.io.IOException

createRenderingContext

public static FacesRenderingContext createRenderingContext(javax.faces.context.FacesContext fContext)
                                                    throws java.io.IOException
Throws:
java.io.IOException

getPartialPageContext

public static org.apache.myfaces.trinidad.context.PartialPageContext getPartialPageContext(javax.faces.context.FacesContext fContext)
Gets the current PartialPageContext.


getPartialPageContext

public org.apache.myfaces.trinidad.context.PartialPageContext getPartialPageContext()

getLocaleContext

public org.apache.myfaces.trinidad.context.LocaleContext getLocaleContext()
Description copied from class: RootRenderingContext
Returns the LocaleContext that should be used for rendering. The LocaleContext is the owner of all LocaleSpecific information about the Locale.

Specified by:
getLocaleContext in interface ImageContext
Specified by:
getLocaleContext in interface UIXRenderingContext
Specified by:
getLocaleContext in class RootRenderingContext

getStyleContext

public StyleContext getStyleContext()
Get an interface that can be used for style lookups and generation.


getSkin

public org.apache.myfaces.trinidad.skin.Skin getSkin()
Returns the Skin to use for this render.


getAgent

public TrinidadAgent getAgent()
Description copied from interface: ImageContext
Returns the end user's Agent.


getRenderingProperty

protected java.lang.Object getRenderingProperty(java.lang.Object key)
Specified by:
getRenderingProperty in class RenderedNodeRenderingContext

setRenderingProperty

protected void setRenderingProperty(java.lang.Object key,
                                    java.lang.Object value)
Specified by:
setRenderingProperty in class RenderedNodeRenderingContext

setSkinResourceKeyMap

public void setSkinResourceKeyMap(java.util.Map<java.lang.String,java.lang.String> mapping)
Store a Map that maps a skin's resource keys from one key to another. For example, if the renderer uses a new HideShowBean, it will need to map the HideShowBean's keys to its keys. It can store the map here, so that context.getTranslatedValue(key) can use this map to get the correct translated value key.

Parameters:
mapping -

getSkinResourceKeyMap

public java.util.Map<java.lang.String,java.lang.String> getSkinResourceKeyMap()
Get the _skinResourceKeyMap Map.

Parameters:
mapping -


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.