Class SelectOneMenuRenderer
- java.lang.Object
-
- javax.faces.render.Renderer
-
- org.primefaces.renderkit.CoreRenderer
-
- org.primefaces.renderkit.InputRenderer
-
- org.primefaces.renderkit.SelectRenderer
-
- org.primefaces.renderkit.SelectOneRenderer
-
- org.primefaces.component.selectonemenu.SelectOneMenuRenderer
-
public class SelectOneMenuRenderer extends SelectOneRenderer
-
-
Field Summary
-
Fields inherited from class org.primefaces.renderkit.InputRenderer
ARIA_FILTER
-
-
Constructor Summary
Constructors Constructor Description SelectOneMenuRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected void
encodeAriaLabel(javax.faces.context.ResponseWriter writer, SelectOneMenu menu)
void
encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
protected void
encodeColumnsHeader(javax.faces.context.FacesContext context, SelectOneMenu menu, List<Column> columns)
void
encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected void
encodeFilter(javax.faces.context.FacesContext context, SelectOneMenu menu)
protected void
encodeHiddenSelect(javax.faces.context.FacesContext context, SelectOneMenu menu, String clientId, List<javax.faces.model.SelectItem> selectItems, Object values, Object submittedValues, javax.faces.convert.Converter converter)
protected void
encodeInput(javax.faces.context.FacesContext context, SelectOneMenu menu, String clientId, List<javax.faces.model.SelectItem> selectItems, Object values, Object submittedValues, javax.faces.convert.Converter converter)
protected void
encodeLabel(javax.faces.context.FacesContext context, SelectOneMenu menu, List<javax.faces.model.SelectItem> selectItems)
protected void
encodeMarkup(javax.faces.context.FacesContext context, SelectOneMenu menu)
protected void
encodeMenuIcon(javax.faces.context.FacesContext context, SelectOneMenu menu, boolean valid)
protected boolean
encodeOption(javax.faces.context.FacesContext context, SelectOneMenu menu, javax.faces.model.SelectItem option, Object values, Object submittedValues, javax.faces.convert.Converter converter, int itemIndex)
Encodes one SelectItem.protected void
encodeOptionsAsTable(javax.faces.context.FacesContext context, SelectOneMenu menu, List<javax.faces.model.SelectItem> selectItems, List<Column> columns)
protected void
encodePanel(javax.faces.context.FacesContext context, SelectOneMenu menu, List<javax.faces.model.SelectItem> selectItems)
protected void
encodePanelContent(javax.faces.context.FacesContext context, SelectOneMenu menu, List<javax.faces.model.SelectItem> selectItems)
protected void
encodePanelFooter(javax.faces.context.FacesContext context, SelectOneMenu menu)
protected void
encodeScript(javax.faces.context.FacesContext context, SelectOneMenu menu)
protected void
encodeSelectItems(javax.faces.context.FacesContext context, SelectOneMenu menu, List<javax.faces.model.SelectItem> selectItems, Object values, Object submittedValues, javax.faces.convert.Converter converter)
Object
getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object submittedValue)
String
getHighlighter()
protected String
getOptionLabel(javax.faces.model.SelectItem option)
boolean
getRendersChildren()
protected String
getSubmitParam(javax.faces.context.FacesContext context, javax.faces.component.UISelectOne selectOne)
-
Methods inherited from class org.primefaces.renderkit.SelectOneRenderer
findSelectItemByLabel, findSelectItemByValue, getSubmittedValues, getValues
-
Methods inherited from class org.primefaces.renderkit.SelectRenderer
addSelectItem, coerceToModelType, countSelectItems, countSelectItems, createSelectItem, findImplicitConverter, getOptionAsString, getSelectItems, isHideNoSelection, isSelected, isSelectValueEqual, validateSubmittedValues
-
Methods inherited from class org.primefaces.renderkit.InputRenderer
createStyleClass, createStyleClass, isDisabled, isReadOnly, renderAccessibilityAttributes, renderAccessibilityAttributes, renderAccessibilityAttributesHidden, renderARIACombobox, renderARIAInvalid, renderARIARequired, renderRTLDirection, shouldDecode
-
Methods inherited from class org.primefaces.renderkit.CoreRenderer
buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, endsWithLenghtUnit, getEventBehaviors, getResourceRequestPath, getResourceURL, getStyleBuilder, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderHiddenInput, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteId
-
-
-
-
Method Detail
-
decode
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
- Overrides:
decode
in classSelectOneRenderer
-
getConvertedValue
public Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object submittedValue) throws javax.faces.convert.ConverterException
- Overrides:
getConvertedValue
in classInputRenderer
- Throws:
javax.faces.convert.ConverterException
-
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
- Overrides:
encodeEnd
in classjavax.faces.render.Renderer
- Throws:
IOException
-
encodeMarkup
protected void encodeMarkup(javax.faces.context.FacesContext context, SelectOneMenu menu) throws IOException
- Throws:
IOException
-
encodeInput
protected void encodeInput(javax.faces.context.FacesContext context, SelectOneMenu menu, String clientId, List<javax.faces.model.SelectItem> selectItems, Object values, Object submittedValues, javax.faces.convert.Converter converter) throws IOException
- Throws:
IOException
-
encodeHiddenSelect
protected void encodeHiddenSelect(javax.faces.context.FacesContext context, SelectOneMenu menu, String clientId, List<javax.faces.model.SelectItem> selectItems, Object values, Object submittedValues, javax.faces.convert.Converter converter) throws IOException
- Throws:
IOException
-
encodeAriaLabel
protected void encodeAriaLabel(javax.faces.context.ResponseWriter writer, SelectOneMenu menu) throws IOException
- Throws:
IOException
-
encodeLabel
protected void encodeLabel(javax.faces.context.FacesContext context, SelectOneMenu menu, List<javax.faces.model.SelectItem> selectItems) throws IOException
- Throws:
IOException
-
encodeMenuIcon
protected void encodeMenuIcon(javax.faces.context.FacesContext context, SelectOneMenu menu, boolean valid) throws IOException
- Throws:
IOException
-
encodePanel
protected void encodePanel(javax.faces.context.FacesContext context, SelectOneMenu menu, List<javax.faces.model.SelectItem> selectItems) throws IOException
- Throws:
IOException
-
encodePanelContent
protected void encodePanelContent(javax.faces.context.FacesContext context, SelectOneMenu menu, List<javax.faces.model.SelectItem> selectItems) throws IOException
- Throws:
IOException
-
encodePanelFooter
protected void encodePanelFooter(javax.faces.context.FacesContext context, SelectOneMenu menu) throws IOException
- Throws:
IOException
-
encodeColumnsHeader
protected void encodeColumnsHeader(javax.faces.context.FacesContext context, SelectOneMenu menu, List<Column> columns) throws IOException
- Throws:
IOException
-
encodeOptionsAsTable
protected void encodeOptionsAsTable(javax.faces.context.FacesContext context, SelectOneMenu menu, List<javax.faces.model.SelectItem> selectItems, List<Column> columns) throws IOException
- Throws:
IOException
-
encodeScript
protected void encodeScript(javax.faces.context.FacesContext context, SelectOneMenu menu) throws IOException
- Throws:
IOException
-
encodeSelectItems
protected void encodeSelectItems(javax.faces.context.FacesContext context, SelectOneMenu menu, List<javax.faces.model.SelectItem> selectItems, Object values, Object submittedValues, javax.faces.convert.Converter converter) throws IOException
- Throws:
IOException
-
encodeOption
protected boolean encodeOption(javax.faces.context.FacesContext context, SelectOneMenu menu, javax.faces.model.SelectItem option, Object values, Object submittedValues, javax.faces.convert.Converter converter, int itemIndex) throws IOException
Encodes one SelectItem.- Returns:
- true if SelectItem is selected.
- Throws:
IOException
-
getOptionLabel
protected String getOptionLabel(javax.faces.model.SelectItem option)
-
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component) throws IOException
- Overrides:
encodeChildren
in classjavax.faces.render.Renderer
- Throws:
IOException
-
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildren
in classjavax.faces.render.Renderer
-
getSubmitParam
protected String getSubmitParam(javax.faces.context.FacesContext context, javax.faces.component.UISelectOne selectOne)
- Specified by:
getSubmitParam
in classSelectOneRenderer
-
encodeFilter
protected void encodeFilter(javax.faces.context.FacesContext context, SelectOneMenu menu) throws IOException
- Throws:
IOException
-
getHighlighter
public String getHighlighter()
- Overrides:
getHighlighter
in classCoreRenderer
-
-