org.apache.myfaces.trinidadinternal.ui.laf.base
Class BaseLafRenderer

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.ui.BaseRenderer
      extended by org.apache.myfaces.trinidadinternal.ui.ElementRenderer
          extended by org.apache.myfaces.trinidadinternal.ui.laf.base.BaseLafRenderer
All Implemented Interfaces:
BaseLafConstants, Renderer, UIConstants
Direct Known Subclasses:
ScriptRenderer, XhtmlLafRenderer

public class BaseLafRenderer
extends ElementRenderer
implements UIConstants, BaseLafConstants

Base Rendering class

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/base/BaseLafRenderer.java#0 $) $Date: 10-nov-2005.18:52:56 $
Author:
The Oracle ADF Faces Team

Field Summary
 
Fields inherited from class org.apache.myfaces.trinidadinternal.ui.BaseRenderer
NO_CHILD_INDEX
 
Fields inherited from interface org.apache.myfaces.trinidadinternal.ui.UIConstants
ABBREVIATION_ATTR, ACCESS_KEY_ATTR, ACTIONS_CHILD, ADD_NAME, ADD_ROWS_EVENT, ADVANCED_CHOICES_CHILD, ADVERTISEMENT_LARGE_CHILD, ADVERTISEMENT_MEDIUM_CHILD, AGENT_NAME, ALL_DETAILS_ENABLED_ATTR, ALLOWS_TRANSPARENT_ATTR, ALTERNATE_CONTENT_CHILD, ANCESTOR_ATTRIBUTE_NAME, ANCESTOR_ID_ATTR, ANCESTOR_PATH_ATTR, ANCHOR_ATTR, AND_NAME, ANNOTATION_ATTR, APP_ABOUT_CHILD, APP_COPYRIGHT_CHILD, APP_PRIVACY_CHILD, APPLICATION_SWITCHER_NAME, ATTRIBUTE_MAP_NAME, AUTOFLIP_ATTR, AUTOMATIC_ATTR, AUTOSTART_ATTR, BACKGROUND_ATTR, BACKGROUND_DARK, BACKGROUND_LIGHT, BACKGROUND_MEDIUM, BACKGROUND_TRANSPARENT, BANDING_SHADE_DARK, BANDING_SHADE_LIGHT, BEAN_NAME, BETWEEN_TEXT_ATTR, BLOCK_SIZE_ATTR, BODY_NAME, BORDER_ATTR, BORDER_LAYOUT_NAME, BORDER_WIDTH_ATTR, BOTTOM_CHILD, BOUND_ATTRIBUTE_NAME, BOUND_MESSAGE_NAME, BOUND_TEXT_NAME, BOUND_VALUE_PROVIDER_NAME, BRANDING_APP_CHILD, BRANDING_APP_CONTEXTUAL_CHILD, BRANDING_CHILD, BRANDING_COOPERATIVE_CHILD, BREAD_CRUMB_TEXT_ATTR, BREAD_CRUMBS_NAME, BUNDLE_NAME, BUTTON_CLIENT_ACTION_ATTR, BUTTON_NAME, BYTE_LENGTH_NAME, CANCEL_EVENT, CASE_NAME, CATCH_CHILD, CATEGORIES_CHILD, CATEGORY_TITLE_ATTR, CELL_FORMAT_NAME, CELL_NO_WRAP_FORMAT_KEY, CELL_PADDING_ATTR, CELL_SPACING_ATTR, CENTER_CHILD, CHECKED_ATTR, CHILD_BLOCK_SIZE_ATTR, CHILD_DATA_ATTR, CHILD_LIST_NAME, CHILD_MAP_NAME, CHILD_NAME_ATTR, CHILD_TYPE_TEXT, CHILD_TYPE_TEXT_ATTR, CHOICE_NAME, CHROME_TYPE_ATTR, COLLAPSE_ALL_EVENT, COLLAPSE_DESTINATION_KEY, COLOR_BUTTON_NAME, COLOR_DATA_ATTR, COLOR_FIELD_NAME, COLOR_NAME, COLOR_PALETTE_NAME, COLOR_SWATCH_NAME, COLUMN_BANDING, COLUMN_DATA_FORMAT_KEY, COLUMN_FOOTER_CHILD, COLUMN_FORMAT_ATTR, COLUMN_GROUP_NAME, COLUMN_HEADER_DATA_ATTR, COLUMN_HEADER_FORMAT_ATTR, COLUMN_HEADER_STAMP_CHILD, COLUMN_NAME, COLUMN_SPAN_ATTR, COLUMNS_ATTR, COMMAND_ITEM_NAME, COMMAND_NAVIGATION_ITEM_NAME, COMPACT_ATTR, COMPARISON_NAME, COMPARISON_TYPE_EQUALS, COMPARISON_TYPE_GREATER_THAN, COMPARISON_TYPE_GREATER_THAN_OR_EQUALS, COMPARISON_TYPE_LESS_THAN, COMPARISON_TYPE_LESS_THAN_OR_EQUALS, COMPARISON_TYPE_NOT_EQUALS, COMPOSITE_ROLE, CONCAT_NAME, CONCISE_MESSAGE_CHILD, CONFIG_NAME_PARAM, CONTENT_FOOTER_CHILD, CONTENT_FOOTER_NAME, CONTENT_FORM_CHILD, CONTENT_LINK_CHILD, CONTENT_STYLE_ATTR, CONTENT_STYLE_CLASS_ATTR, CONTENT_TYPE_ATTR, CONTENTS_NAME, CONTEXT_POPPING_NAME, CONTEXT_PROPERTY_NAME, CONTEXT_SWITCHER_CHILD, CONTEXT_URI_PARAM, CONTROLS_ALL, CONTROLS_ATTR, CONTROLS_MINIMAL, CONTROLS_NONE, CONTROLS_NONE_VISIBLE, CONTROLS_TYPICAL, CONVERT_NAME, CONVERT_PARAM, CONVERTER_ATTR, CURRENT_DATA_ATTR, CURRENT_INDEX_ATTR, CUSTOM_COLOR_DATA_ATTR, DATA_KEY, DATA_NAME, DATA_NAME_ATTR, DATA_NAMESPACE_ATTR, DATA_OBJECT_NAME, DATE_BUTTON_NAME, DATE_EVENT, DATE_FIELD_NAME, DATE_NAME, DATE_STYLE_PARAM, DECIMAL_NAME, DEFAULT_CASE_ATTR, DEFAULT_COMMAND_ATTR, DEFAULT_CONTENTS_ATTR, DEFAULT_LAYOUT, DEFAULT_NAME, DEFAULTING_NAME, DESCRIPTION_ATTR, DESCRIPTION_KEY, DESTINATION_ATTR, DESTINATION_KEY, DESTINATION_TEXT_KEY, DETAIL_STAMP_CHILD, DETAILED_MESSAGE_CHILD, DIRECTION_ATTR, DIRTY_ATTR, DISABLED_ATTR, DISCLOSE_MANY_ATTR, DISCLOSE_NONE_ATTR, DISCLOSED_ATTR, DISCLOSED_KEY, DISCLOSED_TEXT_ATTR, DISPLAY_GRID_KEY, DOCUMENT_NAME, EMBEDDED_ATTR, EMPTY_TEXT_ATTR, ENC_PARAM, ENCODED_PARAMETER_NAME, END_CHILD, ENTER_CLIENT_ACTION_ATTR, ESCAPE_ATTR, EVENT_ATTR, EVENT_PARAM, EXPAND_ALL_ENABLED_ATTR, EXPAND_ALL_EVENT, EXPAND_DESTINATION_KEY, EXPAND_EVENT, EXPANDABLE_ALWAYS, EXPANDABLE_COLLAPSED, EXPANDABLE_EXPANDED, EXPANDABLE_KEY, EXPANDABLE_NO, EXPRESSION_LANGUAGE_ATTRIBUTE_NAME, FACET_DEFAULT, FACET_EMAIL, FACET_PORTLET, FACET_PRINTABLE, FIELD_WIDTH_ATTR, FILE_UPLOAD_NAME, FILTER_CHILD, FILTER_CHOICE_CHILD, FIRST_CLICK_PASSED_ATTR, FIXED_NAME, FLOW_LAYOUT_NAME, FOCUS_EVENT, FOCUS_PATH_ATTR, FOOTER_CHILD, FOOTER_NAME, FORM_DATA_ATTR, FORM_NAME_ATTR, FORM_NAME_PROPERTY, FORM_SUBMITTED_ATTR, FORM_VALUE_NAME, FORMAT_NAME, FRAME_BORDER_LAYOUT_NAME, FRAME_NAME, GENERATES_CONTENT_ATTR, GLOBAL_BUTTON_BAR_NAME, GLOBAL_BUTTON_NAME, GLOBAL_HEADER_NAME, GLOBAL_ONLY_ATTR, GOTO_EVENT, H_ALIGN_ATTR, H_ALIGN_CENTER, H_ALIGN_END, H_ALIGN_LEFT, H_ALIGN_RIGHT, H_ALIGN_START, HARD_WRAP, HEAD_NAME, HEADER_ATTR, HEADER_CHILD, HEADER_INSTRUCTIONS_CHILD, HEADER_NAME, HEADER_TEXT_ATTR, HEADERS_ATTR, HEIGHT_ATTR, HIDE_EVENT, HORIZONTAL_LAYOUT, HTML_NAME, ICON_ATTR, ICON_BUTTON_FORMAT, ICON_KEY, ICON_KEY_NAME, ICON_NAME, ICON_REQUIRED, ICON_SHORT_DESC_KEY, ID_ATTR, IF_NAME, IMAGE_ATTR, IMAGE_MAP_TYPE_ATTR, IMAGE_MAP_TYPE_NONE, IMAGE_MAP_TYPE_SERVER, IMAGE_NAME, IMPORT_SCRIPT_NAME, IN_CONTEXT_BRANDING_STYLE, INCLUDE_NAME, INCOMPLETE_DATA_SET, INFO_FOOTNOTE_CHILD, INFO_RETURN_CHILD, INFO_STATUS_CHILD, INFO_SUPPLEMENTAL_CHILD, INFO_USER_CHILD, INITIAL_FOCUS_CONTEXT_PROPERTY, INITIAL_FOCUS_ID_ATTR, INLINE_DATE_PICKER_NAME, INLINE_NAME, INLINE_STYLE_ATTR, INNER_BOTTOM_CHILD, INNER_END_CHILD, INNER_HEIGHT_ATTR, INNER_LEFT_CHILD, INNER_RIGHT_CHILD, INNER_START_CHILD, INNER_TOP_CHILD, INNER_WIDTH_ATTR, INSERTED_NODE_LIST_NAME, INSTANCE_NAME, INSTRUCTION_STYLE, INTERVAL_ATTR, ITEM_TITLE_ATTR, ITEMS_CHILD, JSP_PARAM, LABEL_ATTR, LABEL_CHILD, LABEL_WIDTH_ATTR, LABELED_NODE_ID_ATTR, LANGUAGE_ATTR, LAYOUT_ATTR, LEADING_CHILD, LEADING_DESC_SHOWN_ATTR, LEADING_FOOTER_CHILD, LEADING_HEADER_ATTR, LEFT_CHILD, LEVEL_ATTR, LINK_NAME, LIST_STYLE_ATTR, LIST_STYLE_CIRCLE, LIST_STYLE_DECIMAL, LIST_STYLE_DISC, LIST_STYLE_LOWER_ALPHA, LIST_STYLE_NONE, LIST_STYLE_SQUARE, LIST_STYLE_UPPER_ALPHA, LOC_PARAM, LOCATION_CHILD, LOCATION_PARAM, LONG_DESC_ATTR, LONG_DESC_URL_ATTR, LOV_EVENT, LOV_FILTER_EVENT, LOV_SEARCH_TEXT, MAILTO_NAME, MARGIN_HEIGHT_ATTR, MARGIN_WIDTH_ATTR, MARLIN_NAMESPACE, MAX_COLUMNS_ATTR, MAX_VALUE_ATTR, MAX_VALUE_PARAM, MAX_VALUE_UNKNOWN, MAX_VISITED_ATTR, MAXIMUM_LENGTH_ATTR, MENU_LIST_NAME, MENU_SWITCH_CHILD, MESSAGE_ATTR, MESSAGE_BOX_NAME, MESSAGE_FORMAT_NAME, MESSAGE_TYPE_ATTR, MESSAGE_TYPE_CONFIRMATION, MESSAGE_TYPE_ERROR, MESSAGE_TYPE_INFO, MESSAGE_TYPE_NONE, MESSAGE_TYPE_PROCESSING, MESSAGE_TYPE_WARNING, MESSAGES_CHILD, META_CONTAINER_CHILD, METHOD_ATTR, METHOD_NAME, MIN_VALUE_ATTR, MIN_VALUE_PARAM, MINIMUM_WIDTH_ATTR, MODEL_ATTR, MONTH_PARAM, MULTIPLE_ATTR, NAME_ATTR, NAME_TRANSFORMED_ATTR, NAME_VALUES_ATTR, NAMED_SOURCE_ATTR, NAMES_ATTR, NAVIGATE_EVENT, NAVIGATION_BAR_NAME, NAVIGATION_EXCLUDE_NAMES_ATTR, NAVIGATION_FORM_NAME_ATTR, NAVIGATION_GLOBAL_CHILD, NAVIGATION_PATH_NAME, NAVIGATION_TREE_NAME, NAVIGATION1_CHILD, NAVIGATION2_CHILD, NAVIGATION3_CHILD, NEXT_EVENT, NO_AUTO_COMPLETE_ATTR, NO_BANDING, NODE_ATTR, NODE_PARAM, NODE_STAMP_CHILD, NODES_ATTR, NODES_KEY, NOT_NAME, NULL_NAME, NUMBER_FORMAT, OBJECT_NAME_FORMAT, ON_BLUR_ATTR, ON_BLUR_VALIDATER_ATTR, ON_CHANGE_ATTR, ON_CLICK_ATTR, ON_CLICK_KEY, ON_COLOR_SELECT_ATTR, ON_DOUBLE_CLICK_ATTR, ON_FOCUS_ATTR, ON_KEY_DOWN_ATTR, ON_KEY_PRESS_ATTR, ON_KEY_UP_ATTR, ON_LOAD_ATTR, ON_LOV_INIT_ATTR, ON_LOV_SELECT_ATTR, ON_LOV_VALIDATE_ATTR, ON_MOUSE_DOWN_ATTR, ON_MOUSE_MOVE_ATTR, ON_MOUSE_OUT_ATTR, ON_MOUSE_OVER_ATTR, ON_MOUSE_UP_ATTR, ON_NAVIGATE_ATTR, ON_SELECT_ATTR, ON_SUBMIT_ATTR, ON_SUBMIT_VALIDATER_ATTR, ON_SWITCH_APP_ATTR, ON_UNLOAD_ATTR, OPTION_NAME, OR_NAME, ORIENTATION_ATTR, ORIENTATION_BOTTOM, ORIENTATION_DEFAULT, ORIENTATION_HORIZONTAL, ORIENTATION_TOP, ORIENTATION_VERTICAL, PAGE_HEADER_LAYOUT_NAME, PAGE_LAYOUT_NAME, PAGE_MENU_BAR_NAME, PAGE_MENU_BUTTONS_NAME, PAGE_MENU_LIST_NAME, PAGE_MENU_TABS_NAME, PAGE_NAME, PAGE_NAVIGATION_PATH_NAME, PAGE_NAVIGATION_TREE_NAME, PAGE_STAMP_STYLE, PALETTE_ID_ATTR, PALETTE_NAME, PARSE_NAME, PARTIAL_PARAM, PARTIAL_RENDER_MODE_ATTR, PARTIAL_RENDER_MODE_NONE, PARTIAL_RENDER_MODE_SELF, PARTIAL_ROOT_NAME, PARTIAL_TARGETS_ATTR, PARTIAL_TARGETS_PARAM, PATH_STAMP_CHILD, PATTERN_ATTR, PATTERN_PARAM, PATTERNS_ATTR, PERCENT_COMPLETE_ATTR, PERCENT_UNKNOWN, PICKER_ID_ATTR, PLAY_COUNT_ATTR, PLAYER_ATTR, PLAYER_LINK, PLAYER_QUICKTIME, PLAYER_REAL, PLAYER_WINDOWS, POSITION_ABOVE, POSITION_ATTR, POSITION_BELOW, POSITION_BOTH, POST_TEXT_ATTR, PRE_TEXT_ATTR, PREVIOUS_EVENT, PRIMARY_CLIENT_ACTION_ATTR, PROCESS_CHOICE_BAR_NAME, PROCESS_STEPS_NAME, PROCESS_TRAIN_NAME, PROCESSING_NAME, PRODUCT_BRANDING_NAME, PROMPT_CHILD, PROVIDER_ATTR, PROXIED_ATTR, PROXY_ATTR, RAW_TEXT_NAME, READ_ONLY_ATTR, REG_EXP_NAME, RENDERED_ATTR, REORDER_ONLY_ATTR, REORDERABLE_ATTR, REQUIRED_ATTR, REQUIRED_NO, REQUIRED_UI_ONLY, REQUIRED_YES, RIGHT_CHILD, ROOT_ATTRIBUTE_MAP_NAME, ROOT_PARAM, ROW_BANDING, ROW_FORMATS_ATTR, ROW_HEADER_DATA_ATTR, ROW_HEADER_FORMATS_ATTR, ROW_HEADER_STAMP_CHILD, ROW_LAYOUT_NAME, ROW_SPAN_ATTR, ROWS_ATTR, SAMPLE_NAME, SCRIPT_NAME, SCROLLED_VALUE_ATTR, SCROLLED_VALUE_PARAM, SCROLLING_ATTR, SCROLLING_AUTO, SCROLLING_NO, SCROLLING_YES, SEARCH_AREA_MODE_ATTR, SEARCH_CHILD, SEARCH_DESC_ATTR, SEARCH_INSTRUCTIONS_CHILD, SEARCH_TEXT_ATTR, SECRET_ATTR, SECRET_FIELD_DEFAULT_VALUE, SELECT_ATTR, SELECT_MODE_KEY, SELECT_OPTION_NAME, SELECTED_ATTR, SELECTED_INDEX_ATTR, SELECTED_KEY, SELECTED_VALUE_ATTR, SELECTION_ATTR, SELECTION_CHILD, SELECTION_PARAM, SEPARATOR_CHILD, SEPARATOR_NAME, SERVER_VALIDATER_ATTR, SERVLET_INCLUDE_NAME, SHORT_DESC_ATTR, SHORT_TEXT_ATTR, SHOW_ALL_ACTIVE, SHOW_ALL_ATTR, SHOW_ALL_NO, SHOW_ALL_YES, SHOW_EVENT, SHOW_ITEM_NAME, SHOW_ONE_TAB_NAME, SHOW_REQUIRED_ATTR, SHOW_WINDOW_ATTR, SIDE_BAR_NAME, SIDE_NAV_NAME, SIMPLE_ATTR, SINGLE_SELECTION_NAME, SINGLE_STEP, SIZE_ATTR, SIZE_PARAM, SOFT_WRAP, SORT_EVENT, SORT_STATE_ASCENDING, SORT_STATE_DESCENDING, SORTABLE_ASCENDING, SORTABLE_ATTR, SORTABLE_DESCENDING, SORTABLE_HEADER_NAME, SORTABLE_NO, SORTABLE_YES, SOURCE_ATTR, SOURCE_PARAM, SPACER_NAME, STACK_LAYOUT_NAME, STANDBY_TEXT_ATTR, START_CHILD, START_DEPTH_ATTR, START_LEVEL_ATTR, STATE_CHECK_ATTR, STATE_PARAM, STATE_ROLE, STEPS_COMPLETE_ATTR, STRUCTURAL_ROLE, STYLE_CLASS_ATTR, STYLE_SHEET_NAME, STYLE_USAGE_ATTR, STYLED_TEXT_NAME, SUB_TAB_BAR_NAME, SUB_TAB_LAYOUT_NAME, SUB_TABS_CHILD, SUBMIT_BUTTON_NAME, SUBMIT_PREPARE_ATTR, SUMMARY_ATTR, SWITCH_APP_EVENT, SWITCH_APP_TYPE_BACK, SWITCH_APP_TYPE_GOTO, SWITCHER_NAME, TAB_BAR_NAME, TABLE_FILTER_CHILD, TABLE_FOOTER_NAME, TABLE_LAYOUT_NAME, TABLE_NAME, TABLE_NAME_ATTR, TARGET_FRAME_ATTR, TARGET_FRAME_KEY, TEMPLATE_DEFINITION_NAME, TEMPLATE_IMPORT_NAME, TEMPLATE_LIBRARY_NAME, TEMPLATES_NAME, TEXT_ATTR, TEXT_FORMAT, TEXT_KEY, TEXT_NAME, THREADED_ATTR, TIP_ATTR, TITLE_ATTR, TOK_PARAM, TOP_CHILD, TOTAL_CHILD, TRAILING_CHILD, TRAILING_DESC_SHOWN_ATTR, TRAILING_FOOTER_CHILD, TRAILING_HEADER_ATTR, TREE_NAME, TRUNCATE_AT_ATTR, TRUNCATE_NAME, TYPE_ATTR, TYPE_PARAM, TYPE_POST, TYPE_PRE, TYPE_TEXT_ATTR, UNDISCLOSED_TEXT_ATTR, UNKNOWN_ROLE, UNVALIDATED_ATTR, UPDATE_EVENT, URI_PARAM, USE_SEPARATE_ROWS_ATTR, USER_INVISIBLE_ROLE, USES_UPLOAD_ATTR, UTF8_LENGTH_NAME, V_ALIGN_ABSMIDDLE, V_ALIGN_ATTR, V_ALIGN_BOTTOM, V_ALIGN_MIDDLE, V_ALIGN_TOP, VALID_ATTR, VALIDATE_BLANKS_ATTR, VALIDATORS_ATTR, VALUE_ATTR, VALUE_COLUMNS_ATTR, VALUE_PARAM, VALUE_SHOW_ALL, VERTICAL_LAYOUT, WIDTH_ATTR, WIDTH_KEY, WML_NAME, WRAP_ATTR, WRAPPING_DISABLED_ATTR, YEAR_PARAM
 
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

