|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.Renderer
com.sun.rave.web.ui.renderer.ListRendererBase
public abstract class ListRendererBase
The ListRendererBase is the base class for the listbox renderers (Drop-down Menu and Selectable List). These are both rendered using the same HTML tag (select) so a lot of the renderering functionality is shared.
Field Summary | |
---|---|
protected static java.lang.String |
SEPARATOR
|
static java.lang.String[] |
STRING_ATTRIBUTES
The list of attribute names in the HTML 4.01 Specification that correspond to the entity type %events;. |
Constructor Summary | |
---|---|
ListRendererBase()
|
Method Summary | |
---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Retrieve user input from the UI. |
protected void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String id)
Retrieve user input from the UI. |
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Overrides encodeChildren of Renderer to do nothing. |
protected java.lang.String |
getOnChangeJavaScript(ListManager component,
java.lang.String functionName,
javax.faces.context.FacesContext context)
Append the webui component's own JavaScript function at the end of any component-specific event handling code. |
boolean |
getRendersChildren()
The list is not responsible for rendering any child components, so this method returns false. |
protected void |
renderHiddenValue(javax.faces.component.UIComponent component,
javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
java.lang.String hiddenStyle)
|
protected void |
renderList(ListManager component,
java.lang.String id,
javax.faces.context.FacesContext context,
java.lang.String[] styles)
This is the base method for rendering a HTML select element. |
protected void |
renderOpenEncloser(ListManager component,
javax.faces.context.FacesContext context,
java.lang.String element,
java.lang.String hiddenStyle)
Renders the opening div tag. |
Methods inherited from class javax.faces.render.Renderer |
---|
convertClientId, encodeBegin, encodeEnd, getConvertedValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] STRING_ATTRIBUTES
The list of attribute names in the HTML 4.01 Specification that correspond to the entity type %events;.
protected static final java.lang.String SEPARATOR
Constructor Detail |
---|
public ListRendererBase()
Method Detail |
---|
public void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeChildren
in class javax.faces.render.Renderer
context
- The FacesContext of the requestcomponent
- The component associated with the
renderer. Must be a subclass of ListSelector.
java.io.IOException
protected void renderOpenEncloser(ListManager component, javax.faces.context.FacesContext context, java.lang.String element, java.lang.String hiddenStyle) throws java.io.IOException
Renders the opening div tag.
component
- The component associated with the
renderer. Must implement ListManagercontext
- The FacesContext of the requestelement
- One of "span" or "div"
java.io.IOException
- if the renderer fails to write to
the responseprotected void renderHiddenValue(javax.faces.component.UIComponent component, javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, java.lang.String hiddenStyle) throws java.io.IOException
java.io.IOException
protected void renderList(ListManager component, java.lang.String id, javax.faces.context.FacesContext context, java.lang.String[] styles) throws java.io.IOException
component
- The UI Component associated with the
renderer.context
- The FacesContext of the requeststyles
- A String array of styles used to render the
component. The first item of the array is the name of the
JavaScript method that handles change event. The second item is
the style used when the list is enabled. The third style is the
one to use when the list is disabled. The fourth item is the
style to use for an item that is enabled, the fifth to use for
an item that is disabled, and the sixth to use when the item is
selected.
java.io.IOException
- if the renderer fails to write to
the responseprotected java.lang.String getOnChangeJavaScript(ListManager component, java.lang.String functionName, javax.faces.context.FacesContext context)
component
- The ListManager for which we create the function callfunctionName
- The name of the functioncontext
- The FacesContext of this requestpublic void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
decode
in class javax.faces.render.Renderer
context
- The FacesContext of this requestcomponent
- The component associated with the rendererprotected void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String id)
context
- The FacesContext of this requestcomponent
- The component associated with the rendererid
- The DOM id of the select element which represents the
value of the listpublic boolean getRendersChildren()
getRendersChildren
in class javax.faces.render.Renderer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |