|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidad.context.RenderingContext
org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderingContext
public class CoreRenderingContext
| Field Summary | |
|---|---|
static java.lang.String |
EMPTY_STYLE_CLASS
String marker used to indicate the style class is empty and can be ignored. |
| Constructor Summary | |
|---|---|
CoreRenderingContext()
|
|
| Method Summary | |
|---|---|
void |
clearFormData()
|
org.apache.myfaces.trinidad.context.RequestContext.Accessibility |
getAccessibilityMode()
|
org.apache.myfaces.trinidad.context.AccessibilityProfile |
getAccessibilityProfile()
|
org.apache.myfaces.trinidad.context.Agent |
getAgent()
|
protected java.lang.String |
getDefaultSkinFamily()
Return the default skin family, which is "casablanca" for the core renderkit. |
javax.faces.context.FacesContext |
getFacesContext()
Cached access to FacesContext. |
org.apache.myfaces.trinidad.context.FormData |
getFormData()
This can return null if there is no form data |
org.apache.myfaces.trinidad.skin.Icon |
getIcon(java.lang.String iconName)
|
org.apache.myfaces.trinidad.context.LocaleContext |
getLocaleContext()
|
java.lang.String |
getOutputMode()
|
org.apache.myfaces.trinidad.context.PartialPageContext |
getPartialPageContext()
|
java.util.Map<java.lang.Object,java.lang.Object> |
getProperties()
|
org.apache.myfaces.trinidad.context.RequestContext |
getRequestContext()
Cached access to RequestContext |
org.apache.myfaces.trinidad.skin.Skin |
getRequestMapSkin()
Returns the skin that is requested on the request map if the exact skin exists. |
java.lang.Object |
getRequestMapSkinId(javax.faces.context.FacesContext facesContext)
Look on the requestMap for "org.apache.myfaces.trinidad.skin.id", and return the skin id. |
org.apache.myfaces.trinidad.skin.Skin |
getSkin()
|
java.util.Map<java.lang.String,java.lang.String> |
getSkinResourceKeyMap()
Get the _skinResourceKeyMap Map. |
protected java.lang.String |
getSkinResourceMappedKey(java.lang.String key)
|
java.lang.String |
getStyleClass(java.lang.String styleClass)
|
StyleContext |
getStyleContext()
Get an interface that can be used for style lookups and generation. |
org.apache.myfaces.trinidad.style.Styles |
getStyles()
Return the Styles object that is attached to this RenderingContext. |
static java.lang.String |
getTemporaryDirectory(javax.faces.context.FacesContext fContext)
Get the directory for temporary files. |
TrinidadAgent |
getTrinidadAgent()
Typesafe accessor for the TrinidadAgent APIs. |
boolean |
isAnimationEnabled()
|
boolean |
isDefaultLinkStyleDisabled()
|
boolean |
isLinkDisabled()
|
boolean |
isRequestMapStyleSheetIdAndSkinEqual(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.skin.Skin requestedSkin)
This helps figure out if the portlet producer can share the portlet consumer's stylesheet. |
boolean |
isRightToLeft()
|
void |
setDefaultLinkStyleDisabled(boolean isDisabled)
Called by link containers prior to rendering their children in order to suppress the rendering of the default link style class (.OraLink). |
void |
setFormData(org.apache.myfaces.trinidad.context.FormData formData)
|
void |
setLinkDisabled(boolean isDisabled)
Called by link containers to force a link to render as disabled Important: Each call to setLinkDisabled(true) must be followed by a matching call to setLinkDisabled(false). |
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. |
void |
setStyleMap(java.util.Map<java.lang.String,java.lang.String> mapping)
Store a map that provides abbreviations of styles. |
| Methods inherited from class org.apache.myfaces.trinidad.context.RenderingContext |
|---|
attach, getCurrentClientId, getCurrentInstance, getTranslatedString, release, setCurrentClientId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EMPTY_STYLE_CLASS
| Constructor Detail |
|---|
public CoreRenderingContext()
| Method Detail |
|---|
public final javax.faces.context.FacesContext getFacesContext()
public final org.apache.myfaces.trinidad.context.RequestContext getRequestContext()
public boolean isDefaultLinkStyleDisabled()
public void setDefaultLinkStyleDisabled(boolean isDisabled)
public boolean isLinkDisabled()
public void setLinkDisabled(boolean isDisabled)
public java.util.Map<java.lang.Object,java.lang.Object> getProperties()
getProperties in class org.apache.myfaces.trinidad.context.RenderingContextpublic org.apache.myfaces.trinidad.context.Agent getAgent()
getAgent in class org.apache.myfaces.trinidad.context.RenderingContextpublic TrinidadAgent getTrinidadAgent()
public boolean isRightToLeft()
isRightToLeft in class org.apache.myfaces.trinidad.context.RenderingContextpublic java.lang.String getOutputMode()
getOutputMode in class org.apache.myfaces.trinidad.context.RenderingContextpublic org.apache.myfaces.trinidad.context.RequestContext.Accessibility getAccessibilityMode()
getAccessibilityMode in class org.apache.myfaces.trinidad.context.RenderingContextpublic org.apache.myfaces.trinidad.context.AccessibilityProfile getAccessibilityProfile()
getAccessibilityProfile in class org.apache.myfaces.trinidad.context.RenderingContextpublic boolean isAnimationEnabled()
isAnimationEnabled in class org.apache.myfaces.trinidad.context.RenderingContextpublic org.apache.myfaces.trinidad.context.FormData getFormData()
getFormData in class org.apache.myfaces.trinidad.context.RenderingContextpublic void setFormData(org.apache.myfaces.trinidad.context.FormData formData)
setFormData in class org.apache.myfaces.trinidad.context.RenderingContextpublic void clearFormData()
clearFormData in class org.apache.myfaces.trinidad.context.RenderingContextpublic org.apache.myfaces.trinidad.skin.Skin getSkin()
getSkin in class org.apache.myfaces.trinidad.context.RenderingContextpublic org.apache.myfaces.trinidad.style.Styles getStyles()
getStyles in class org.apache.myfaces.trinidad.context.RenderingContextpublic StyleContext getStyleContext()
public org.apache.myfaces.trinidad.context.LocaleContext getLocaleContext()
getLocaleContext in class org.apache.myfaces.trinidad.context.RenderingContextpublic org.apache.myfaces.trinidad.context.PartialPageContext getPartialPageContext()
getPartialPageContext in class org.apache.myfaces.trinidad.context.RenderingContextpublic java.lang.String getStyleClass(java.lang.String styleClass)
getStyleClass in class org.apache.myfaces.trinidad.context.RenderingContextpublic org.apache.myfaces.trinidad.skin.Icon getIcon(java.lang.String iconName)
getIcon in class org.apache.myfaces.trinidad.context.RenderingContextpublic void setStyleMap(java.util.Map<java.lang.String,java.lang.String> mapping)
public void setSkinResourceKeyMap(java.util.Map<java.lang.String,java.lang.String> mapping)
setSkinResourceKeyMap in class org.apache.myfaces.trinidad.context.RenderingContextpublic java.util.Map<java.lang.String,java.lang.String> getSkinResourceKeyMap()
getSkinResourceKeyMap in class org.apache.myfaces.trinidad.context.RenderingContextprotected java.lang.String getSkinResourceMappedKey(java.lang.String key)
protected java.lang.String getDefaultSkinFamily()
public org.apache.myfaces.trinidad.skin.Skin getRequestMapSkin()
If we are in a portlet, then we might need to recalculate the skin. The portal container might have its own skin that it wants us (the producer) to use instead of what we picked based on the skin-family and render-kit-id. If it does, it will send the skin-id and the skin's styleSheetDocument id in the request map.
If we have the skin with that id and the stylesheetdocument's id match, then we return that skin (but we won't compress the style classes so they won't clash with the consumer's style classes which should be compressed). If we have the skin but the stylesheetdocument ids do not match, we still return that skin; else we return null, indicating that there is no requestMap skin that exists.
public java.lang.Object getRequestMapSkinId(javax.faces.context.FacesContext facesContext)
facesContext -
public boolean isRequestMapStyleSheetIdAndSkinEqual(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.skin.Skin requestedSkin)
context - requestedSkin - The skin that the portlet consumer wants the producer to share.
public static java.lang.String getTemporaryDirectory(javax.faces.context.FacesContext fContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||