BaseLafRenderer

public BaseLafRenderer()
Method Detail

getShortDesc

protected java.lang.Object getShortDesc(UIXRenderingContext context,
                                        UINode node)

getID

protected java.lang.Object getID(UIXRenderingContext context,
                                 UINode node)

isDisabled

protected boolean isDisabled(UIXRenderingContext context,
                             UINode node)

renderURIAttribute

protected void renderURIAttribute(UIXRenderingContext context,
                                  java.lang.String name,
                                  java.lang.Object value)
                           throws java.io.IOException
Throws:
java.io.IOException

renderURIID

protected void renderURIID(UIXRenderingContext context,
                           java.lang.Object idObject)
                    throws java.io.IOException
Throws:
java.io.IOException

renderID

protected void renderID(UIXRenderingContext context,
                        UINode node)
                 throws java.io.IOException
Renders the id of the UINode

Throws:
java.io.IOException

renderID

protected final void renderID(UIXRenderingContext context,
                              java.lang.Object idObject,
                              boolean isSubID)
                       throws java.io.IOException
Renders the id of the UINode

Throws:
java.io.IOException

getNodeName

protected java.lang.Object getNodeName(UIXRenderingContext context,
                                       UINode node)
Get the name for a node. In rare cases, the renderer must specify the name.


