|
||||||||||
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
com.sun.rave.web.ui.renderer.AddRemoveRenderer
public class AddRemoveRenderer
Renderer for a AddRemove
component.
Field Summary |
---|
Fields inherited from class com.sun.rave.web.ui.renderer.ListRendererBase |
---|
SEPARATOR, STRING_ATTRIBUTES |
Constructor Summary | |
---|---|
AddRemoveRenderer()
|
Method Summary | |
---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Decodes the value of the component |
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Overrides encodeChildren of Renderer to do nothing. |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render the list. |
protected void |
renderAvailableList(AddRemove component,
javax.faces.context.FacesContext context,
java.lang.String[] styles)
This is the base method for rendering a HTML select element. |
protected void |
renderSelectedList(AddRemove component,
javax.faces.context.FacesContext context,
java.lang.String[] styles)
This is the base method for rendering a HTML select element. |
Methods inherited from class com.sun.rave.web.ui.renderer.ListRendererBase |
---|
decode, getOnChangeJavaScript, getRendersChildren, renderHiddenValue, renderList, renderOpenEncloser |
Methods inherited from class javax.faces.render.Renderer |
---|
convertClientId, encodeBegin, getConvertedValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddRemoveRenderer()
Method Detail |
---|
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
Render the list.
encodeEnd
in class javax.faces.render.Renderer
context
- FacesContext
for the current requestcomponent
- UIComponent
to be rendered
end should be rendered
java.io.IOException
- if an input/output error occursprotected void renderAvailableList(AddRemove component, 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 void renderSelectedList(AddRemove component, 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 responsepublic void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeChildren
in class ListRendererBase
context
- The FacesContext of the requestcomponent
- The component associated with the
renderer. Must be a subclass of ListSelector.
java.io.IOException
- if something goes wrong while writing the childrenpublic void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
decode
in class ListRendererBase
context
- The FacesContext of the requestcomponent
- The component instance to be decoded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |