| com.sun.rave.web.ui.renderer.AbstractRenderer
All known Subclasses: com.sun.rave.web.ui.renderer.LegendRenderer, com.sun.rave.web.ui.renderer.RowColumnRenderer, com.sun.rave.web.ui.renderer.FrameSetRenderer, com.sun.rave.web.ui.renderer.FrameRenderer, com.sun.rave.web.ui.renderer.BreadcrumbsRenderer, com.sun.rave.web.ui.renderer.LinkRenderer, com.sun.rave.web.ui.renderer.ButtonRenderer, com.sun.rave.web.ui.renderer.MessageGroupRenderer, com.sun.rave.web.ui.renderer.HyperlinkRenderer, com.sun.rave.web.ui.renderer.PageSeparatorRenderer, com.sun.rave.web.ui.renderer.AlertRenderer, com.sun.rave.web.ui.renderer.MessageRenderer, com.sun.rave.web.ui.renderer.ImageRenderer, com.sun.rave.web.ui.renderer.AnchorRenderer, com.sun.rave.web.ui.renderer.MetaRenderer, com.sun.rave.web.ui.renderer.StaticTextRenderer, com.sun.rave.web.ui.renderer.HeadRenderer, com.sun.rave.web.ui.renderer.FormRenderer, com.sun.rave.web.ui.renderer.HelpInlineRenderer, com.sun.rave.web.ui.renderer.RbCbRendererBase, com.sun.rave.web.ui.renderer.PageAlertRenderer, com.sun.rave.web.ui.renderer.CalendarMonthRenderer, com.sun.rave.web.ui.renderer.PanelGroupRenderer, com.sun.rave.web.ui.renderer.SkipHyperlinkRenderer, com.sun.rave.web.ui.renderer.TabSetRenderer, com.sun.rave.web.ui.renderer.HtmlRenderer, com.sun.rave.web.ui.renderer.BodyRenderer, com.sun.rave.web.ui.renderer.MarkupRenderer, com.sun.rave.web.ui.renderer.PanelLayoutRenderer, com.sun.rave.web.ui.renderer.ScriptRenderer,
AbstractRenderer | abstract public class AbstractRenderer extends Renderer (Code) | | Abstract base class for concrete implementations of
javax.faces.render.Renderer for JavaServer Faces
component libraries.
|
Method Summary | |
protected void | addBooleanAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) Render any boolean attributes on the specified list that have
true values on the corresponding attribute of the
specified UIComponent . | protected void | addCoreAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String styles) Render the "core" set of attributes for this UIComponent . | protected void | addIntegerAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) Render any Integer attributes on the specified list that do not have
Integer.MIN_VALUE values on the corresponding attribute of the
specified UIComponent . | protected static void | addStringAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) Add any attributes on the specified list directly to the
specified ResponseWriter for which the specified
UIComponent has a non-null String value.
This method may be used to "pass through" commonly used attribute
name/value pairs with a minimum of code. | public void | decode(FacesContext context, UIComponent component) Decode any new state of the specified UIComponent
from the request contained in the specified FacesContext ,
and store that state on the UIComponent .
The default implementation calls setSubmittedValue()
on components that implement EditableValueHolder (i.e. | public void | encodeBegin(FacesContext context, UIComponent component) | public void | encodeChildren(FacesContext context, UIComponent component) | public void | encodeEnd(FacesContext context, UIComponent component) | protected Application | getApplication() | protected Object | getAsObject(FacesContext context, UIComponent component, String value) | protected String | getAsString(FacesContext context, UIComponent component) | protected ExternalContext | getExternalContext() | protected FacesContext | getFacesContext() | protected Object | getSubmittedValue(FacesContext context, UIComponent component) Retrieve the submitted value from the request parameters for
this request. | protected boolean | isDisabled(UIComponent component) | protected boolean | isPortlet(FacesContext context) | protected boolean | isReadOnly(UIComponent component) | protected void | renderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) Render the element attributes for the generated markup related to this
component. | protected void | renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) Render the element end for the generated markup related to this
component. | protected void | renderMarkup(FacesContext context, UIComponent component, ResponseWriter writer, Markup markup) | protected void | renderStart(FacesContext context, UIComponent component, ResponseWriter writer) Render the element start for the generated markup related to this
component. | protected void | setSubmittedValue(FacesContext context, UIComponent component) If a submitted value was included on this request, store it in the
component as appropriate.
The default implementation determines whether this component
implements EditableValueHolder . |
BUNDLE | final protected static String BUNDLE(Code) | | Base naem of the resource bundle we will use for localization.
|
EVENTS_ATTRIBUTES | final public static String EVENTS_ATTRIBUTES(Code) | | The list of attribute names in the HTML 4.01 Specification that
correspond to the entity type %events;.
|
I18N_ATTRIBUTES | final public static String I18N_ATTRIBUTES(Code) | | The list of attribute names in the HTML 4.01 Specification that
correspond to the entity type %i18n;.
|
addBooleanAttributes | protected void addBooleanAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code) | | Render any boolean attributes on the specified list that have
true values on the corresponding attribute of the
specified UIComponent . Attribute names are
converted to lower case in the rendered output.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered Parameters: names - List of attribute names to be passed through exception: IOException - if an input/output error occurs |
addCoreAttributes | protected void addCoreAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String styles) throws IOException(Code) | | Render the "core" set of attributes for this UIComponent .
The default implementation conditionally generates the following
attributes with values as specified.
- id - If this component has a non-
null
id property, and the identifier does not start with
UIViewRoot.UNIQUE_ID_PREFIX , render the
clientId .
- class - If this component has a
non-
null styleClass attribute, render its
value, combined with the syles parameter (if any).
- style - If this component has a
non-
null style attribute, render its
value.
- title - If this component has a
non-
null title attribute, render its
value.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered Parameters: styles - Space-separated list of CSS style classes to addto the class attribute, or null for none exception: IOException - if an input/output error occurs |
addIntegerAttributes | protected void addIntegerAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code) | | Render any Integer attributes on the specified list that do not have
Integer.MIN_VALUE values on the corresponding attribute of the
specified UIComponent . Attribute names are converted to
lower case in the rendered output.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered Parameters: names - List of attribute names to be passed through exception: IOException - if an input/output error occurs |
addStringAttributes | protected static void addStringAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code) | | Add any attributes on the specified list directly to the
specified ResponseWriter for which the specified
UIComponent has a non-null String value.
This method may be used to "pass through" commonly used attribute
name/value pairs with a minimum of code. Attribute names are
converted to lower case in the rendered output.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered Parameters: names - List of attribute names to be passed through exception: IOException - if an input/output error occurs |
decode | public void decode(FacesContext context, UIComponent component)(Code) | | Decode any new state of the specified UIComponent
from the request contained in the specified FacesContext ,
and store that state on the UIComponent .
The default implementation calls setSubmittedValue()
on components that implement EditableValueHolder (i.e. input fields)
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be decoded exception: NullPointerException - if context orcomponent is null |
encodeBegin | public void encodeBegin(FacesContext context, UIComponent component) throws IOException(Code) | | Render the beginning of the specified UIComponent
to the output stream or writer associated with the response we are
creating.
The default implementation calls renderStart() and
renderAttributes() .
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be decoded exception: NullPointerException - if context orcomponent is null exception: IOException - if an input/output error occurs |
encodeChildren | public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code) | | Render the children of the specified UIComponent
to the output stream or writer associated with the response we are
creating.
The default implementation iterates through the children of
this component and renders them.
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be decoded exception: NullPointerException - if context orcomponent is null exception: IOException - if an input/output error occurs |
encodeEnd | public void encodeEnd(FacesContext context, UIComponent component) throws IOException(Code) | | Render the ending of the specified UIComponent
to the output stream or writer associated with the response we are
creating.
The default implementation calls renderEnd() .
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be decoded exception: NullPointerException - if context orcomponent is null exception: IOException - if an input/output error occurs |
getApplication | protected Application getApplication()(Code) | | Return the Application instance for this
web application.
|
getAsObject | protected Object getAsObject(FacesContext context, UIComponent component, String value)(Code) | | Return the value to be stored, as an Object that has been
converted from the String representation (if necessary), or
null if the String representation is null.
Parameters: context - FacesContext for the current request Parameters: component - Component whose value is being processed(must be a component that implements ValueHolder Parameters: value - String representation of the value |
getAsString | protected String getAsString(FacesContext context, UIComponent component)(Code) | | Return the value to be rendered, as a String (converted
if necessary), or null if the value is null.
Parameters: context - FacesContext for the current request Parameters: component - Component whose value is to be retrieved (must bea component that implements ValueHolder) |
getExternalContext | protected ExternalContext getExternalContext()(Code) | | Return the ExternalContext instance for the current
request.
|
getFacesContext | protected FacesContext getFacesContext()(Code) | | Return the FacesContext instance for the current
request.
|
getSubmittedValue | protected Object getSubmittedValue(FacesContext context, UIComponent component)(Code) | | Retrieve the submitted value from the request parameters for
this request. The default implementation retrieves the parameter
value that corresponds to the client identifier of this component.
Parameters: context - FacesContext for the current request Parameters: component - UIComponent whosesubmitted value is to be retrieved |
isDisabled | protected boolean isDisabled(UIComponent component)(Code) | | Return true if the specified component is disabled.
Parameters: component - UIComponent to be checked |
isPortlet | protected boolean isPortlet(FacesContext context)(Code) | | Return true if we are we running in a portlet
environment, as opposed to a servlet based web application.
Parameters: context - FacesContext for the current request |
isReadOnly | protected boolean isReadOnly(UIComponent component)(Code) | | Return true if the specified component is read only.
Parameters: component - UIComponent to be checked |
renderAttributes | protected void renderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | Render the element attributes for the generated markup related to this
component. Simple renderers that create a single markup element
for this component should override this method and include calls to
to writeAttribute() and writeURIAttribute
on the specified ResponseWriter .
The default implementation does nothing.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered exception: IOException - if an input/output error occurs |
renderEnd | protected void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | Render the element end for the generated markup related to this
component. Simple renderers that create a single markup element
for this component should override this method and include a call
to endElement() on the specified
ResponseWriter .
The default implementation does nothing.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered exception: IOException - if an input/output error occurs |
renderMarkup | protected void renderMarkup(FacesContext context, UIComponent component, ResponseWriter writer, Markup markup) throws IOException(Code) | | Render the specified markup to the current response.
Parameters: context - FacesContext for the current request Parameters: component - UIComponent associated with this markup Parameters: writer - ResponseWriter to which the markupshould be rendered Parameters: markup - Markup to be rendered |
renderStart | protected void renderStart(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | Render the element start for the generated markup related to this
component. Simple renderers that create a single markup element
for this component should override this method and include a call
to startElement() on the specified
ResponseWriter .
The default implementation does nothing.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered exception: IOException - if an input/output error occurs |
setSubmittedValue | protected void setSubmittedValue(FacesContext context, UIComponent component)(Code) | | If a submitted value was included on this request, store it in the
component as appropriate.
The default implementation determines whether this component
implements EditableValueHolder . If so, it checks for a
request parameter with the same name as the clientId
of this UIComponent . If there is such a parameter, its
value is passed (as a String) to the setSubmittedValue()
method on the EditableValueHolder component.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored |
|
|