@Generated(value={"RichFaces CDK","4.5.0-SNAPSHOT"}) public class UIAutocomplete extends AbstractAutocomplete implements javax.faces.component.behavior.ClientBehaviorHolder, MetaComponentEncoder, MetaComponentResolver, AutocompleteProps, DisabledProps, EventsKeyProps, EventsMouseProps, FocusProps, StyleClassProps, StyleProps
The <rich:autocomplete> component is an auto-completing input-box with built-in Ajax capabilities. It supports client-side suggestions, browser-like selection, and customization of the look and feel.
Modifier and Type | Class and Description |
---|---|
protected static class |
UIAutocomplete.Properties |
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
ITEMS_META_COMPONENT_ID
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
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
META_COMPONENT_SEPARATOR_CHAR
Constructor and Description |
---|
UIAutocomplete() |
Modifier and Type | Method and Description |
---|---|
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 |
getClientFilterFunction()
A javascript function used to filter the result list returned from the ajax call to the server.
|
String |
getDefaultEventName() |
Collection<String> |
getEventNames() |
String |
getFamily() |
Object |
getFetchValue()
A value to set in the target input element on a choice suggestion that isn't shown in the suggestion table.
|
String |
getInputClass()
Assigns one or more space-separated CSS class names to the input element
|
String |
getLayout()
Type of the layout encoded using nested components should be defined using layout attribute.
|
int |
getMinChars()
Minimal number of chars in input to activate suggestion popup
|
AutocompleteMode |
getMode()
Determine how the suggestion list is requested:
|
String |
getOnbeforedomupdate()
The client-side script method to be called after the ajax response comes back, but before the DOM is updated
|
String |
getOnbegin()
The client-side script method to be called before an ajax request.
|
String |
getOnblur()
Javascript code executed when this element loses focus.
|
String |
getOnchange()
Javascript code executed when this element loses focus and its value has been modified since gaining focus.
|
String |
getOnclick()
Javascript code executed when a pointer button is clicked over this element.
|
String |
getOncomplete()
The client-side script method to be called after the DOM is updated
|
String |
getOndblclick()
Javascript code executed when a pointer button is double clicked over this element.
|
String |
getOnerror()
The client-side script method to be called when an error has occurred during Ajax communications
|
String |
getOnfocus()
Javascript code executed when this element receives focus.
|
String |
getOnkeydown()
Javascript code executed when a key is pressed down over this element.
|
String |
getOnkeypress()
Javascript code executed when a key is pressed and released over this element.
|
String |
getOnkeyup()
Javascript code executed when a key is released over this element.
|
String |
getOnlistclick()
Javascript code executed when a pointer button is clicked over the popup list element.
|
String |
getOnlistdblclick()
Javascript code executed when a pointer button is double clicked over this element.
|
String |
getOnlistkeydown()
Javascript code executed when a key is pressed down over this element.
|
String |
getOnlistkeypress()
Javascript code executed when a key is pressed and released over this element.
|
String |
getOnlistkeyup()
Javascript code executed when a key is released over this element.
|
String |
getOnlistmousedown()
Javascript code executed when a pointer button is pressed down over this element.
|
String |
getOnlistmousemove()
Javascript code executed when a pointer button is moved within this element.
|
String |
getOnlistmouseout()
Javascript code executed when a pointer button is moved away from this element.
|
String |
getOnlistmouseover()
Javascript code executed when a pointer button is moved onto this element.
|
String |
getOnlistmouseup()
Javascript code executed when a pointer button is released over this element.
|
String |
getOnmousedown()
Javascript code executed when a pointer button is pressed down over this element.
|
String |
getOnmousemove()
Javascript code executed when a pointer button is moved within this element.
|
String |
getOnmouseout()
Javascript code executed when a pointer button is moved away from this element.
|
String |
getOnmouseover()
Javascript code executed when a pointer button is moved onto this element.
|
String |
getOnmouseup()
Javascript code executed when a pointer button is released over this element.
|
String |
getOnselectitem()
Javascript code executed when an item is selected
|
String |
getPopupClass()
Assigns one or more space-separated CSS class names to the content of the popup suggestion element
|
String |
getSelectedItemClass()
Assigns one or more space-separated CSS class names to the selected suggestion entry
|
String |
getStyle()
CSS style(s) to be applied when this component is rendered.
|
String |
getStyleClass()
Space-separated list of CSS style class(es) to be applied when this element is rendered.
|
String |
getTabindex()
Position of this element in the tabbing order for the current document.
|
String |
getTokens()
Allow a user to enter multiple values separated by specific characters.
|
String |
getVar()
A request-scope attribute via which the data object for the current row will be used when iterating
|
boolean |
isAutofill()
Causes the combo-box to fill the text field box with a matching suggestion as the user types
|
boolean |
isDisabled()
Flag indicating that this element must never receive focus or be included in a subsequent submit.
|
boolean |
isSelectFirst()
Boolean value indicating whether the first suggestion item is selected as the user types
|
boolean |
isShowButton()
Boolean value indicating whether to display a button to expand the popup suggestion element
|
void |
setAutocompleteList(Object autocompleteList) |
void |
setAutocompleteMethod(javax.el.MethodExpression autocompleteMethod) |
void |
setAutocompleteMethodWithOneParameter(javax.el.MethodExpression autocompleteMethodWithOneParameter) |
void |
setAutofill(boolean autofill) |
void |
setClientFilterFunction(String clientFilterFunction) |
void |
setDisabled(boolean disabled) |
void |
setFetchValue(Object fetchValue) |
void |
setInputClass(String inputClass) |
void |
setLayout(String layout) |
void |
setMinChars(int minChars) |
void |
setMode(AutocompleteMode mode) |
void |
setOnbeforedomupdate(String onbeforedomupdate) |
void |
setOnbegin(String onbegin) |
void |
setOnblur(String onblur) |
void |
setOnchange(String onchange) |
void |
setOnclick(String onclick) |
void |
setOncomplete(String oncomplete) |
void |
setOndblclick(String ondblclick) |
void |
setOnerror(String onerror) |
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 |
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 |
setOnmousedown(String onmousedown) |
void |
setOnmousemove(String onmousemove) |
void |
setOnmouseout(String onmouseout) |
void |
setOnmouseover(String onmouseover) |
void |
setOnmouseup(String onmouseup) |
void |
setOnselectitem(String onselectitem) |
void |
setPopupClass(String popupClass) |
void |
setSelectedItemClass(String selectedItemClass) |
void |
setSelectFirst(boolean selectFirst) |
void |
setShowButton(boolean showButton) |
void |
setStyle(String style) |
void |
setStyleClass(String styleClass) |
void |
setTabindex(String tabindex) |
void |
setTokens(String tokens) |
void |
setVar(String var) |
encodeMetaComponent, getItems, getItems, resolveClientId, substituteUnresolvedClientId, visitTree
addValidator, 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, validate, validateValue
getConverter, getLocalValue, setConverter
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, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClientBehavior, getClientBehaviors
encodeMetaComponent
resolveClientId, substituteUnresolvedClientId
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public String getFamily()
getFamily
in class javax.faces.component.UIInput
public Collection<String> getEventNames()
getEventNames
in interface javax.faces.component.behavior.ClientBehaviorHolder
getEventNames
in class javax.faces.component.UIComponentBase
public String getDefaultEventName()
getDefaultEventName
in interface javax.faces.component.behavior.ClientBehaviorHolder
getDefaultEventName
in class javax.faces.component.UIComponentBase
public Object getAutocompleteList()
AutocompleteProps
getAutocompleteList
in interface AutocompleteProps
public void setAutocompleteList(Object autocompleteList)
public javax.el.MethodExpression getAutocompleteMethod()
AutocompleteProps
getAutocompleteMethod
in interface AutocompleteProps
public void setAutocompleteMethod(javax.el.MethodExpression autocompleteMethod)
setAutocompleteMethod
in interface AutocompleteProps
public javax.el.MethodExpression getAutocompleteMethodWithOneParameter()
AutocompleteProps
getAutocompleteMethodWithOneParameter
in interface AutocompleteProps
public void setAutocompleteMethodWithOneParameter(javax.el.MethodExpression autocompleteMethodWithOneParameter)
setAutocompleteMethodWithOneParameter
in interface AutocompleteProps
public boolean isAutofill()
AbstractAutocomplete
isAutofill
in class AbstractAutocomplete
public void setAutofill(boolean autofill)
public String getClientFilterFunction()
AbstractAutocomplete
A javascript function used to filter the result list returned from the ajax call to the server. This function should have two parameters; subString(current input value considering tokens) and value (currently iterated item value) and return boolean flag which means if the value satisfies the substring passed. The function will be called for every available suggestion in order to construct a new list of suggestions.
Default: A javascript method called startsWith
getClientFilterFunction
in class AbstractAutocomplete
public void setClientFilterFunction(String clientFilterFunction)
public boolean isDisabled()
DisabledProps
isDisabled
in interface DisabledProps
public void setDisabled(boolean disabled)
public Object getFetchValue()
AbstractAutocomplete
getFetchValue
in class AbstractAutocomplete
public void setFetchValue(Object fetchValue)
public String getInputClass()
AbstractAutocomplete
getInputClass
in class AbstractAutocomplete
public void setInputClass(String inputClass)
public String getLayout()
AbstractAutocomplete
Type of the layout encoded using nested components should be defined using layout attribute. Possible values are:
Default: div
getLayout
in class AbstractAutocomplete
public void setLayout(String layout)
public int getMinChars()
AutocompleteProps
getMinChars
in interface AutocompleteProps
public void setMinChars(int minChars)
public AutocompleteMode getMode()
AutocompleteProps
Determine how the suggestion list is requested:
Default: cachedAjax
getMode
in interface AutocompleteProps
public void setMode(AutocompleteMode mode)
public String getOnbeforedomupdate()
AbstractAutocomplete
getOnbeforedomupdate
in class AbstractAutocomplete
public void setOnbeforedomupdate(String onbeforedomupdate)
public String getOnbegin()
AbstractAutocomplete
getOnbegin
in class AbstractAutocomplete
public void setOnbegin(String onbegin)
public String getOnblur()
FocusProps
getOnblur
in interface FocusProps
public void setOnblur(String onblur)
public String getOnchange()
AbstractAutocomplete
getOnchange
in class AbstractAutocomplete
public void setOnchange(String onchange)
public String getOnclick()
EventsMouseProps
getOnclick
in interface EventsMouseProps
public void setOnclick(String onclick)
public String getOncomplete()
AbstractAutocomplete
getOncomplete
in class AbstractAutocomplete
public void setOncomplete(String oncomplete)
public String getOndblclick()
EventsMouseProps
getOndblclick
in interface EventsMouseProps
public void setOndblclick(String ondblclick)
public String getOnerror()
AbstractAutocomplete
getOnerror
in class AbstractAutocomplete
public void setOnerror(String onerror)
public String getOnfocus()
FocusProps
getOnfocus
in interface FocusProps
public void setOnfocus(String onfocus)
public String getOnkeydown()
EventsKeyProps
getOnkeydown
in interface EventsKeyProps
public void setOnkeydown(String onkeydown)
public String getOnkeypress()
EventsKeyProps
getOnkeypress
in interface EventsKeyProps
public void setOnkeypress(String onkeypress)
public String getOnkeyup()
EventsKeyProps
getOnkeyup
in interface EventsKeyProps
public void setOnkeyup(String onkeyup)
public String getOnlistclick()
AbstractAutocomplete
getOnlistclick
in class AbstractAutocomplete
public void setOnlistclick(String onlistclick)
public String getOnlistdblclick()
AbstractAutocomplete
getOnlistdblclick
in class AbstractAutocomplete
public void setOnlistdblclick(String onlistdblclick)
public String getOnlistkeydown()
AbstractAutocomplete
getOnlistkeydown
in class AbstractAutocomplete
public void setOnlistkeydown(String onlistkeydown)
public String getOnlistkeypress()
AbstractAutocomplete
getOnlistkeypress
in class AbstractAutocomplete
public void setOnlistkeypress(String onlistkeypress)
public String getOnlistkeyup()
AbstractAutocomplete
getOnlistkeyup
in class AbstractAutocomplete
public void setOnlistkeyup(String onlistkeyup)
public String getOnlistmousedown()
AbstractAutocomplete
getOnlistmousedown
in class AbstractAutocomplete
public void setOnlistmousedown(String onlistmousedown)
public String getOnlistmousemove()
AbstractAutocomplete
getOnlistmousemove
in class AbstractAutocomplete
public void setOnlistmousemove(String onlistmousemove)
public String getOnlistmouseout()
AbstractAutocomplete
getOnlistmouseout
in class AbstractAutocomplete
public void setOnlistmouseout(String onlistmouseout)
public String getOnlistmouseover()
AbstractAutocomplete
getOnlistmouseover
in class AbstractAutocomplete
public void setOnlistmouseover(String onlistmouseover)
public String getOnlistmouseup()
AbstractAutocomplete
getOnlistmouseup
in class AbstractAutocomplete
public void setOnlistmouseup(String onlistmouseup)
public String getOnmousedown()
EventsMouseProps
getOnmousedown
in interface EventsMouseProps
public void setOnmousedown(String onmousedown)
public String getOnmousemove()
EventsMouseProps
getOnmousemove
in interface EventsMouseProps
public void setOnmousemove(String onmousemove)
public String getOnmouseout()
EventsMouseProps
getOnmouseout
in interface EventsMouseProps
public void setOnmouseout(String onmouseout)
public String getOnmouseover()
EventsMouseProps
getOnmouseover
in interface EventsMouseProps
public void setOnmouseover(String onmouseover)
public String getOnmouseup()
EventsMouseProps
getOnmouseup
in interface EventsMouseProps
public void setOnmouseup(String onmouseup)
public String getOnselectitem()
AbstractAutocomplete
getOnselectitem
in class AbstractAutocomplete
public void setOnselectitem(String onselectitem)
public String getPopupClass()
AbstractAutocomplete
getPopupClass
in class AbstractAutocomplete
public void setPopupClass(String popupClass)
public boolean isSelectFirst()
AbstractAutocomplete
Default: true
isSelectFirst
in class AbstractAutocomplete
public void setSelectFirst(boolean selectFirst)
public String getSelectedItemClass()
AbstractAutocomplete
getSelectedItemClass
in class AbstractAutocomplete
public void setSelectedItemClass(String selectedItemClass)
public boolean isShowButton()
AbstractAutocomplete
Boolean value indicating whether to display a button to expand the popup suggestion element
Default: false
isShowButton
in class AbstractAutocomplete
public void setShowButton(boolean showButton)
public String getStyle()
StyleProps
getStyle
in interface StyleProps
public void setStyle(String style)
public String getStyleClass()
StyleClassProps
getStyleClass
in interface StyleClassProps
public void setStyleClass(String styleClass)
public String getTabindex()
FocusProps
getTabindex
in interface FocusProps
public void setTabindex(String tabindex)
public String getTokens()
AbstractAutocomplete
Allow a user to enter multiple values separated by specific characters. As the user types, a suggestion will present as normal. When they enter the specified token character, this begins a new suggestion process, and the component will then only use text entered after the token character for suggestions.
Make sure that no character defined in tokens is part of any suggestion value. E.g. do not use space as a token if you expect to allow spaces in suggestion values.
When tokens defined, they can be naturally separated by space character - input separated by tokens ', ' or ' ,' will be considered as it would be ',' token without any space.
getTokens
in class AbstractAutocomplete
public void setTokens(String tokens)
public String getVar()
AutocompleteProps
getVar
in interface AutocompleteProps
public void setVar(String var)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.