com.sun.faces.renderkit.html_basic
Class MenuRenderer
java.lang.Object
javax.faces.render.Renderer
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer
com.sun.faces.renderkit.html_basic.MenuRenderer
- Direct Known Subclasses:
- ListboxRenderer, SelectManyCheckboxListRenderer
public class MenuRenderer
- extends HtmlBasicInputRenderer
MenuRenderer is a class that renders the current value of
UISelectOne or UISelectMany component as a list of
menu options.
Method Summary |
java.lang.Object |
convertSelectManyValue(javax.faces.context.FacesContext context,
javax.faces.component.UISelectMany uiSelectMany,
java.lang.String[] newValues)
|
protected java.lang.Object |
convertSelectManyValues(javax.faces.context.FacesContext context,
javax.faces.component.UISelectMany uiSelectMany,
java.lang.Class arrayClass,
java.lang.String[] newValues)
|
java.lang.Object |
convertSelectOneValue(javax.faces.context.FacesContext context,
javax.faces.component.UISelectOne uiSelectOne,
java.lang.String newValue)
|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
java.lang.Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object submittedValue)
|
protected void |
renderOption(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.model.SelectItem curItem)
|
protected void |
writeDefaultSize(javax.faces.context.ResponseWriter writer,
int itemCount)
|
Methods inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer |
addGenericErrorMessage, augmentIdReference, convertClientId, encodeRecursive, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getMessageIter, getParamList, getRendersChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessary |
Methods inherited from class javax.faces.render.Renderer |
encodeChildren |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MenuRenderer
public MenuRenderer()
convertSelectManyValue
public java.lang.Object convertSelectManyValue(javax.faces.context.FacesContext context,
javax.faces.component.UISelectMany uiSelectMany,
java.lang.String[] newValues)
throws javax.faces.convert.ConverterException
- Throws:
javax.faces.convert.ConverterException
convertSelectOneValue
public java.lang.Object convertSelectOneValue(javax.faces.context.FacesContext context,
javax.faces.component.UISelectOne uiSelectOne,
java.lang.String newValue)
throws javax.faces.convert.ConverterException
- Throws:
javax.faces.convert.ConverterException
decode
public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- Overrides:
decode
in class HtmlBasicRenderer
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Overrides:
encodeBegin
in class javax.faces.render.Renderer
- Throws:
java.io.IOException
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Overrides:
encodeEnd
in class HtmlBasicRenderer
- Throws:
java.io.IOException
getConvertedValue
public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object submittedValue)
throws javax.faces.convert.ConverterException
- Overrides:
getConvertedValue
in class HtmlBasicInputRenderer
- Throws:
javax.faces.convert.ConverterException
convertSelectManyValues
protected java.lang.Object convertSelectManyValues(javax.faces.context.FacesContext context,
javax.faces.component.UISelectMany uiSelectMany,
java.lang.Class arrayClass,
java.lang.String[] newValues)
throws javax.faces.convert.ConverterException
- Throws:
javax.faces.convert.ConverterException
renderOption
protected void renderOption(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.model.SelectItem curItem)
throws java.io.IOException
- Throws:
java.io.IOException
writeDefaultSize
protected void writeDefaultSize(javax.faces.context.ResponseWriter writer,
int itemCount)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.