getTransformedName

protected java.lang.Object getTransformedName(UIXRenderingContext context,
                                              UINode node)
Returns the name of the node, transformed for the given context


getNamedChild

protected UINode getNamedChild(UIXRenderingContext context,
                               UINode node,
                               java.lang.String name)

hasNamedChild

protected boolean hasNamedChild(UIXRenderingContext context,
                                UINode node,
                                java.lang.String name)

hasRenderedNamedChild

protected boolean hasRenderedNamedChild(UIXRenderingContext context,
                                        UINode node,
                                        java.lang.String name)

getRenderingProperty

protected static java.lang.Object getRenderingProperty(UIXRenderingContext context,
                                                       java.lang.Object key)
Gets a property stored on the context, using the BLAF namespace.


getRenderingProperty

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.


getRenderingProperty

protected static int getRenderingProperty(UIXRenderingContext context,
                                          java.lang.Object key,
                                          int defaultValue)

setRenderingProperty

protected static void setRenderingProperty(UIXRenderingContext context,
                                           java.lang.Object key,
                                           java.lang.Object value)
Stores a property on the context, using the BLAF namespace.


getUIComponent

public static javax.faces.component.UIComponent getUIComponent(UIXRenderingContext context,
                                                               UINode node)
Returns UIComponent for a given UINode. For case of composites, UIComponents are not directly available with the supplied UINode. In this case goes up in the containment tree, looks up the first encountered UINode for UIComponent, if present returns the same. Returns null if this lookup was unsuccessful.


