|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.ui.BaseRenderer
org.apache.myfaces.trinidadinternal.ui.ElementRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.BaseLafRenderer
public class BaseLafRenderer
Base Rendering class
Field Summary |
---|
Fields inherited from class org.apache.myfaces.trinidadinternal.ui.BaseRenderer |
---|
NO_CHILD_INDEX |
Fields inherited from interface org.apache.myfaces.trinidadinternal.ui.laf.base.BaseLafConstants |
---|
NBSP_CHAR, NBSP_STRING, NOT_FOUND, ONE, TWO, URI_DELIMITER, ZERO |
Constructor Summary | |
---|---|
BaseLafRenderer()
|
Method Summary | |
---|---|
protected static java.lang.String |
appendURLArgument(java.lang.String baseURL,
java.lang.String key,
java.lang.String value)
|
protected static java.lang.String |
appendURLArguments(java.lang.StringBuffer buffer,
java.lang.String baseURL,
java.lang.String[] keysAndValues)
|
protected static java.lang.String |
appendURLArguments(java.lang.String baseURL,
java.lang.String[] keysAndValues)
|
protected java.lang.String |
encodeActionURL(UIXRenderingContext context,
java.lang.Object value)
|
protected java.lang.String |
encodeResourceURL(UIXRenderingContext context,
java.lang.Object value)
|
protected java.lang.String |
formatString(UIXRenderingContext context,
java.lang.String pattern,
java.lang.String[] parameters)
Format a string with the specified pattern and parameters, caching the FastMessageFormat on the RenderingContext. |
static java.lang.String |
getAbsoluteImageURI(UIXRenderingContext context,
java.lang.String uri)
|
protected static java.lang.Object |
getAgentCapability(UIXRenderingContext context,
CapabilityKey key)
Returns the Agent capability specified by the key |
protected static AttributeKey |
getAttributeKey(java.lang.String attrKeyName)
Convenience method to make it easy for subclasses to create AttributeKeys |
protected static java.lang.Object |
getAttributeValue(UIXRenderingContext context,
UINode node,
AttributeKey attributeKey,
java.lang.Object defaultValue)
Returns the value of an attribute for this node, using the default value, if no value exists for the attribute on this node. |
static java.lang.String |
getBaseImageURI(UIXRenderingContext context)
|
protected static java.lang.Boolean |
getBoolean(boolean flag)
|
protected static boolean |
getBooleanAgentCapability(UIXRenderingContext context,
CapabilityKey key)
Returns true iff the specified agent capability is true |
protected static boolean |
getBooleanAttributeValue(UIXRenderingContext context,
UINode node,
AttributeKey attributeKey,
boolean defaultValue)
|
protected static boolean |
getBooleanAttributeValue(UIXRenderingContext context,
UINode node,
AttributeKey attributeKey,
java.lang.Boolean defaultValue)
|
protected static DataObject |
getDataObjectAttributeValue(UIXRenderingContext context,
UINode node,
AttributeKey attributeKey)
|
protected static DataObjectList |
getDataObjectListAttributeValue(UIXRenderingContext context,
UINode node,
AttributeKey attributeKey)
|
static LafIconProvider |
getIconProvider(LookAndFeel laf)
|
static java.lang.String |
getIconURI(UIXRenderingContext context,
IconKey iconKey)
|
protected java.lang.Object |
getID(UIXRenderingContext context,
UINode node)
|
protected static int |
getIntAttributeValue(UIXRenderingContext context,
UINode node,
AttributeKey attributeKey,
int defaultValue)
|
protected static java.lang.Integer |
getInteger(int i)
|
protected UINode |
getNamedChild(UIXRenderingContext context,
UINode node,
java.lang.String name)
|
protected java.lang.Object |
getNodeName(UIXRenderingContext context,
UINode node)
Get the name for a node. |
static java.lang.String |
getParentFormName(UIXRenderingContext context)
|
protected static java.lang.Object |
getRenderingProperty(UIXRenderingContext context,
java.lang.Object key)
Gets a property stored on the context, using the BLAF namespace. |
protected static int |
getRenderingProperty(UIXRenderingContext context,
java.lang.Object key,
int defaultValue)
|
protected static java.lang.Object |
getRenderingProperty(UIXRenderingContext context,
java.lang.Object key,
java.lang.Object defaultValue)
Gets a property stored on the context, using the Marlin namespace. |
protected java.lang.Object |
getShortDesc(UIXRenderingContext context,
UINode node)
|
protected java.lang.Object |
getTransformedName(UIXRenderingContext context,
UINode node)
Returns the name of the node, transformed for the given context |
static java.lang.String |
getTranslatedString(UIXRenderingContext context,
java.lang.String key)
Returns a translated String from the skin's resource bundle. |
static java.lang.Object |
getTranslatedValue(UIXRenderingContext context,
java.lang.String key)
Returns a translated value from the skin's resource bundle. |
static javax.faces.component.UIComponent |
getUIComponent(UIXRenderingContext context,
UINode node)
Returns UIComponent for a given UINode. |
protected boolean |
hasNamedChild(UIXRenderingContext context,
UINode node,
java.lang.String name)
|
protected boolean |
hasRenderedNamedChild(UIXRenderingContext context,
UINode node,
java.lang.String name)
|
protected boolean |
isDisabled(UIXRenderingContext context,
UINode node)
|
static boolean |
isEqualMarlinName(UINode node,
java.lang.String localName)
Returns true if the specified node has the same Marlin name as the name passed in. |
static boolean |
isInaccessibleMode(UIXRenderingContext context)
|
protected static boolean |
isRightToLeft(UIXRenderingContext context)
|
static boolean |
isScreenReaderMode(UIXRenderingContext context)
|
protected static boolean |
isSelected(UIXRenderingContext context,
UINode node)
Returns true if this node is selected. |
protected static void |
popRenderingProperty(UIXRenderingContext context,
java.lang.Object key)
Pops a previously pushed local value back into the rendering context property, setting the local property value back to null. |
protected static void |
popRenderingProperty(UIXRenderingContext context,
java.lang.Object key,
java.lang.Object localKey)
Pops a previously pushed local value back into the rendering context property, setting the local property value back to null. |
protected static void |
pushAttributeAsRenderingProperty(UIXRenderingContext context,
UINode node,
AttributeKey attrKey)
Pushes the attribute value into the rendering context property, storing the old value as a local property to be restored later. |
protected static void |
pushRenderingProperty(UIXRenderingContext context,
java.lang.Object key,
java.lang.Object value)
Pushes a new value into the rendering context property, storing the old value as a local property to be restored later. |
protected static void |
pushRenderingProperty(UIXRenderingContext context,
java.lang.Object key,
java.lang.Object localKey,
java.lang.Object value)
Pushes a new value into the rendering context property, storing the old value as a local property to be restored later. |
protected void |
renderEncodedActionURI(UIXRenderingContext context,
java.lang.String name,
java.lang.Object value)
|
protected void |
renderEncodedResourceURI(UIXRenderingContext context,
java.lang.String name,
java.lang.Object value)
|
protected void |
renderID(UIXRenderingContext context,
java.lang.Object idObject,
boolean isSubID)
Renders the id of the UINode |
protected void |
renderID(UIXRenderingContext context,
UINode node)
Renders the id of the UINode |
protected void |
renderText(UIXRenderingContext context,
UINode node)
Render the text stored as a text attribute. |
protected void |
renderURIAttribute(UIXRenderingContext context,
java.lang.String name,
java.lang.Object value)
|
protected void |
renderURIID(UIXRenderingContext context,
java.lang.Object idObject)
|
protected static void |
setRenderingProperty(UIXRenderingContext context,
java.lang.Object key,
java.lang.Object value)
Stores a property on the context, using the BLAF namespace. |
static boolean |
supportsAccessKeys(UIXRenderingContext context)
Returns true if the agent supports access keys |
static boolean |
supportsAdvancedForms(UIXRenderingContext context)
Returns true if the agent supports the (advanced) forms module See section 5.5.2 of xhtml modularization. |
static boolean |
supportsAdvancedTables(UIXRenderingContext context)
Returns true if the agent supports the (advanced) tables module See section 5.6.2 of xhtml modularization. |
static boolean |
supportsAutoCompleteFormElements(UIXRenderingContext context)
|
static boolean |
supportsClassAttribute(UIXRenderingContext context)
Returns true if the CSS class attribute is supported. |
static boolean |
supportsDisabledFormElements(UIXRenderingContext context)
Returns true if the agent supports rendering disabled form elements |
static boolean |
supportsEditing(UIXRenderingContext context)
Returns true if editing is supported. |
static boolean |
supportsFieldSetElement(UIXRenderingContext context)
Returns true if the browser supports rendering of fieldset element. |
static boolean |
supportsFrames(UIXRenderingContext context)
Returns true if the agent supports the Frames module See section 5.11 of xhtml modularization. |
static boolean |
supportsFullDOM(UIXRenderingContext context)
Returns true if the agent supports a full dom |
static boolean |
supportsID(UIXRenderingContext context)
Returns true if the agent supports the id attribute |
static boolean |
supportsIframes(UIXRenderingContext context)
Returns true if the agent supports the Iframes module See section 5.13 of xhtml modularization. |
static boolean |
supportsIntrinsicEvents(UIXRenderingContext context)
Returns true if the event attributes should be rendered for this node. |
static boolean |
supportsMultipleCssSelectors(UIXRenderingContext context)
Returns true if the value of the CSS class attribute can take a space separated list of style selectors |
static boolean |
supportsMultipleWindows(UIXRenderingContext context)
Returns true if the agent supports opening multiple windows |
static boolean |
supportsNameIdentification(UIXRenderingContext context)
Returns true if the agent supports the Name identification module. |
static boolean |
supportsNavigation(UIXRenderingContext context)
Returns true if navigation is supported. |
static boolean |
supportsReadOnlyFormElements(UIXRenderingContext context)
Returns true if the agent supports rendering readonly form elements |
static boolean |
supportsScripting(UIXRenderingContext context)
Returns true if the agent supports the Script module. |
static boolean |
supportsStyleAttributes(UIXRenderingContext context)
Returns true if the style attributes should be rendered for this node. |
static boolean |
supportsTarget(UIXRenderingContext context)
Returns true if the agent supports setting the target attribute of other elements. |
static boolean |
supportsTextPresentation(UIXRenderingContext context)
Returns true if the agent supports the text presentation module. |
static boolean |
supportsXMLDOM(UIXRenderingContext context)
Returns true if the agent supports the xmldom |
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.ElementRenderer |
---|
getElementName, getRenderer, postrender, prerender, renderAttribute, renderAttribute, renderAttribute, renderAttribute, renderAttributes |
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.BaseRenderer |
---|
getNextRenderedChildIndex, getNextRenderedChildNode, getVisibleIndexedChildCount, render, renderBetweenIndexedChildren, renderBetweenIndexedChildren, renderChild, renderContent, renderIndexedChild, renderIndexedChild, renderNamedChild, renderNamedChild, skipChild, skipNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseLafRenderer()
Method Detail |
---|
protected java.lang.Object getShortDesc(UIXRenderingContext context, UINode node)
protected java.lang.Object getID(UIXRenderingContext context, UINode node)
protected boolean isDisabled(UIXRenderingContext context, UINode node)
protected void renderURIAttribute(UIXRenderingContext context, java.lang.String name, java.lang.Object value) throws java.io.IOException
java.io.IOException
protected void renderURIID(UIXRenderingContext context, java.lang.Object idObject) throws java.io.IOException
java.io.IOException
protected void renderID(UIXRenderingContext context, UINode node) throws java.io.IOException
java.io.IOException
protected final void renderID(UIXRenderingContext context, java.lang.Object idObject, boolean isSubID) throws java.io.IOException
java.io.IOException
protected java.lang.Object getNodeName(UIXRenderingContext context, UINode node)
protected java.lang.Object getTransformedName(UIXRenderingContext context, UINode node)
protected UINode getNamedChild(UIXRenderingContext context, UINode node, java.lang.String name)
protected boolean hasNamedChild(UIXRenderingContext context, UINode node, java.lang.String name)
protected boolean hasRenderedNamedChild(UIXRenderingContext context, UINode node, java.lang.String name)
protected static java.lang.Object getRenderingProperty(UIXRenderingContext context, java.lang.Object key)
protected static java.lang.Object getRenderingProperty(UIXRenderingContext context, java.lang.Object key, java.lang.Object defaultValue)
protected static int getRenderingProperty(UIXRenderingContext context, java.lang.Object key, int defaultValue)
protected static void setRenderingProperty(UIXRenderingContext context, java.lang.Object key, java.lang.Object value)
public static javax.faces.component.UIComponent getUIComponent(UIXRenderingContext context, UINode node)
protected static void pushAttributeAsRenderingProperty(UIXRenderingContext context, UINode node, AttributeKey attrKey)
pushRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object, java.lang.Object)
,
popRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object)
protected static void pushRenderingProperty(UIXRenderingContext context, java.lang.Object key, java.lang.Object value)
popRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object)
protected static void pushRenderingProperty(UIXRenderingContext context, java.lang.Object key, java.lang.Object localKey, java.lang.Object value)
popRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object)
protected static void popRenderingProperty(UIXRenderingContext context, java.lang.Object key)
pushRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object, java.lang.Object)
protected static void popRenderingProperty(UIXRenderingContext context, java.lang.Object key, java.lang.Object localKey)
pushRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object, java.lang.Object)
public static boolean isEqualMarlinName(UINode node, java.lang.String localName)
protected final void renderText(UIXRenderingContext context, UINode node) throws java.io.IOException
java.io.IOException
protected static java.lang.Object getAttributeValue(UIXRenderingContext context, UINode node, AttributeKey attributeKey, java.lang.Object defaultValue)
protected static boolean getBooleanAttributeValue(UIXRenderingContext context, UINode node, AttributeKey attributeKey, java.lang.Boolean defaultValue)
protected static boolean getBooleanAttributeValue(UIXRenderingContext context, UINode node, AttributeKey attributeKey, boolean defaultValue)
protected static int getIntAttributeValue(UIXRenderingContext context, UINode node, AttributeKey attributeKey, int defaultValue)
protected static DataObject getDataObjectAttributeValue(UIXRenderingContext context, UINode node, AttributeKey attributeKey)
protected static DataObjectList getDataObjectListAttributeValue(UIXRenderingContext context, UINode node, AttributeKey attributeKey)
protected static java.lang.Integer getInteger(int i)
protected static java.lang.Boolean getBoolean(boolean flag)
protected static boolean isRightToLeft(UIXRenderingContext context)
public static java.lang.String getTranslatedString(UIXRenderingContext context, java.lang.String key)
public static java.lang.Object getTranslatedValue(UIXRenderingContext context, java.lang.String key)
protected java.lang.String formatString(UIXRenderingContext context, java.lang.String pattern, java.lang.String[] parameters)
protected static boolean isSelected(UIXRenderingContext context, UINode node)
public static java.lang.String getParentFormName(UIXRenderingContext context)
protected static AttributeKey getAttributeKey(java.lang.String attrKeyName)
public static java.lang.String getBaseImageURI(UIXRenderingContext context)
public static java.lang.String getIconURI(UIXRenderingContext context, IconKey iconKey)
public static LafIconProvider getIconProvider(LookAndFeel laf)
public static java.lang.String getAbsoluteImageURI(UIXRenderingContext context, java.lang.String uri)
protected static java.lang.String appendURLArgument(java.lang.String baseURL, java.lang.String key, java.lang.String value)
protected static java.lang.String appendURLArguments(java.lang.StringBuffer buffer, java.lang.String baseURL, java.lang.String[] keysAndValues)
protected static java.lang.String appendURLArguments(java.lang.String baseURL, java.lang.String[] keysAndValues)
protected java.lang.String encodeActionURL(UIXRenderingContext context, java.lang.Object value) throws java.io.IOException
java.io.IOException
protected java.lang.String encodeResourceURL(UIXRenderingContext context, java.lang.Object value) throws java.io.IOException
java.io.IOException
protected void renderEncodedActionURI(UIXRenderingContext context, java.lang.String name, java.lang.Object value) throws java.io.IOException
java.io.IOException
protected void renderEncodedResourceURI(UIXRenderingContext context, java.lang.String name, java.lang.Object value) throws java.io.IOException
java.io.IOException
protected static java.lang.Object getAgentCapability(UIXRenderingContext context, CapabilityKey key)
protected static boolean getBooleanAgentCapability(UIXRenderingContext context, CapabilityKey key)
public static boolean supportsFullDOM(UIXRenderingContext context)
public static boolean supportsID(UIXRenderingContext context)
public static boolean supportsXMLDOM(UIXRenderingContext context)
public static boolean supportsAccessKeys(UIXRenderingContext context)
public static boolean supportsTextPresentation(UIXRenderingContext context)
See section 5.4.1 of xhtml modularization.
public static boolean supportsAdvancedForms(UIXRenderingContext context)
See section 5.5.2 of xhtml modularization.
public static boolean supportsAdvancedTables(UIXRenderingContext context)
See section 5.6.2 of xhtml modularization.
public static boolean supportsFrames(UIXRenderingContext context)
See section 5.11 of xhtml modularization.
public static boolean supportsTarget(UIXRenderingContext context)
See section 5.12 of xhtml modularization.
public static boolean supportsIframes(UIXRenderingContext context)
See section 5.13 of xhtml modularization.
public static boolean supportsIntrinsicEvents(UIXRenderingContext context)
Clients should override this method if the the user agent doesn't support event attributes.
See section 5.14 of xhtml modularization.
public static boolean supportsScripting(UIXRenderingContext context)
See section 5.16 of xhtml modularization
public static boolean supportsMultipleWindows(UIXRenderingContext context)
public static boolean supportsStyleAttributes(UIXRenderingContext context)
Clients should override this method if the the user agent doesn't support style attributes.
See section 5.18 of xhtml modularization
public static boolean supportsClassAttribute(UIXRenderingContext context)
public static boolean supportsMultipleCssSelectors(UIXRenderingContext context)
public static boolean supportsNavigation(UIXRenderingContext context)
public static boolean supportsEditing(UIXRenderingContext context)
public static boolean supportsNameIdentification(UIXRenderingContext context)
See section 5.21 of xhtml modularization
public static boolean supportsDisabledFormElements(UIXRenderingContext context)
public static boolean supportsAutoCompleteFormElements(UIXRenderingContext context)
public static boolean supportsReadOnlyFormElements(UIXRenderingContext context)
public static boolean supportsFieldSetElement(UIXRenderingContext context)
public static boolean isInaccessibleMode(UIXRenderingContext context)
public static boolean isScreenReaderMode(UIXRenderingContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |