org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml
Class XhtmlLafUtils
java.lang.Object
org.apache.myfaces.trinidadinternal.ui.laf.base.BaseLafUtils
org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafUtils
- All Implemented Interfaces:
- UIConstants
- Direct Known Subclasses:
- BaseDesktopUtils, PdaHtmlLafUtils
public class XhtmlLafUtils
- extends BaseLafUtils
- Version:
- $Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/base/xhtml/XhtmlLafUtils.java#0 $) $Date: 10-nov-2005.18:54:20 $
- Author:
- The Oracle ADF Faces Team
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 |
Method Summary |
static void |
addLib(UIXRenderingContext context,
java.lang.Object libKey)
Adds an import of a Javascript library if necessary. |
static void |
addOnSubmitRequiredValidator(UIXRenderingContext context,
UINode node,
java.lang.String requiredMessageKey,
java.lang.Object nodeName)
|
static void |
copyAttr(UIXRenderingContext context,
UINode sourceNode,
AttributeKey attrKey,
MutableUINode destNode)
Copies an attribute from a source node to a destination UINode |
static java.lang.String |
createCompoundName(UIXRenderingContext context,
java.lang.String formName,
java.lang.Object keyValues)
|
static java.lang.String |
createCompoundName(UIXRenderingContext context,
java.lang.String formName,
java.lang.Object keyValues,
java.lang.Object keyExchanges)
|
static java.lang.String |
encodeJSEventObject(UIXRenderingContext context,
java.lang.String formName,
java.util.Iterator<java.lang.Object> keyValues,
int keyValueSize)
Encodes an Iterator key value pairs as a single Javascript Object
initializer, creating any needed form values. |
static java.lang.String |
encodeJSEventObject(UIXRenderingContext context,
java.lang.String formName,
java.lang.Object[] keyValues)
Encodes an Iterator key value pairs as a single Javascript Object
initializer, creating any needed form values. |
static void |
endRenderingStyleElements(UIXRenderingContext context)
Closes any tags started by startRenderingStyleElements |
static java.lang.String |
escapeJS(java.lang.String inString)
Handle escaping '/', and single quotes, plus escaping text inside of
quotes with just a String for input. |
static java.lang.String |
escapeJS(java.lang.String inString,
boolean inQuotes)
Handle escaping '/', and single quotes, plus escaping text inside of
quotes with just a String for input. |
static void |
escapeJS(java.lang.StringBuffer outBuffer,
java.lang.String inString)
Handle escaping '/', and single quotes, plus escaping text inside of
quotes. |
static void |
escapeJS(java.lang.StringBuffer outBuffer,
java.lang.String inString,
boolean inQuotes)
Handle escaping '/', and single quotes, plus escaping text inside of
quotes. |
static void |
escapeJS(java.lang.StringBuffer outBuffer,
java.lang.String inString,
boolean inQuotes,
int escapeCount)
Handle escaping '/', and single quotes, plus escaping text inside of
quotes. |
static java.lang.Object |
getChainedJS(java.lang.Object evh1,
java.lang.Object evh2,
boolean shortCircuit)
Return the chained JavaScript |
static Style |
getClassStyle(UIXRenderingContext context,
java.lang.Object className)
Resolves the class name to the appropriate Style object |
static java.lang.String |
getClassStyleProperty(UIXRenderingContext context,
java.lang.Object className,
java.lang.String propertyName)
Resolves the class name to the appropriate Style object,
then get a property from the Style |
static java.lang.String |
getFirePartialChangeHandler(java.lang.String destination)
Returns a String value which can be used as the onclick handler for
an element which fires partial change events. |
static java.lang.String |
getFormEncodedParameter(FormEncoder formEncoder,
java.lang.Object formName,
java.lang.Object transName,
java.lang.Object value)
Encodes a client parameter using the supplied transformed name for the
specified form. |
static java.lang.Object |
getFormEncodedValue(UIXRenderingContext context,
java.lang.Object transName,
java.lang.Object value)
Encodes a form value using the supplied transformed name for the
currently scoped form. |
static java.lang.Object |
getMiddleIconAlignment(UIXRenderingContext context)
Returns the valign vAlign value for aligning image icons
vertically with text on the same line. |
static java.lang.String[] |
getPartialTargets(UIXRenderingContext context,
UINode node)
Returns the partial targets associated with the specified node |
static java.lang.String[] |
getPartialTargets(UIXRenderingContext context,
UINode node,
java.lang.Object id)
Returns the partial targets associated with the specified node,
including the specified ID. |
static java.lang.Object |
getShortStyleClass(UIXRenderingContext context,
java.lang.Object styleClass)
Returns the short version of the specified style class. |
static java.lang.String |
getStyleProperty(Style style1,
Style style2,
java.lang.String stylePropertyName)
Returns the value of a style property asking Style1 and then
Style2, if Style1 doesn't return a value. |
static Style |
getStyleSelector(UIXRenderingContext context,
java.lang.Object styleSelector)
Resolves the class name to the appropriate Style object |
static java.lang.String |
getStyleSelectorProperty(UIXRenderingContext context,
java.lang.Object selectorName,
java.lang.String propertyName)
Resolves the class name to the appropriate Style object,
then get a property from the Style |
static boolean |
isReadOnly(UIXRenderingContext context,
UINode node)
Return true if readOnly attribute exists and set to true |
static java.lang.String |
mapVerticalAlignToVAlign(UIXRenderingContext context,
java.lang.String verticalAlign)
Returns the mapping of a css vertical-align to a valign attribute value. |
static void |
registerScriptlet(java.lang.Object key,
Scriptlet scriptlet)
Registers a scriptlet. |
static void |
renderIcon(UIXRenderingContext context,
org.apache.myfaces.trinidad.skin.Icon icon,
java.lang.Object shortDesc,
java.lang.Object align)
Renders the specified Icon with the provided attributes. |
static void |
renderIcon(UIXRenderingContext context,
org.apache.myfaces.trinidad.skin.Icon icon,
java.lang.Object shortDesc,
java.lang.Object align,
boolean embedded)
Renders the specified Icon with the provided attributes. |
static void |
startRenderingStyleElements(UIXRenderingContext context,
Style inlineStyle,
Style classStyle)
Renders the combination of inline and class style attributes
as elements |
static boolean |
supportsTransparentImages(UIXRenderingContext context)
Returns true if the agent supports transparent images. |
static void |
writeLibImport(UIXRenderingContext context,
java.lang.Object libURL)
Write out a script element importing a library. |
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.laf.base.BaseLafUtils |
appendURLArgument, appendURLArguments, appendURLArguments, createIsRenderedBoundValue, createIsRenderedBoundValue, encodeCompoundKeyValues, encodeCompoundKeyValues, generateUniqueID, getBackgroundColor, getCharacter, getCharacterAttr, getComponentLabel, getConfiguredURL, getFormattedString, getKeyValueArraySize, getLength, getLocalAttribute, getLocalBooleanAttribute, getLocalNamedChild, getLocalTextAttribute, getOutputEncoding, getParentFormName, getRenderedAncestorByName, getRenderingProperty, getRenderingProperty, getStringAttributeValue, getTransformedID, isRightToLeft, popRenderingProperty, popRenderingProperty, popStyleAttrs, pushAttributeAsRenderingProperty, pushAttributeAsStringRenderingProperty, pushRenderingProperty, pushRenderingProperty, pushStyleAttrs, setRenderingProperty, setRootBoundValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XhtmlLafUtils
protected XhtmlLafUtils()
copyAttr
public static void copyAttr(UIXRenderingContext context,
UINode sourceNode,
AttributeKey attrKey,
MutableUINode destNode)
- Copies an attribute from a source node to a destination UINode
registerScriptlet
public static void registerScriptlet(java.lang.Object key,
Scriptlet scriptlet)
- Registers a scriptlet.
encodeJSEventObject
public static java.lang.String encodeJSEventObject(UIXRenderingContext context,
java.lang.String formName,
java.util.Iterator<java.lang.Object> keyValues,
int keyValueSize)
- Encodes an Iterator key value pairs as a single Javascript Object
initializer, creating any needed form values.
encodeJSEventObject
public static java.lang.String encodeJSEventObject(UIXRenderingContext context,
java.lang.String formName,
java.lang.Object[] keyValues)
- Encodes an Iterator key value pairs as a single Javascript Object
initializer, creating any needed form values.
getClassStyle
public static Style getClassStyle(UIXRenderingContext context,
java.lang.Object className)
- Resolves the class name to the appropriate Style object
getClassStyleProperty
public static java.lang.String getClassStyleProperty(UIXRenderingContext context,
java.lang.Object className,
java.lang.String propertyName)
- Resolves the class name to the appropriate Style object,
then get a property from the Style
getStyleSelector
public static Style getStyleSelector(UIXRenderingContext context,
java.lang.Object styleSelector)
- Resolves the class name to the appropriate Style object
getStyleSelectorProperty
public static java.lang.String getStyleSelectorProperty(UIXRenderingContext context,
java.lang.Object selectorName,
java.lang.String propertyName)
- Resolves the class name to the appropriate Style object,
then get a property from the Style
getShortStyleClass
public static java.lang.Object getShortStyleClass(UIXRenderingContext context,
java.lang.Object styleClass)
- Returns the short version of the specified style class.
mapVerticalAlignToVAlign
public static java.lang.String mapVerticalAlignToVAlign(UIXRenderingContext context,
java.lang.String verticalAlign)
- Returns the mapping of a css vertical-align to a valign attribute value.
endRenderingStyleElements
public static void endRenderingStyleElements(UIXRenderingContext context)
throws java.io.IOException
- Closes any tags started by startRenderingStyleElements
- Throws:
java.io.IOException
startRenderingStyleElements
public static void startRenderingStyleElements(UIXRenderingContext context,
Style inlineStyle,
Style classStyle)
throws java.io.IOException
- Renders the combination of inline and class style attributes
as elements
- Throws:
java.io.IOException
getStyleProperty
public static java.lang.String getStyleProperty(Style style1,
Style style2,
java.lang.String stylePropertyName)
- Returns the value of a style property asking Style1 and then
Style2, if Style1 doesn't return a value.
createCompoundName
public static java.lang.String createCompoundName(UIXRenderingContext context,
java.lang.String formName,
java.lang.Object keyValues)
createCompoundName
public static java.lang.String createCompoundName(UIXRenderingContext context,
java.lang.String formName,
java.lang.Object keyValues,
java.lang.Object keyExchanges)
getChainedJS
public static java.lang.Object getChainedJS(java.lang.Object evh1,
java.lang.Object evh2,
boolean shortCircuit)
- Return the chained JavaScript
escapeJS
public static java.lang.String escapeJS(java.lang.String inString)
- Handle escaping '/', and single quotes, plus escaping text inside of
quotes with just a String for input. If a String in and a String out is
all that is required, this version is more efficient if the String
does not need to be escaped.
escapeJS
public static java.lang.String escapeJS(java.lang.String inString,
boolean inQuotes)
- Handle escaping '/', and single quotes, plus escaping text inside of
quotes with just a String for input. If a String in and a String out is
all that is required, this version is more efficient if the String
does not need to be escaped.
escapeJS
public static void escapeJS(java.lang.StringBuffer outBuffer,
java.lang.String inString)
- Handle escaping '/', and single quotes, plus escaping text inside of
quotes.
escapeJS
public static void escapeJS(java.lang.StringBuffer outBuffer,
java.lang.String inString,
boolean inQuotes)
- Handle escaping '/', and single quotes, plus escaping text inside of
quotes.
escapeJS
public static void escapeJS(java.lang.StringBuffer outBuffer,
java.lang.String inString,
boolean inQuotes,
int escapeCount)
- Handle escaping '/', and single quotes, plus escaping text inside of
quotes.
addOnSubmitRequiredValidator
public static void addOnSubmitRequiredValidator(UIXRenderingContext context,
UINode node,
java.lang.String requiredMessageKey,
java.lang.Object nodeName)
throws java.io.IOException
- Throws:
java.io.IOException
addLib
public static void addLib(UIXRenderingContext context,
java.lang.Object libKey)
throws java.io.IOException
- Adds an import of a Javascript library if necessary.
Also imports any and all dependencies of that library (again,
if needed).
- Throws:
java.io.IOException
writeLibImport
public static void writeLibImport(UIXRenderingContext context,
java.lang.Object libURL)
throws java.io.IOException
- Write out a script element importing a library.
- Throws:
java.io.IOException
getPartialTargets
public static java.lang.String[] getPartialTargets(UIXRenderingContext context,
UINode node)
- Returns the partial targets associated with the specified node
getPartialTargets
public static java.lang.String[] getPartialTargets(UIXRenderingContext context,
UINode node,
java.lang.Object id)
- Returns the partial targets associated with the specified node,
including the specified ID.
getFirePartialChangeHandler
public static java.lang.String getFirePartialChangeHandler(java.lang.String destination)
- Returns a String value which can be used as the onclick handler for
an element which fires partial change events.
- Parameters:
destination
- The destination URL, which contains any
event information, including the partialTargets parameter.
supportsTransparentImages
public static boolean supportsTransparentImages(UIXRenderingContext context)
- Returns true if the agent supports transparent images.
renderIcon
public static void renderIcon(UIXRenderingContext context,
org.apache.myfaces.trinidad.skin.Icon icon,
java.lang.Object shortDesc,
java.lang.Object align)
throws java.io.IOException
- Renders the specified Icon with the provided attributes.
- Throws:
java.io.IOException
renderIcon
public static void renderIcon(UIXRenderingContext context,
org.apache.myfaces.trinidad.skin.Icon icon,
java.lang.Object shortDesc,
java.lang.Object align,
boolean embedded)
throws java.io.IOException
- Renders the specified Icon with the provided attributes.
- Throws:
java.io.IOException
getMiddleIconAlignment
public static java.lang.Object getMiddleIconAlignment(UIXRenderingContext context)
- Returns the valign vAlign value for aligning image icons
vertically with text on the same line.
getFormEncodedValue
public static java.lang.Object getFormEncodedValue(UIXRenderingContext context,
java.lang.Object transName,
java.lang.Object value)
- Encodes a form value using the supplied transformed name for the
currently scoped form.
getFormEncodedParameter
public static java.lang.String getFormEncodedParameter(FormEncoder formEncoder,
java.lang.Object formName,
java.lang.Object transName,
java.lang.Object value)
- Encodes a client parameter using the supplied transformed name for the
specified form.
isReadOnly
public static boolean isReadOnly(UIXRenderingContext context,
UINode node)
- Return true if readOnly attribute exists and set to true
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.