pushAttributeAsRenderingProperty

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.

See Also:
pushRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object, java.lang.Object), popRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object)

pushRenderingProperty

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.

See Also:
popRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object)

pushRenderingProperty

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.

See Also:
popRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object)

popRenderingProperty

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.

See Also:
pushRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object, java.lang.Object)

popRenderingProperty

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.

See Also:
pushRenderingProperty(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, java.lang.Object, java.lang.Object)

isEqualMarlinName

public 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.


renderText

protected final void renderText(UIXRenderingContext context,
                                UINode node)
                         throws java.io.IOException
Render the text stored as a text attribute.

Throws:
java.io.IOException

getAttributeValue

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.


getBooleanAttributeValue

protected static boolean getBooleanAttributeValue(UIXRenderingContext context,
                                                  UINode node,
                                                  AttributeKey attributeKey,
                                                  java.lang.Boolean defaultValue)

getBooleanAttributeValue

protected static boolean getBooleanAttributeValue(UIXRenderingContext context,
                                                  UINode node,
                                                  AttributeKey attributeKey,
                                                  boolean defaultValue)

getIntAttributeValue

protected static int getIntAttributeValue(UIXRenderingContext context,
                                          UINode node,
                                          AttributeKey attributeKey,
                                          int defaultValue)

getDataObjectAttributeValue

