| com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer
All known Subclasses: com.icesoft.faces.component.menubar.MenuItemsRenderer, com.icesoft.faces.renderkit.dom_html_basic.OutputLinkRenderer, com.icesoft.faces.component.panelborder.PanelBorderRenderer, com.icesoft.faces.component.menubar.MenuItemRendererBase, com.icesoft.faces.component.panelseries.PanelSeriesRenderer, com.icesoft.faces.component.panelpositioned.PanelPositionedRenderer, com.icesoft.faces.renderkit.dom_html_basic.OutputMessageRenderer, com.icesoft.faces.renderkit.dom_html_basic.CommandLinkRenderer, com.icesoft.faces.component.menubar.MenuBarRenderer, com.icesoft.faces.renderkit.dom_html_basic.LinkRenderer, com.icesoft.faces.component.slider.SliderRenderer, com.icesoft.faces.renderkit.dom_html_basic.MessagesRenderer, com.icesoft.faces.component.outputdeclaration.OutputDeclarationRenderer, com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer, com.icesoft.faces.component.outputconnectionstatus.OutputConnectionStatusRenderer, com.icesoft.faces.component.style.OutputStyleRenderer, com.icesoft.faces.renderkit.dom_html_basic.DomBasicInputRenderer, com.icesoft.faces.component.tree.TreeNodeRenderer, com.icesoft.faces.component.paneltabset.PanelTabSetRenderer, com.icesoft.faces.renderkit.dom_html_basic.FormRenderer, com.icesoft.faces.component.outputchart.OutputChartRenderer, com.icesoft.faces.component.ext.renderkit.RowSelectorRenderer, com.icesoft.faces.component.effect.ApplyEffectRenderer, com.icesoft.faces.renderkit.dom_html_basic.ImageRenderer, com.icesoft.faces.renderkit.dom_html_basic.ButtonRenderer, com.icesoft.faces.renderkit.dom_html_basic.MessageRenderer, com.icesoft.faces.renderkit.dom_html_basic.TableRenderer, com.icesoft.faces.component.panelcollapsible.PanelCollapsibleRenderer, com.icesoft.faces.component.datapaginator.DataPaginatorRenderer, com.icesoft.faces.component.tree.TreeRenderer, com.icesoft.faces.component.panelstack.PanelStackRenderer, com.icesoft.faces.renderkit.dom_html_basic.GridRenderer,
DomBasicRenderer | abstract public class DomBasicRenderer extends Renderer (Code) | | |
Method Summary | |
public void | decode(FacesContext facesContext, UIComponent uiComponent) | public void | encodeEnd(FacesContext facesContext, UIComponent uiComponent) Delegate rendering to the renderEnd(..) method after validating
parameters and before maintaining the cursor position. | public static void | encodeParentAndChildren(FacesContext facesContext, UIComponent parent) Recursively render the parent UIComponent instance and its children. | String | fabricateClientId(UIComponent uiComponent, FacesContext facesContext, String uiComponentId) This method fabricates the clientId of a component. | public static UIComponent | findForComponent(FacesContext facesContext, UIComponent uiComponent) Find the UIComponent whose id is given by the for attribute of the
UIComponent parameter. | public static UIComponent | findForm(UIComponent uiComponent)
Given a UIComponent instance, recursively examine the heirarchy of parent
NamingContainers until a Form is found. | public static UIComponent | findNamingContainer(UIComponent uiComponent)
Given a UIComponent instance, recursively examine the heirarchy of parent
UIComponents until the first NamingContainer is found. | String | formatComponentValue(FacesContext facesContext, UIComponent uiComponent, Object currentValue) If the parameter UIComponent instance is a ValueHolder, return the
currentValue parameter. | protected String[] | getColumnStyleClasses(UIComponent uiComponent) | Converter | getConverterForClass(Class converterClass) | public static String[] | getExcludesArray(Set excludes) Retrieve the array of excluded attributes. | protected static UIComponent | getFacetByName(UIComponent uiComponent, String name) | static Map | getParameterMap(UIComponent uiComponent) | public static String | getResourceURL(FacesContext context, String path) | public String[] | getRowStyleClasses(UIComponent uiComponent) This method, given a component, will return an array of the component's
row classes.
Parameters: uiComponent - a String array of row classes defined in a tag attribute ordefined by default, depending on the component. | static String[] | getStyleAndStyleClass(UIComponent uiComponent, FacesMessage facesMessage) | public String[] | getStyleClasses(UIComponent uiComponent, String styleClassAttributeName) | String[] | getSummaryAndDetail(FacesMessage facesMessage) | boolean | getToolTipAttribute(UIComponent uiComponent) | String | getValue(FacesContext facesContext, UIComponent uiComponent) Get the submitted value from the UIComponent argument. | Object | getValue(UIComponent uiComponent) | static boolean | idNotNull(UIComponent uiComponent) | public static boolean | isStatic(UIComponent uiComponent) A component is static if it is disabled or readonly. | public static void | renderAttribute(UIComponent uiComponent, Element targetElement, String attrNameInComponent, String attrNameInDom) | protected void | renderEnd(FacesContext facesContext, UIComponent uiComponent, String currentValue) The common infrastructure of parameter validation and cursor management
will be provided by the encodeEnd method and rendering is delegated to
this method. | public static void | setRootElementId(FacesContext facesContext, Element rootElement, UIComponent uiComponent) Set the id of the root element of the DOMContext associated with the
UIComponent parameter. | public void | setSubmittedValue(UIComponent uiComponent, Object value) | public void | validateParameters(FacesContext facesContext, UIComponent uiComponent, Class validComponentType) Validates that the facesContext is not null, the uiComponent is not null,
and that uiComponent is assignment-compatible with the
validComponentType. |
decode | public void decode(FacesContext facesContext, UIComponent uiComponent)(Code) | | |
encodeEnd | public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException(Code) | | Delegate rendering to the renderEnd(..) method after validating
parameters and before maintaining the cursor position. The renderEnd
method should be overridden by subclasses of this class so that the
common infrastructure of parameter validation and cursor maintenance are
provided here.
|
encodeParentAndChildren | public static void encodeParentAndChildren(FacesContext facesContext, UIComponent parent) throws IOException(Code) | | Recursively render the parent UIComponent instance and its children.
Parameters: facesContext - Parameters: parent - throws: IOException - |
fabricateClientId | String fabricateClientId(UIComponent uiComponent, FacesContext facesContext, String uiComponentId)(Code) | | This method fabricates the clientId of a component. It should be used
only when the clientId of the uiComponent is required in advance of the
component existing. The uiComponentId may be provided by, for example, a
label element with a 'for' attribute defined. The for attribute will be
the id of the component that will eventually be created.
Determine the id of the nearest parental naming container and prepend it
to the id of the component's id.
Parameters: uiComponent - Parameters: facesContext - Parameters: uiComponentId - |
findForComponent | public static UIComponent findForComponent(FacesContext facesContext, UIComponent uiComponent)(Code) | | Find the UIComponent whose id is given by the for attribute of the
UIComponent parameter.
Parameters: facesContext - Parameters: uiComponent - the UIComponent associated with the component id indicated by thevalue of the for attribute of the UIComponent parameter. |
findForm | public static UIComponent findForm(UIComponent uiComponent)(Code) | |
Given a UIComponent instance, recursively examine the heirarchy of parent
NamingContainers until a Form is found.
Parameters: uiComponent - the UIComponent instance form as the UIComponent instance |
findNamingContainer | public static UIComponent findNamingContainer(UIComponent uiComponent)(Code) | |
Given a UIComponent instance, recursively examine the heirarchy of parent
UIComponents until the first NamingContainer is found.
Parameters: uiComponent - the nearest parent NamingContainer or null if none exist. |
formatComponentValue | String formatComponentValue(FacesContext facesContext, UIComponent uiComponent, Object currentValue) throws ConverterException(Code) | | If the parameter UIComponent instance is a ValueHolder, return the
currentValue parameter. If there is a converter registered with the
component then use the converter to obtain a String value.
Parameters: facesContext - Parameters: uiComponent - Parameters: currentValue - throws: ConverterException - |
getColumnStyleClasses | protected String[] getColumnStyleClasses(UIComponent uiComponent)(Code) | | |
getConverterForClass | Converter getConverterForClass(Class converterClass)(Code) | | Parameters: converterClass - |
getExcludesArray | public static String[] getExcludesArray(Set excludes)(Code) | | Retrieve the array of excluded attributes. This array should be
constructed in the renderer class and then passed in to the
PassThruAttributeRenderer.
a String array of excluded attributes. |
getFacetByName | protected static UIComponent getFacetByName(UIComponent uiComponent, String name)(Code) | | |
getParameterMap | static Map getParameterMap(UIComponent uiComponent)(Code) | | Due to the behaviour of the UIParameter class, the names in the
name-value pairs of the Map returned by this method are guaranteed to be
Strings
Parameters: uiComponent - Map the parameterMap |
getResourceURL | public static String getResourceURL(FacesContext context, String path)(Code) | | |
getRowStyleClasses | public String[] getRowStyleClasses(UIComponent uiComponent)(Code) | | This method, given a component, will return an array of the component's
row classes.
Parameters: uiComponent - a String array of row classes defined in a tag attribute ordefined by default, depending on the component. Can be azero-length array |
getStyleAndStyleClass | static String[] getStyleAndStyleClass(UIComponent uiComponent, FacesMessage facesMessage)(Code) | | Get the style and style class associated with the severity of the
FacesMessage
Parameters: uiComponent - Parameters: facesMessage - |
getStyleClasses | public String[] getStyleClasses(UIComponent uiComponent, String styleClassAttributeName)(Code) | | |
getSummaryAndDetail | String[] getSummaryAndDetail(FacesMessage facesMessage)(Code) | | Parameters: facesMessage - |
getToolTipAttribute | boolean getToolTipAttribute(UIComponent uiComponent)(Code) | | Parameters: uiComponent - |
getValue | String getValue(FacesContext facesContext, UIComponent uiComponent)(Code) | | Get the submitted value from the UIComponent argument. If the UIComponent
is not an instance of UIInput, or its getSubmittedValue()
method returns null or a non-String value, then an attempt is made to
obtain the value from the UIComponent's renderer. Conversion is performed
on a value obtained from the renderer.
Parameters: facesContext - Parameters: uiComponent - String the submitted value |
idNotNull | static boolean idNotNull(UIComponent uiComponent)(Code) | | |
isStatic | public static boolean isStatic(UIComponent uiComponent)(Code) | | A component is static if it is disabled or readonly.
Parameters: uiComponent - true if the component is disabled or readonly |
renderAttribute | public static void renderAttribute(UIComponent uiComponent, Element targetElement, String attrNameInComponent, String attrNameInDom)(Code) | |
Sets a non-null, non-empty-string, UIComponent property to the
corresponding DOM Element
Parameters: uiComponent - the source of the attribute value Parameters: targetElement - the DOM Element that will receive theattribute Parameters: attrNameInComponent - the property name in the UIComponent object Parameters: attrNameInDom - the attribute name in the DOM Element |
renderEnd | protected void renderEnd(FacesContext facesContext, UIComponent uiComponent, String currentValue) throws IOException(Code) | | The common infrastructure of parameter validation and cursor management
will be provided by the encodeEnd method and rendering is delegated to
this method. Renderers should override this method instead of encodeEnd
to provide rendering at the time of execution of the encodeEnd method.
Parameters: facesContext - Parameters: uiComponent - Parameters: currentValue - throws: IOException - |
setRootElementId | public static void setRootElementId(FacesContext facesContext, Element rootElement, UIComponent uiComponent)(Code) | | Set the id of the root element of the DOMContext associated with the
UIComponent parameter.
Parameters: facesContext - Parameters: rootElement - Parameters: uiComponent - |
setSubmittedValue | public void setSubmittedValue(UIComponent uiComponent, Object value)(Code) | | This method should be overridden by renderers for components who subclass
UIInput
Parameters: uiComponent - Parameters: value - |
validateParameters | public void validateParameters(FacesContext facesContext, UIComponent uiComponent, Class validComponentType)(Code) | | Validates that the facesContext is not null, the uiComponent is not null,
and that uiComponent is assignment-compatible with the
validComponentType. Pass a null parameter for validComponentType to avoid
any type checking.
Parameters: facesContext - Parameters: uiComponent - Parameters: validComponentType - throws: NullPointerException - if either of the facesContext or theuiComponent parameters are null orif a parent form is not found when the given UIComponentis a UIInput or UICommand,IllegalArgumentException if thevalidComponentType is not null and theuiComponent is not assignable to the giventype. |
|
|