| com.sun.rave.web.ui.renderer.ListRendererBase com.sun.rave.web.ui.renderer.AddRemoveRenderer
Method Summary | |
public void | decode(FacesContext context, UIComponent component) | public void | encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) Overrides encodeChildren of Renderer to do nothing. | public void | encodeEnd(FacesContext context, UIComponent component) Render the list. | protected void | renderAvailableList(AddRemove component, FacesContext context, String[] styles) This is the base method for rendering a HTML select
element. | void | renderListComponent(AddRemove component, FacesContext context, String[] styles) This method determines whether the component should be
rendered as a standalone list, or laid out together with a
label that was defined as part of the component.
A label will be rendered if either of the following is
true:
- The page author defined a label facet; or
- The page author specified text in the label attribute.
If there is a label, the component will be laid out using a
HTML table. | protected void | renderSelectedList(AddRemove component, FacesContext context, String[] styles) This is the base method for rendering a HTML select
element. |
decode | public void decode(FacesContext context, UIComponent component)(Code) | | Decodes the value of the component
Parameters: context - The FacesContext of the request Parameters: component - The component instance to be decoded |
encodeChildren | public void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException(Code) | | Overrides encodeChildren of Renderer to do nothing. This
renderer renders its own children, but not through this
method.
Parameters: context - The FacesContext of the request Parameters: component - The component associated with therenderer. Must be a subclass of ListSelector. throws: java.io.IOException - if something goes wrong while writing the children |
encodeEnd | public void encodeEnd(FacesContext context, UIComponent component) throws IOException(Code) | | Render the list.
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be renderedend should be rendered exception: IOException - if an input/output error occurs |
renderAvailableList | protected void renderAvailableList(AddRemove component, FacesContext context, String[] styles) throws IOException(Code) | | This is the base method for rendering a HTML select
element. This method is based on the functionality of the RI
version, so it invokes a method renderSelectItems which in term
invokes renderSelectItem. Currently, this renderer requires for
the options to be specified using the JSF SelectItem construct,
but this should be replaced with a Lockhart version, because
the JSF version lacks the ability to associate an id with the
list item. I'm not sure whether it should be possible to use
SelectItem as well yet.
Parameters: component - The UI Component associated with therenderer. Parameters: context - The FacesContext of the request Parameters: styles - A String array of styles used to render thecomponent. The first item of the array is the name of theJavaScript method that handles change event. The second item isthe style used when the list is enabled. The third style is theone to use when the list is disabled. The fourth item is thestyle to use for an item that is enabled, the fifth to use foran item that is disabled, and the sixth to use when the item isselected. throws: java.io.IOException - if the renderer fails to write tothe response |
renderListComponent | void renderListComponent(AddRemove component, FacesContext context, String[] styles) throws IOException(Code) | | This method determines whether the component should be
rendered as a standalone list, or laid out together with a
label that was defined as part of the component.
A label will be rendered if either of the following is
true:
- The page author defined a label facet; or
- The page author specified text in the label attribute.
If there is a label, the component will be laid out using a
HTML table. If not, the component will be rendered as a
standalone HTML select element.
Parameters: component - The component associated with therenderer. Must be a subclass of ListSelector. Parameters: context - The FacesContext of the request Parameters: styles - A String array of styles used to render thecomponent. The first item of the array is the name of theJavaScript method that handles change event. The second item isthe style used when the list is enabled. The third style is theone to use when the list is disabled. The fourth item is thestyle to use for an item that is enabled, the fifth to use foran item that is disabled, and the sixth to use when the item isselected. throws: java.io.IOException - if the renderer fails to write tothe response |
renderSelectedList | protected void renderSelectedList(AddRemove component, FacesContext context, String[] styles) throws IOException(Code) | | This is the base method for rendering a HTML select
element. This method is based on the functionality of the RI
version, so it invokes a method renderSelectItems which in term
invokes renderSelectItem. Currently, this renderer requires for
the options to be specified using the JSF SelectItem construct,
but this should be replaced with a Lockhart version, because
the JSF version lacks the ability to associate an id with the
list item. I'm not sure whether it should be possible to use
SelectItem as well yet.
Parameters: component - The UI Component associated with therenderer. Parameters: context - The FacesContext of the request Parameters: styles - A String array of styles used to render thecomponent. The first item of the array is the name of theJavaScript method that handles change event. The second item isthe style used when the list is enabled. The third style is theone to use when the list is disabled. The fourth item is thestyle to use for an item that is enabled, the fifth to use foran item that is disabled, and the sixth to use when the item isselected. throws: java.io.IOException - if the renderer fails to write tothe response |
Methods inherited from com.sun.rave.web.ui.renderer.ListRendererBase | public void decode(FacesContext context, UIComponent component)(Code)(Java Doc) protected void decode(FacesContext context, UIComponent component, String id)(Code)(Java Doc) public void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException(Code)(Java Doc) protected String getOnChangeJavaScript(ListManager component, String functionName, FacesContext context)(Code)(Java Doc) public boolean getRendersChildren()(Code)(Java Doc) String[] getUserInput(FacesContext context, UIComponent component)(Code)(Java Doc) void log(String s)(Code)(Java Doc) protected void renderHiddenValue(UIComponent component, FacesContext context, ResponseWriter writer, String hiddenStyle) throws IOException(Code)(Java Doc) protected void renderList(ListManager component, String id, FacesContext context, String[] styles) throws IOException(Code)(Java Doc) void renderListComponent(ListSelector component, FacesContext context, String[] styles) throws IOException(Code)(Java Doc) void renderListOption(UIComponent list, ListItem listItem, ResponseWriter writer, String[] styles) throws IOException(Code)(Java Doc) void renderListOptions(UIComponent component, Iterator optionsIterator, ResponseWriter writer, String[] styles) throws IOException(Code)(Java Doc) protected void renderOpenEncloser(ListManager component, FacesContext context, String element, String hiddenStyle) throws IOException(Code)(Java Doc) void renderReadOnlyList(ListManager component, UIComponent label, FacesContext context, String hiddenStyle) throws IOException(Code)(Java Doc) void renderSeparator(UIComponent component, ResponseWriter writer, String style) throws IOException(Code)(Java Doc)
|
|
|