protected static DataObject getDataObjectAttributeValue(UIXRenderingContext context,
                                                        UINode node,
                                                        AttributeKey attributeKey)

getDataObjectListAttributeValue

protected static DataObjectList getDataObjectListAttributeValue(UIXRenderingContext context,
                                                                UINode node,
                                                                AttributeKey attributeKey)

getInteger

protected static java.lang.Integer getInteger(int i)

getBoolean

protected static java.lang.Boolean getBoolean(boolean flag)

isRightToLeft

protected static boolean isRightToLeft(UIXRenderingContext context)

getTranslatedString

public static java.lang.String getTranslatedString(UIXRenderingContext context,
                                                   java.lang.String key)
Returns a translated String from the skin's resource bundle. Logs a severe message if there is a MissingResourceException.


getTranslatedValue

public static java.lang.Object getTranslatedValue(UIXRenderingContext context,
                                                  java.lang.String key)
Returns a translated value from the skin's resource bundle. Logs a severe message if there is a MissingResourceException.


formatString

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.


isSelected

protected static boolean isSelected(UIXRenderingContext context,
                                    UINode node)
Returns true if this node is selected.


getParentFormName

public static java.lang.String getParentFormName(UIXRenderingContext context)

getAttributeKey

protected static AttributeKey getAttributeKey(java.lang.String attrKeyName)
Convenience method to make it easy for subclasses to create AttributeKeys


