| com.sun.rave.web.ui.renderer.AbstractRenderer com.sun.rave.web.ui.renderer.RowColumnRenderer com.sun.rave.web.ui.renderer.SelectorGroupRenderer
All known Subclasses: com.sun.rave.web.ui.renderer.RadioButtonGroupRenderer, com.sun.rave.web.ui.renderer.CheckboxGroupRenderer,
SelectorGroupRenderer | abstract class SelectorGroupRenderer extends RowColumnRenderer (Code) | | The SelectorGroupRenderer is the abstract base class for
RadioButtonGroupRenderer and
CheckboxGroupRenderer . It provides
common behavior for driving the
RowColumnRenderer superclass.
Its decode method provides decoding for both
CheckboxGroup
and RadioButtonGroup components. It decodes the value as a
String[] for both components. For CheckboxGroup
components this an array of possibly 0 or more elements. For
the RadioButtonGroup component the value is decoded as a
String[] of at least one element.
|
Field Summary | |
final protected static int | GRP The define constant indicating the style class
for the top level TABLE element. | final protected static int | GRP_CAPTION The define constant indicating the style class
for the CSS table CAPTION (a CELL element). | final protected static int | GRP_CELL_EVEN The define constant indicating the style class
for the even cells. | final protected static int | GRP_CELL_ODD The define constant indicating the style class
for the odd cells. | final protected static int | GRP_LABEL The define constant indicating the style class
for a disabled CSS table CAPTION (a LABEL) element. | final protected static int | GRP_LABEL_DIS The define constant indicating the style class
for a disabled CSS table CAPTION (a LABEL) element. | final protected static int | GRP_ROW_EVEN The define constant indicating the style class
for the even rows. | final protected static int | GRP_ROW_ODD The define constant indicating the style class
for the odd rows. | final protected static int | IMAGE The define constant indicating the style class
for the IMG element. | final protected static int | IMAGE_DIS The define constant indicating the style class
for a disabled IMG element. | final protected static int | INPUT The define constant indicating the style class
for an INPUT element. | final protected static int | INPUT_DIS The define constant indicating the style class
for a disabled INPUT element. | final protected static int | LABEL The define constant indicating the style class
for the LABEL element. | final protected static int | LABEL_DIS The define constant indicating the style class
for a disabled LABEL element. | final protected static int | LABEL_LVL1 The define constant indicating the label level style class
for a LABEL element. | final protected static int | LABEL_LVL2 The define constant indicating the label level style class
for a LABEL element. | final protected static int | LABEL_LVL3 The define constant indicating the label level style class
for a LABEL element. | final protected static int | LABEL_LVL_DEF The define constant indicating the default label level style class
for a LABEL element. |
Method Summary | |
public void | decode(FacesContext context, UIComponent component) Decode the RadioButtonGroup or
CheckboxGroup selection. | public void | encodeChildren(FacesContext context, UIComponent component) Render the child components of this UIComponent, following the rules
described for encodeBegin() to acquire the appropriate value to be
rendered. | protected Option[] | getItems(Selector selector) | final protected String | getRowColumnStyle(Theme theme, int styleCode) Pass on the style request from the
com.sun.rave.web.ui.renderer.RowColumnRenderer to
the SelectorGroupRenderer subclass. | abstract protected UIComponent | getSelectorComponent(FacesContext context, UIComponent component, Theme theme, String id, Option option) Implemented in the subclass to return the UIComponent for a
control in the group. | protected String | getStyle(Theme theme, int styleCode, int styleLevelCode) | abstract protected String[] | getStyles() Return style constants for the controls in the group. | protected void | renderCaption(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) Called by the RowColumnRenderer superclass when the
group label should be rendered. | protected void | renderCellContent(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int itemN) | protected void | renderEmptyCell(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) Called from the renderCellContent method implemented
in the sublclass when there are no more controls to render. | protected void | renderSelectorGroup(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int columns) Called from the renderEnd method of the subclass to begin
rendering the component. | protected void | transferEventAttributes(Selector group, RbCbSelector rbcb) |
GRP | final protected static int GRP(Code) | | The define constant indicating the style class
for the top level TABLE element.
|
GRP_CAPTION | final protected static int GRP_CAPTION(Code) | | The define constant indicating the style class
for the CSS table CAPTION (a CELL element).
|
GRP_CELL_EVEN | final protected static int GRP_CELL_EVEN(Code) | | The define constant indicating the style class
for the even cells.
|
GRP_CELL_ODD | final protected static int GRP_CELL_ODD(Code) | | The define constant indicating the style class
for the odd cells.
|
GRP_LABEL | final protected static int GRP_LABEL(Code) | | The define constant indicating the style class
for a disabled CSS table CAPTION (a LABEL) element.
|
GRP_LABEL_DIS | final protected static int GRP_LABEL_DIS(Code) | | The define constant indicating the style class
for a disabled CSS table CAPTION (a LABEL) element.
|
GRP_ROW_EVEN | final protected static int GRP_ROW_EVEN(Code) | | The define constant indicating the style class
for the even rows.
|
GRP_ROW_ODD | final protected static int GRP_ROW_ODD(Code) | | The define constant indicating the style class
for the odd rows.
|
IMAGE | final protected static int IMAGE(Code) | | The define constant indicating the style class
for the IMG element.
|
IMAGE_DIS | final protected static int IMAGE_DIS(Code) | | The define constant indicating the style class
for a disabled IMG element.
|
INPUT | final protected static int INPUT(Code) | | The define constant indicating the style class
for an INPUT element.
|
INPUT_DIS | final protected static int INPUT_DIS(Code) | | The define constant indicating the style class
for a disabled INPUT element.
|
LABEL | final protected static int LABEL(Code) | | The define constant indicating the style class
for the LABEL element.
|
LABEL_DIS | final protected static int LABEL_DIS(Code) | | The define constant indicating the style class
for a disabled LABEL element.
|
LABEL_LVL1 | final protected static int LABEL_LVL1(Code) | | The define constant indicating the label level style class
for a LABEL element.
|
LABEL_LVL2 | final protected static int LABEL_LVL2(Code) | | The define constant indicating the label level style class
for a LABEL element.
|
LABEL_LVL3 | final protected static int LABEL_LVL3(Code) | | The define constant indicating the label level style class
for a LABEL element.
|
LABEL_LVL_DEF | final protected static int LABEL_LVL_DEF(Code) | | The define constant indicating the default label level style class
for a LABEL element.
|
SelectorGroupRenderer | public SelectorGroupRenderer()(Code) | | Creates a new instance of SelectorGroupRenderer
|
decode | public void decode(FacesContext context, UIComponent component)(Code) | | Decode the RadioButtonGroup or
CheckboxGroup selection.
If the component clientId is found as a request parameter, which is
rendered as the value of the name attribute of
the INPUT elements of type radio or checkbox, the String[]
value is assigned as the submitted value on the component.
In the case of a CheckboxGroup component the array may
have zero or more elements. In the case of RadioButtonGroup
there is always only one element.
If the component clientId is not found as a request parameter a
String[0] is assigned as the submitted value,
meaning that this is a CheckboxGroup component with no
check boxes selected.
Parameters: context - FacesContext for the request we are processing. Parameters: component - The RadioButtonGroup component to be decoded. |
encodeChildren | public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code) | | Render the child components of this UIComponent, following the rules
described for encodeBegin() to acquire the appropriate value to be
rendered. This method will only be called if the rendersChildren property
of this component is true.
Parameters: context - FacesContext for the request we are processing. Parameters: component - UIComponent to be decoded. |
getRowColumnStyle | final protected String getRowColumnStyle(Theme theme, int styleCode)(Code) | | Pass on the style request from the
com.sun.rave.web.ui.renderer.RowColumnRenderer to
the SelectorGroupRenderer subclass.
Parameters: theme - Theme for the request we are processing. Parameters: styleCode - the desired style class constant |
getSelectorComponent | abstract protected UIComponent getSelectorComponent(FacesContext context, UIComponent component, Theme theme, String id, Option option)(Code) | | Implemented in the subclass to return the UIComponent for a
control in the group.
Parameters: context - FacesContext for the request we are processing. Parameters: component - The RadioButtonGroup component to be decoded. Parameters: theme - Theme for the request we are processing. Parameters: id - the new component's id. Parameters: option - the Option being rendered. |
getStyle | protected String getStyle(Theme theme, int styleCode, int styleLevelCode)(Code) | | Return the style class name and level for the structural element
indicated by styleCode
Parameters: styleCode - identifies the style class for the element aboutto be rendered. Parameters: styleLevelCode - identifies the style class level for the element about to be rendered. |
getStyles | abstract protected String[] getStyles()(Code) | | Return style constants for the controls in the group.
The getStyles method is implemented by subclasses
to return a String[] of style constants as
defined in ThemeStyles
in an order defined by the constants in this class.
|
renderCaption | protected void renderCaption(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) throws IOException(Code) | | Called by the RowColumnRenderer superclass when the
group label should be rendered.
Parameters: context - FacesContext for the request we are processing. Parameters: component - UIComponent to be decoded. Parameters: theme - Theme for the request we are processing. Parameters: writer - ResponseWriter to which the HTML willbe output |
renderCellContent | protected void renderCellContent(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int itemN) throws IOException(Code) | | |
renderEmptyCell | protected void renderEmptyCell(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) throws IOException(Code) | | Called from the renderCellContent method implemented
in the sublclass when there are no more controls to render.
Parameters: context - FacesContext for the request we are processing. Parameters: component - UIComponent to be decoded. Parameters: theme - Theme for the request we are processing. Parameters: writer - ResponseWriter to which the HTML willbe output |
renderSelectorGroup | protected void renderSelectorGroup(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int columns) throws IOException(Code) | | Called from the renderEnd method of the subclass to begin
rendering the component.
Parameters: context - FacesContext for the request we are processing. Parameters: component - UIComponent to be decoded. Parameters: writer - ResponseWriter to which the HTML willbe output Parameters: columns - the number of columns to use when rendering the controls |
Methods inherited from com.sun.rave.web.ui.renderer.RowColumnRenderer | abstract protected String getRowColumnStyle(Theme theme, int styleCode)(Code)(Java Doc) abstract protected void renderCaption(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) throws IOException(Code)(Java Doc) abstract protected void renderCellContent(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int itemN) throws IOException(Code)(Java Doc) protected void renderRowColumnLayout(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int rows, int columns) throws IOException(Code)(Java Doc)
|
Methods inherited from com.sun.rave.web.ui.renderer.AbstractRenderer | protected void addBooleanAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc) protected void addCoreAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String styles) throws IOException(Code)(Java Doc) protected void addIntegerAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc) protected static void addStringAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc) public void decode(FacesContext context, UIComponent component)(Code)(Java Doc) public void encodeBegin(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) public void encodeEnd(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) protected Application getApplication()(Code)(Java Doc) protected Object getAsObject(FacesContext context, UIComponent component, String value)(Code)(Java Doc) protected String getAsString(FacesContext context, UIComponent component)(Code)(Java Doc) protected ExternalContext getExternalContext()(Code)(Java Doc) protected FacesContext getFacesContext()(Code)(Java Doc) protected Object getSubmittedValue(FacesContext context, UIComponent component)(Code)(Java Doc) protected boolean isDisabled(UIComponent component)(Code)(Java Doc) protected boolean isPortlet(FacesContext context)(Code)(Java Doc) protected boolean isReadOnly(UIComponent component)(Code)(Java Doc) protected void renderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc) protected void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc) protected void renderMarkup(FacesContext context, UIComponent component, ResponseWriter writer, Markup markup) throws IOException(Code)(Java Doc) protected void renderStart(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc) protected void setSubmittedValue(FacesContext context, UIComponent component)(Code)(Java Doc)
|
|
|