Class SelectOneMenu
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UIOutput
-
- javax.faces.component.UIInput
-
- javax.faces.component.UISelectOne
-
- javax.faces.component.html.HtmlSelectOneMenu
-
- org.primefaces.component.selectonemenu.SelectOneMenuBase
-
- org.primefaces.component.selectonemenu.SelectOneMenu
-
- All Implemented Interfaces:
EventListener
,javax.faces.component.behavior.ClientBehaviorHolder
,javax.faces.component.EditableValueHolder
,javax.faces.component.PartialStateHolder
,javax.faces.component.StateHolder
,javax.faces.component.TransientStateHolder
,javax.faces.component.ValueHolder
,javax.faces.event.ComponentSystemEventListener
,javax.faces.event.FacesListener
,javax.faces.event.SystemEventListenerHolder
,InputHolder
,RTLAware
,TouchAware
,Widget
public class SelectOneMenu extends SelectOneMenuBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.primefaces.component.selectonemenu.SelectOneMenuBase
SelectOneMenuBase.PropertyKeys
-
-
Field Summary
Fields Modifier and Type Field Description static String
COMPONENT_TYPE
static String
FILTER_CLASS
static String
FILTER_CONTAINER_CLASS
static String
FILTER_ICON_CLASS
static String
FOOTER_CLASS
static String
ITEM_CLASS
static String
ITEM_GROUP_CLASS
static String
ITEMS_WRAPPER_CLASS
static String
LABEL_CLASS
static String
LIST_CLASS
static String
PANEL_CLASS
static String
ROW_CLASS
static String
RTL_CLASS
static String
RTL_PANEL_CLASS
static String
STYLE_CLASS
static String
TABLE_CLASS
static String
TRIGGER_CLASS
-
Fields inherited from class org.primefaces.component.selectonemenu.SelectOneMenuBase
COMPONENT_FAMILY, DEFAULT_RENDERER
-
Fields inherited from class javax.faces.component.UIInput
ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE, CONVERSION_MESSAGE_ID, EMPTY_STRING_AS_NULL_PARAM_NAME, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
-
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
-
Fields inherited from interface org.primefaces.component.api.Widget
ATTR_WIDGET_VAR_PATTERN, CALLBACK_POST_CONSTRUCT, CALLBACK_POST_REFRESH, CALLBACK_PRE_DESTROY
-
-
Constructor Summary
Constructors Constructor Description SelectOneMenu()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Column>
getColumns()
String
getDefaultEventName()
Collection<String>
getEventNames()
String
getInputClientId()
String
getLabelledBy()
String
getValidatableInputClientId()
boolean
isDynamicLoadRequest(javax.faces.context.FacesContext context)
void
queueEvent(javax.faces.event.FacesEvent event)
void
setLabelledBy(String labelledBy)
Sets the id of the label for aria.protected void
validateValue(javax.faces.context.FacesContext context, Object value)
-
Methods inherited from class org.primefaces.component.selectonemenu.SelectOneMenuBase
getAppendTo, getDir, getFamily, getFilterFunction, getFilterMatchMode, getFilterPlaceholder, getHeight, getLabel, getLabelTemplate, getMaxlength, getPanelStyle, getPanelStyleClass, getPlaceholder, getTitle, getVar, getWidgetVar, isAlwaysDisplayLabel, isAutoWidth, isCaseSensitive, isDynamic, isEditable, isFilter, isSyncTooltip, isTouchable, setAlwaysDisplayLabel, setAppendTo, setAutoWidth, setCaseSensitive, setDir, setDynamic, setEditable, setFilter, setFilterFunction, setFilterMatchMode, setFilterPlaceholder, setHeight, setLabel, setLabelTemplate, setMaxlength, setPanelStyle, setPanelStyleClass, setPlaceholder, setSyncTooltip, setTitle, setTouchable, setVar, setWidgetVar
-
Methods inherited from class javax.faces.component.html.HtmlSelectOneMenu
getAccesskey, getDisabledClass, getEnabledClass, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRole, getStyle, getStyleClass, getTabindex, isDisabled, isReadonly, setAccesskey, setDisabled, setDisabledClass, setEnabledClass, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setReadonly, setRole, setStyle, setStyleClass, setTabindex
-
Methods inherited from class javax.faces.component.UISelectOne
getGroup, processValidators, setGroup
-
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate
-
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, setConverter
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
-
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors
-
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, setConverter
-
Methods inherited from interface org.primefaces.component.api.Widget
resolveWidgetVar, resolveWidgetVar
-
-
-
-
Field Detail
-
COMPONENT_TYPE
public static final String COMPONENT_TYPE
- See Also:
- Constant Field Values
-
STYLE_CLASS
public static final String STYLE_CLASS
- See Also:
- Constant Field Values
-
RTL_CLASS
public static final String RTL_CLASS
- See Also:
- Constant Field Values
-
LABEL_CLASS
public static final String LABEL_CLASS
- See Also:
- Constant Field Values
-
TRIGGER_CLASS
public static final String TRIGGER_CLASS
- See Also:
- Constant Field Values
-
PANEL_CLASS
public static final String PANEL_CLASS
- See Also:
- Constant Field Values
-
FOOTER_CLASS
public static final String FOOTER_CLASS
- See Also:
- Constant Field Values
-
RTL_PANEL_CLASS
public static final String RTL_PANEL_CLASS
- See Also:
- Constant Field Values
-
ITEMS_WRAPPER_CLASS
public static final String ITEMS_WRAPPER_CLASS
- See Also:
- Constant Field Values
-
LIST_CLASS
public static final String LIST_CLASS
- See Also:
- Constant Field Values
-
TABLE_CLASS
public static final String TABLE_CLASS
- See Also:
- Constant Field Values
-
ITEM_GROUP_CLASS
public static final String ITEM_GROUP_CLASS
- See Also:
- Constant Field Values
-
ITEM_CLASS
public static final String ITEM_CLASS
- See Also:
- Constant Field Values
-
ROW_CLASS
public static final String ROW_CLASS
- See Also:
- Constant Field Values
-
FILTER_CONTAINER_CLASS
public static final String FILTER_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
FILTER_CLASS
public static final String FILTER_CLASS
- See Also:
- Constant Field Values
-
FILTER_ICON_CLASS
public static final String FILTER_ICON_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEventNames
public Collection<String> getEventNames()
- Specified by:
getEventNames
in interfacejavax.faces.component.behavior.ClientBehaviorHolder
- Overrides:
getEventNames
in classjavax.faces.component.html.HtmlSelectOneMenu
-
isDynamicLoadRequest
public boolean isDynamicLoadRequest(javax.faces.context.FacesContext context)
-
getDefaultEventName
public String getDefaultEventName()
- Specified by:
getDefaultEventName
in interfacejavax.faces.component.behavior.ClientBehaviorHolder
- Overrides:
getDefaultEventName
in classjavax.faces.component.html.HtmlSelectOneMenu
-
queueEvent
public void queueEvent(javax.faces.event.FacesEvent event)
- Overrides:
queueEvent
in classjavax.faces.component.UIComponentBase
-
validateValue
protected void validateValue(javax.faces.context.FacesContext context, Object value)
- Overrides:
validateValue
in classjavax.faces.component.UISelectOne
-
getInputClientId
public String getInputClientId()
- Returns:
- Client id of the input element
-
getValidatableInputClientId
public String getValidatableInputClientId()
- Returns:
- Client id of the validatable input element
-
getLabelledBy
public String getLabelledBy()
- Returns:
- Client id of the label for aria
-
setLabelledBy
public void setLabelledBy(String labelledBy)
Description copied from interface:InputHolder
Sets the id of the label for aria.- Parameters:
labelledBy
- the id
-
-