getBaseImageURI

public static java.lang.String getBaseImageURI(UIXRenderingContext context)

getIconURI

public static java.lang.String getIconURI(UIXRenderingContext context,
                                          IconKey iconKey)

getIconProvider

public static LafIconProvider getIconProvider(LookAndFeel laf)

getAbsoluteImageURI

public static java.lang.String getAbsoluteImageURI(UIXRenderingContext context,
                                                   java.lang.String uri)

appendURLArgument

protected static java.lang.String appendURLArgument(java.lang.String baseURL,
                                                    java.lang.String key,
                                                    java.lang.String value)

appendURLArguments

protected static java.lang.String appendURLArguments(java.lang.StringBuffer buffer,
                                                     java.lang.String baseURL,
                                                     java.lang.String[] keysAndValues)

appendURLArguments

protected static java.lang.String appendURLArguments(java.lang.String baseURL,
                                                     java.lang.String[] keysAndValues)

encodeActionURL

protected java.lang.String encodeActionURL(UIXRenderingContext context,
                                           java.lang.Object value)
                                    throws java.io.IOException
Throws:
java.io.IOException

encodeResourceURL

protected java.lang.String encodeResourceURL(UIXRenderingContext context,
                                             java.lang.Object value)
                                      throws java.io.IOException
Throws:
java.io.IOException

