public class MenuRenderer
extends com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer
UISelectOne or UISelectMany component as a list of
menu options.| Constructor and Description |
|---|
MenuRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection |
bestGuess(Class<? extends Collection> type,
int initialSize) |
protected Collection |
cloneValue(Object value)
Utility method to invoke the the
clone method on the provided
value. |
protected Object |
coerceToModelType(javax.faces.context.FacesContext ctx,
Object value,
Class itemValueType) |
protected boolean |
containsaValue(Object valueArray) |
Object |
convertSelectManyValue(javax.faces.context.FacesContext context,
javax.faces.component.UISelectMany uiSelectMany,
String[] newValues) |
protected Object |
convertSelectManyValues(javax.faces.context.FacesContext context,
javax.faces.component.UISelectMany uiSelectMany,
Class arrayClass,
String[] newValues) |
protected Object |
convertSelectManyValuesForModel(javax.faces.context.FacesContext context,
javax.faces.component.UISelectMany uiSelectMany,
Class modelType,
String[] newValues) |
Object |
convertSelectOneValue(javax.faces.context.FacesContext context,
javax.faces.component.UISelectOne uiSelectOne,
String newValue) |
protected Collection |
createCollection(Collection collection,
Class<? extends Collection> fallBackType) |
protected Collection |
createCollectionFromHint(Object collectionTypeHint)
Create a collection from the provided hint.
|
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) |
Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object submittedValue) |
protected Object |
getCurrentSelectedValues(javax.faces.component.UIComponent component) |
protected String |
getMultipleText(javax.faces.component.UIComponent component) |
protected Object[] |
getSubmittedSelectedValues(javax.faces.component.UIComponent component) |
protected boolean |
isHideNoSelection(javax.faces.component.UIComponent component) |
protected boolean |
isSelected(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object itemValue,
Object valueArray,
javax.faces.convert.Converter converter) |
protected void |
renderHtmlFeatures(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer) |
protected boolean |
renderOption(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.component.UIComponent selectComponent,
javax.faces.convert.Converter converter,
javax.faces.model.SelectItem curItem,
Object currentSelections,
Object[] submittedValues,
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.OptionComponentInfo optionInfo) |
protected int |
renderOptions(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
com.sun.faces.renderkit.SelectItemsIterator<javax.faces.model.SelectItem> items) |
protected void |
renderSelect(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected void |
writeDefaultSize(javax.faces.context.ResponseWriter writer,
int itemCount) |
getNonOnChangeBehaviors, getNonOnClickSelectBehaviors, getValue, setSubmittedValueaugmentIdReference, convertClientId, decodeBehaviors, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, getRendersChildren, isBehaviorSource, rendererParamsNotNull, shouldDecode, shouldEncode, shouldEncodeChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessarypublic Object convertSelectManyValue(javax.faces.context.FacesContext context, javax.faces.component.UISelectMany uiSelectMany, String[] newValues) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterExceptionpublic Object convertSelectOneValue(javax.faces.context.FacesContext context, javax.faces.component.UISelectOne uiSelectOne, String newValue) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterExceptionpublic void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
decode in class com.sun.faces.renderkit.html_basic.HtmlBasicRendererpublic void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
encodeBegin in class javax.faces.render.RendererIOExceptionpublic void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
encodeEnd in class com.sun.faces.renderkit.html_basic.HtmlBasicRendererIOExceptionpublic Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object submittedValue) throws javax.faces.convert.ConverterException
getConvertedValue in class com.sun.faces.renderkit.html_basic.HtmlBasicInputRendererjavax.faces.convert.ConverterExceptionprotected Object convertSelectManyValuesForModel(javax.faces.context.FacesContext context, javax.faces.component.UISelectMany uiSelectMany, Class modelType, String[] newValues)
protected Object convertSelectManyValues(javax.faces.context.FacesContext context, javax.faces.component.UISelectMany uiSelectMany, Class arrayClass, String[] newValues) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterExceptionprotected boolean renderOption(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.component.UIComponent selectComponent,
javax.faces.convert.Converter converter,
javax.faces.model.SelectItem curItem,
Object currentSelections,
Object[] submittedValues,
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.OptionComponentInfo optionInfo)
throws IOException
IOExceptionprotected void writeDefaultSize(javax.faces.context.ResponseWriter writer,
int itemCount)
throws IOException
IOExceptionprotected boolean containsaValue(Object valueArray)
protected Object getCurrentSelectedValues(javax.faces.component.UIComponent component)
protected String getMultipleText(javax.faces.component.UIComponent component)
protected Object[] getSubmittedSelectedValues(javax.faces.component.UIComponent component)
protected boolean isSelected(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object itemValue,
Object valueArray,
javax.faces.convert.Converter converter)
protected int renderOptions(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
com.sun.faces.renderkit.SelectItemsIterator<javax.faces.model.SelectItem> items)
throws IOException
IOExceptionprotected void renderSelect(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
IOExceptionprotected void renderHtmlFeatures(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer)
throws IOException
IOExceptionprotected Object coerceToModelType(javax.faces.context.FacesContext ctx, Object value, Class itemValueType)
protected Collection createCollection(Collection collection, Class<? extends Collection> fallBackType)
collection - a Collection instancefallBackType - a fallback tyoeCollectioninstance or null if the instance
cannot be createdprotected Collection cloneValue(Object value)
Utility method to invoke the the clone method on the provided
value.
value - the value to cloneclone() or null
if the value could not be cloned or does not implement the
Cloneable interfaceprotected Collection bestGuess(Class<? extends Collection> type, int initialSize)
type - the target model typeinitialSize - the initial size of the CollectionCollection instance that best matches
typeprotected Collection createCollectionFromHint(Object collectionTypeHint)
collectionTypeHint - the Collection type as either a String or Classprotected boolean isHideNoSelection(javax.faces.component.UIComponent component)
Copyright © 2015. All rights reserved.