org.richfaces.component
@Generated(value={"RichFaces CDK","4.3.1.Final-redhat-1"}) public class UISelect extends AbstractSelect implements javax.faces.component.behavior.ClientBehaviorHolder, org.richfaces.component.MetaComponentEncoder, org.richfaces.component.MetaComponentResolver, AutocompleteProps, org.richfaces.component.attribute.CoreProps, org.richfaces.component.attribute.DisabledProps, org.richfaces.component.attribute.EventsKeyProps, org.richfaces.component.attribute.EventsMouseProps, org.richfaces.component.attribute.SelectItemsProps, org.richfaces.component.attribute.SelectProps, org.richfaces.component.util.SelectItemsInterface
The <rich:select> component provides a drop-down list box for selecting a single value from multiple options. The <rich:select> component can be configured as a combo-box, where it will accept typed input. The component also supports keyboard navigation. The <rich:select> component functions similarly to the JSF UISelectOne component.
The <rich:select> can optionally be used in an auto-completing mode, where the values in the drop-down list are provided dynamically using either the autocompleteMethod or autocompleteList attributes. If these attributes are omitted, the component operates in the traditional non-auto-completing mode. Refer to the individual attribute documentation to see which attributes are applicable only with an auto-completing select list.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
UISelect.Properties |
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
ITEMS_META_COMPONENT_IDCONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME| Constructor and Description |
|---|
UISelect() |
| Modifier and Type | Method and Description |
|---|---|
String |
getActiveClass() |
Object |
getAutocompleteList()
A collection of suggestions that will be provided to the user
|
javax.el.MethodExpression |
getAutocompleteMethod()
A method which provides a list of suggestions according to a user-provided filtering value
|
javax.el.MethodExpression |
getAutocompleteMethodWithOneParameter()
Workaround for RF-11469
|
String |
getChangedClass() |
String |
getClientFilterFunction()
A javascript function used to filter the list of items in the select popup
|
String |
getDefaultEventName() |
String |
getDefaultLabel() |
String |
getDisabledClass() |
Collection<String> |
getEventNames() |
String |
getFamily() |
String |
getItemClass() |
Object |
getItemLabel()
Label to be displayed to the user for the corresponding option.
|
Object |
getItemValue()
Value to be returned to the server if the corresponding option is selected by the user.
|
String |
getListClass() |
String |
getListHeight() |
String |
getListWidth() |
String |
getMaxListHeight()
The maximum height of the list
|
int |
getMinChars()
Minimal number of chars in input to activate suggestion popup
|
String |
getMinListHeight()
The minimum height ot the list
|
AutocompleteMode |
getMode()
Determine how the suggestion list is requested:
|
String |
getOnblur() |
String |
getOnchange()
Javascript code executed when the list element loses focus and its value has been modified since gaining focus.
|
String |
getOnclick() |
String |
getOndblclick() |
String |
getOnfocus() |
String |
getOnkeydown() |
String |
getOnkeypress() |
String |
getOnkeyup() |
String |
getOnlistclick()
Javascript code executed when a pointer button is clicked over the list element.
|
String |
getOnlistdblclick()
Javascript code executed when a pointer button is double clicked over the list element.
|
String |
getOnlisthide()
Javascript code executed when the list element is hidden
|
String |
getOnlistkeydown()
Javascript code executed when a key is pressed down over the list element.
|
String |
getOnlistkeypress()
Javascript code executed when a key is pressed and released over the list element.
|
String |
getOnlistkeyup()
Javascript code executed when a key is released over the list element.
|
String |
getOnlistmousedown()
Javascript code executed when a pointer button is pressed down over the list element.
|
String |
getOnlistmousemove()
Javascript code executed when a pointer button is moved within the list element.
|
String |
getOnlistmouseout()
Javascript code executed when a pointer button is moved away from the list element.
|
String |
getOnlistmouseover()
Javascript code executed when a pointer button is moved onto the list element.
|
String |
getOnlistmouseup()
Javascript code executed when a pointer button is released over the list element.
|
String |
getOnlistshow()
Javascript code executed when the list element is shown
|
String |
getOnmousedown() |
String |
getOnmousemove() |
String |
getOnmouseout() |
String |
getOnmouseover() |
String |
getOnmouseup() |
String |
getOnselectitem()
Javascript code executed when an item is selected
|
String |
getSelectItemClass() |
String |
getStyle() |
String |
getStyleClass() |
String |
getTabindex() |
String |
getTitle() |
String |
getVar()
Expose the values from either the autocompleteList or autocompleteMethod attributes under a request scoped key so that the values may be referred to in an EL expression while rendering this component.
|
boolean |
isDisabled() |
boolean |
isEnableManualInput()
If "true" Allows the user to type into a text field to scroll through or filter the list.
|
boolean |
isSelectFirst()
If "true" as the user types to narrow the list, automatically select the first element in the list.
|
boolean |
isShowButton()
When "true" display a button to expand the popup list
|
void |
setActiveClass(String activeClass) |
void |
setAutocompleteList(Object autocompleteList) |
void |
setAutocompleteMethod(javax.el.MethodExpression autocompleteMethod) |
void |
setAutocompleteMethodWithOneParameter(javax.el.MethodExpression autocompleteMethodWithOneParameter) |
void |
setChangedClass(String changedClass) |
void |
setClientFilterFunction(String clientFilterFunction) |
void |
setDefaultLabel(String defaultLabel) |
void |
setDisabled(boolean disabled) |
void |
setDisabledClass(String disabledClass) |
void |
setEnableManualInput(boolean enableManualInput) |
void |
setItemClass(String itemClass) |
void |
setItemLabel(Object itemLabel) |
void |
setItemValue(Object itemValue) |
void |
setListClass(String listClass) |
void |
setListHeight(String listHeight) |
void |
setListWidth(String listWidth) |
void |
setMaxListHeight(String maxListHeight) |
void |
setMinChars(int minChars) |
void |
setMinListHeight(String minListHeight) |
void |
setMode(AutocompleteMode mode) |
void |
setOnblur(String onblur) |
void |
setOnchange(String onchange) |
void |
setOnclick(String onclick) |
void |
setOndblclick(String ondblclick) |
void |
setOnfocus(String onfocus) |
void |
setOnkeydown(String onkeydown) |
void |
setOnkeypress(String onkeypress) |
void |
setOnkeyup(String onkeyup) |
void |
setOnlistclick(String onlistclick) |
void |
setOnlistdblclick(String onlistdblclick) |
void |
setOnlisthide(String onlisthide) |
void |
setOnlistkeydown(String onlistkeydown) |
void |
setOnlistkeypress(String onlistkeypress) |
void |
setOnlistkeyup(String onlistkeyup) |
void |
setOnlistmousedown(String onlistmousedown) |
void |
setOnlistmousemove(String onlistmousemove) |
void |
setOnlistmouseout(String onlistmouseout) |
void |
setOnlistmouseover(String onlistmouseover) |
void |
setOnlistmouseup(String onlistmouseup) |
void |
setOnlistshow(String onlistshow) |
void |
setOnmousedown(String onmousedown) |
void |
setOnmousemove(String onmousemove) |
void |
setOnmouseout(String onmouseout) |
void |
setOnmouseover(String onmouseover) |
void |
setOnmouseup(String onmouseup) |
void |
setOnselectitem(String onselectitem) |
void |
setSelectFirst(boolean selectFirst) |
void |
setSelectItemClass(String selectItemClass) |
void |
setShowButton(boolean showButton) |
void |
setStyle(String style) |
void |
setStyleClass(String styleClass) |
void |
setTabindex(String tabindex) |
void |
setTitle(String title) |
void |
setVar(String var) |
encodeMetaComponent, getItemValues, processEvent, resolveClientId, substituteUnresolvedClientId, validateValue, visitTreeaddValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validategetConverter, getLocalValue, setConverteraddClientBehavior, addFacesListener, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpressionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddClientBehavior, getClientBehaviorspublic static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public String getFamily()
getFamily in class javax.faces.component.UISelectOnepublic Collection<String> getEventNames()
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHoldergetEventNames in class javax.faces.component.UIComponentBasepublic String getDefaultEventName()
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHoldergetDefaultEventName in class javax.faces.component.UIComponentBasepublic String getActiveClass()
getActiveClass in interface org.richfaces.component.attribute.SelectPropsgetActiveClass in class AbstractSelectpublic void setActiveClass(String activeClass)
public Object getAutocompleteList()
AutocompletePropsgetAutocompleteList in interface AutocompletePropspublic void setAutocompleteList(Object autocompleteList)
public javax.el.MethodExpression getAutocompleteMethod()
AutocompletePropsgetAutocompleteMethod in interface AutocompletePropspublic void setAutocompleteMethod(javax.el.MethodExpression autocompleteMethod)
setAutocompleteMethod in interface AutocompletePropspublic javax.el.MethodExpression getAutocompleteMethodWithOneParameter()
AutocompletePropsgetAutocompleteMethodWithOneParameter in interface AutocompletePropspublic void setAutocompleteMethodWithOneParameter(javax.el.MethodExpression autocompleteMethodWithOneParameter)
setAutocompleteMethodWithOneParameter in interface AutocompletePropspublic String getChangedClass()
getChangedClass in interface org.richfaces.component.attribute.SelectPropsgetChangedClass in class AbstractSelectpublic void setChangedClass(String changedClass)
public String getClientFilterFunction()
AbstractSelectgetClientFilterFunction in class AbstractSelectpublic void setClientFilterFunction(String clientFilterFunction)
public String getDefaultLabel()
getDefaultLabel in interface org.richfaces.component.attribute.SelectPropspublic void setDefaultLabel(String defaultLabel)
public boolean isDisabled()
isDisabled in interface org.richfaces.component.attribute.DisabledPropspublic void setDisabled(boolean disabled)
public String getDisabledClass()
getDisabledClass in interface org.richfaces.component.attribute.SelectPropsgetDisabledClass in class AbstractSelectpublic void setDisabledClass(String disabledClass)
public boolean isEnableManualInput()
AbstractSelectIf "true" Allows the user to type into a text field to scroll through or filter the list. Implicitly true when using an auto-completing select list.
Default is "false"
isEnableManualInput in class AbstractSelectpublic void setEnableManualInput(boolean enableManualInput)
public String getItemClass()
getItemClass in interface org.richfaces.component.attribute.SelectPropspublic void setItemClass(String itemClass)
public Object getItemLabel()
AbstractSelectgetItemLabel in interface org.richfaces.component.attribute.SelectItemsPropsgetItemLabel in class AbstractSelectpublic void setItemLabel(Object itemLabel)
public Object getItemValue()
AbstractSelectgetItemValue in interface org.richfaces.component.attribute.SelectItemsPropsgetItemValue in class AbstractSelectpublic void setItemValue(Object itemValue)
public String getListClass()
getListClass in interface org.richfaces.component.attribute.SelectPropspublic void setListClass(String listClass)
public String getListHeight()
getListHeight in interface org.richfaces.component.attribute.SelectPropspublic void setListHeight(String listHeight)
public String getListWidth()
getListWidth in interface org.richfaces.component.attribute.SelectPropspublic void setListWidth(String listWidth)
public String getMaxListHeight()
AbstractSelectgetMaxListHeight in class AbstractSelectpublic void setMaxListHeight(String maxListHeight)
public int getMinChars()
AutocompletePropsgetMinChars in interface AutocompletePropspublic void setMinChars(int minChars)
public String getMinListHeight()
AbstractSelectgetMinListHeight in class AbstractSelectpublic void setMinListHeight(String minListHeight)
public AutocompleteMode getMode()
AutocompletePropsDetermine how the suggestion list is requested:
Default: cachedAjax
getMode in interface AutocompletePropspublic void setMode(AutocompleteMode mode)
public String getOnblur()
getOnblur in interface org.richfaces.component.attribute.FocusPropspublic void setOnblur(String onblur)
public String getOnchange()
AbstractSelectComponentgetOnchange in class AbstractSelectComponentpublic void setOnchange(String onchange)
public String getOnclick()
getOnclick in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnclick(String onclick)
public String getOndblclick()
getOndblclick in interface org.richfaces.component.attribute.EventsMousePropspublic void setOndblclick(String ondblclick)
public String getOnfocus()
getOnfocus in interface org.richfaces.component.attribute.FocusPropspublic void setOnfocus(String onfocus)
public String getOnkeydown()
getOnkeydown in interface org.richfaces.component.attribute.EventsKeyPropspublic void setOnkeydown(String onkeydown)
public String getOnkeypress()
getOnkeypress in interface org.richfaces.component.attribute.EventsKeyPropspublic void setOnkeypress(String onkeypress)
public String getOnkeyup()
getOnkeyup in interface org.richfaces.component.attribute.EventsKeyPropspublic void setOnkeyup(String onkeyup)
public String getOnlistclick()
AbstractSelectComponentgetOnlistclick in class AbstractSelectComponentpublic void setOnlistclick(String onlistclick)
public String getOnlistdblclick()
AbstractSelectComponentgetOnlistdblclick in class AbstractSelectComponentpublic void setOnlistdblclick(String onlistdblclick)
public String getOnlisthide()
AbstractSelectComponentgetOnlisthide in class AbstractSelectComponentpublic void setOnlisthide(String onlisthide)
public String getOnlistkeydown()
AbstractSelectComponentgetOnlistkeydown in class AbstractSelectComponentpublic void setOnlistkeydown(String onlistkeydown)
public String getOnlistkeypress()
AbstractSelectComponentgetOnlistkeypress in class AbstractSelectComponentpublic void setOnlistkeypress(String onlistkeypress)
public String getOnlistkeyup()
AbstractSelectComponentgetOnlistkeyup in class AbstractSelectComponentpublic void setOnlistkeyup(String onlistkeyup)
public String getOnlistmousedown()
AbstractSelectComponentgetOnlistmousedown in class AbstractSelectComponentpublic void setOnlistmousedown(String onlistmousedown)
public String getOnlistmousemove()
AbstractSelectComponentgetOnlistmousemove in class AbstractSelectComponentpublic void setOnlistmousemove(String onlistmousemove)
public String getOnlistmouseout()
AbstractSelectComponentgetOnlistmouseout in class AbstractSelectComponentpublic void setOnlistmouseout(String onlistmouseout)
public String getOnlistmouseover()
AbstractSelectComponentgetOnlistmouseover in class AbstractSelectComponentpublic void setOnlistmouseover(String onlistmouseover)
public String getOnlistmouseup()
AbstractSelectComponentgetOnlistmouseup in class AbstractSelectComponentpublic void setOnlistmouseup(String onlistmouseup)
public String getOnlistshow()
AbstractSelectComponentgetOnlistshow in class AbstractSelectComponentpublic void setOnlistshow(String onlistshow)
public String getOnmousedown()
getOnmousedown in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnmousedown(String onmousedown)
public String getOnmousemove()
getOnmousemove in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnmousemove(String onmousemove)
public String getOnmouseout()
getOnmouseout in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnmouseout(String onmouseout)
public String getOnmouseover()
getOnmouseover in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnmouseover(String onmouseover)
public String getOnmouseup()
getOnmouseup in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnmouseup(String onmouseup)
public String getOnselectitem()
AbstractSelectComponentgetOnselectitem in class AbstractSelectComponentpublic void setOnselectitem(String onselectitem)
public boolean isSelectFirst()
AbstractSelectIf "true" as the user types to narrow the list, automatically select the first element in the list. Applicable only when enableManualInput is "true".
Default is "true"
isSelectFirst in class AbstractSelectpublic void setSelectFirst(boolean selectFirst)
public String getSelectItemClass()
getSelectItemClass in interface org.richfaces.component.attribute.SelectPropspublic void setSelectItemClass(String selectItemClass)
public boolean isShowButton()
AbstractSelectWhen "true" display a button to expand the popup list
Default is "true"
isShowButton in class AbstractSelectpublic void setShowButton(boolean showButton)
public String getStyle()
getStyle in interface org.richfaces.component.attribute.CorePropspublic void setStyle(String style)
public String getStyleClass()
getStyleClass in interface org.richfaces.component.attribute.CorePropspublic void setStyleClass(String styleClass)
public String getTabindex()
getTabindex in interface org.richfaces.component.attribute.FocusPropspublic void setTabindex(String tabindex)
public String getTitle()
getTitle in interface org.richfaces.component.attribute.CorePropspublic void setTitle(String title)
public String getVar()
AbstractSelectgetVar in interface AutocompletePropsgetVar in interface org.richfaces.component.attribute.SelectItemsPropsgetVar in class AbstractSelectpublic void setVar(String var)
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.