renderEncodedActionURI

protected void renderEncodedActionURI(UIXRenderingContext context,
                                      java.lang.String name,
                                      java.lang.Object value)
                               throws java.io.IOException
Throws:
java.io.IOException

renderEncodedResourceURI

protected void renderEncodedResourceURI(UIXRenderingContext context,
                                        java.lang.String name,
                                        java.lang.Object value)
                                 throws java.io.IOException
Throws:
java.io.IOException

getAgentCapability

protected static java.lang.Object getAgentCapability(UIXRenderingContext context,
                                                     CapabilityKey key)
Returns the Agent capability specified by the key


getBooleanAgentCapability

protected static boolean getBooleanAgentCapability(UIXRenderingContext context,
                                                   CapabilityKey key)
Returns true iff the specified agent capability is true


supportsFullDOM

public static boolean supportsFullDOM(UIXRenderingContext context)
Returns true if the agent supports a full dom


supportsID

public static boolean supportsID(UIXRenderingContext context)
Returns true if the agent supports the id attribute


supportsXMLDOM

public static boolean supportsXMLDOM(UIXRenderingContext context)
Returns true if the agent supports the xmldom


supportsAccessKeys

public static boolean supportsAccessKeys(UIXRenderingContext context)
Returns true if the agent supports access keys


supportsTextPresentation

public static boolean supportsTextPresentation(UIXRenderingContext context)
Returns true if the agent supports the text presentation module.

See section 5.4.1 of xhtml modularization.


supportsAdvancedForms

public static boolean supportsAdvancedForms(UIXRenderingContext context)
Returns true if the agent supports the (advanced) forms module

See section 5.5.2 of xhtml modularization.


supportsAdvancedTables

public static boolean supportsAdvancedTables(UIXRenderingContext context)
Returns true if the agent supports the (advanced) tables module

See section 5.6.2 of xhtml modularization.


supportsFrames

public static boolean supportsFrames(UIXRenderingContext context)
Returns true if the agent supports the Frames module

See section 5.11 of xhtml modularization.


supportsTarget

public static boolean supportsTarget(UIXRenderingContext context)
Returns true if the agent supports setting the target attribute of other elements.

See section 5.12 of xhtml modularization.


supportsIframes

public static boolean supportsIframes(UIXRenderingContext context)
Returns true if the agent supports the Iframes module

See section 5.13 of xhtml modularization.


supportsIntrinsicEvents

public static boolean supportsIntrinsicEvents(UIXRenderingContext context)
Returns true if the event attributes should be rendered for this node.

Clients should override this method if the the user agent doesn't support event attributes.

See section 5.14 of xhtml modularization.


supportsScripting

public static boolean supportsScripting(UIXRenderingContext context)
Returns true if the agent supports the Script module.

See section 5.16 of xhtml modularization


supportsMultipleWindows

public static boolean supportsMultipleWindows(UIXRenderingContext context)
Returns true if the agent supports opening multiple windows


supportsStyleAttributes

public static boolean supportsStyleAttributes(UIXRenderingContext context)
Returns true if the style attributes should be rendered for this node.

Clients should override this method if the the user agent doesn't support style attributes.

See section 5.18 of xhtml modularization


supportsClassAttribute

public static boolean supportsClassAttribute(UIXRenderingContext context)
Returns true if the CSS class attribute is supported.


supportsMultipleCssSelectors

public static boolean supportsMultipleCssSelectors(UIXRenderingContext context)
Returns true if the value of the CSS class attribute can take a space separated list of style selectors


supportsNavigation

public static boolean supportsNavigation(UIXRenderingContext context)
Returns true if navigation is supported.


supportsEditing

public static boolean supportsEditing(UIXRenderingContext context)
Returns true if editing is supported.


supportsNameIdentification

public static boolean supportsNameIdentification(UIXRenderingContext context)
Returns true if the agent supports the Name identification module.

See section 5.21 of xhtml modularization


supportsDisabledFormElements

public static boolean supportsDisabledFormElements(UIXRenderingContext context)
Returns true if the agent supports rendering disabled form elements


supportsAutoCompleteFormElements

public static boolean supportsAutoCompleteFormElements(UIXRenderingContext context)

supportsReadOnlyFormElements

public static boolean supportsReadOnlyFormElements(UIXRenderingContext context)
Returns true if the agent supports rendering readonly form elements


supportsFieldSetElement

public static boolean supportsFieldSetElement(UIXRenderingContext context)
Returns true if the browser supports rendering of fieldset element.


isInaccessibleMode

public static boolean isInaccessibleMode(UIXRenderingContext context)
Returns:
true if we are in inaccessible mode

isScreenReaderMode

public static boolean isScreenReaderMode(UIXRenderingContext context)
Returns:
true if we are in screen reader mode


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