org.primefaces.component.autocomplete
Class AutoComplete

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.UIInput
                  extended by javax.faces.component.html.HtmlInputText
                      extended by org.primefaces.component.autocomplete.AutoComplete
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, Widget

public class AutoComplete
extends javax.faces.component.html.HtmlInputText
implements Widget, InputHolder


Nested Class Summary
protected static class AutoComplete.PropertyKeys
           
 
Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
static String DROPDOWN_ICON_CLASS
           
static String INPUT_CLASS
           
static String INPUT_WITH_DROPDOWN_CLASS
           
static String ITEM_CLASS
           
static String ITEMTIP_CONTENT_CLASS
           
static String LIST_CLASS
           
static String MULTIPLE_CONTAINER_CLASS
           
static String MULTIPLE_STYLE_CLASS
           
static String PANEL_CLASS
           
static String ROW_CLASS
           
static String STYLE_CLASS
           
static String TABLE_CLASS
           
static String TOKEN_DISPLAY_CLASS
           
static String TOKEN_ICON_CLASS
           
static String TOKEN_INPUT_CLASS
           
static String TOKEN_LABEL_CLASS
           
 
Fields inherited from class javax.faces.component.UIInput
CONVERSION_MESSAGE_ID, 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
 
Constructor Summary
AutoComplete()
           
 
Method Summary
 void broadcast(javax.faces.event.FacesEvent event)
           
 int getCacheTimeout()
           
 List<Column> getColums()
           
 javax.el.MethodExpression getCompleteMethod()
           
 String getEffect()
           
 int getEffectDuration()
           
 String getEmptyMessage()
           
 Collection<String> getEventNames()
           
 String getFamily()
           
 String getInputClientId()
           
 String getItemLabel()
           
 String getItemtipAtPosition()
           
 String getItemtipMyPosition()
           
 Object getItemValue()
           
 int getMaxResults()
           
 int getMinQueryLength()
           
 String getPanelStyle()
           
 String getPanelStyleClass()
           
 String getPlaceholder()
           
 int getQueryDelay()
           
 int getScrollHeight()
           
 List getSuggestions()
           
 String getVar()
           
 String getWidgetVar()
           
 boolean isCache()
           
 boolean isDropdown()
           
 boolean isForceSelection()
           
 boolean isMultiple()
           
 void queueEvent(javax.faces.event.FacesEvent event)
           
 String resolveWidgetVar()
           
 void setCache(boolean _cache)
           
 void setCacheTimeout(int _cacheTimeout)
           
 void setCompleteMethod(javax.el.MethodExpression _completeMethod)
           
 void setDropdown(boolean _dropdown)
           
 void setEffect(String _effect)
           
 void setEffectDuration(int _effectDuration)
           
 void setEmptyMessage(String _emptyMessage)
           
 void setForceSelection(boolean _forceSelection)
           
 void setItemLabel(String _itemLabel)
           
 void setItemtipAtPosition(String _itemtipAtPosition)
           
 void setItemtipMyPosition(String _itemtipMyPosition)
           
 void setItemValue(Object _itemValue)
           
 void setMaxResults(int _maxResults)
           
 void setMinQueryLength(int _minQueryLength)
           
 void setMultiple(boolean _multiple)
           
 void setPanelStyle(String _panelStyle)
           
 void setPanelStyleClass(String _panelStyleClass)
           
 void setPlaceholder(String _placeholder)
           
 void setQueryDelay(int _queryDelay)
           
 void setScrollHeight(int _scrollHeight)
           
 void setVar(String _var)
           
 void setWidgetVar(String _widgetVar)
           
 
Methods inherited from class javax.faces.component.html.HtmlInputText
getAccesskey, getAlt, getAutocomplete, getDefaultEventName, getDir, getLabel, getLang, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRole, getSize, getStyle, getStyleClass, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setAlt, setAutocomplete, setDir, setDisabled, setLabel, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setRole, setSize, setStyle, setStyleClass, setTabindex, setTitle
 
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, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValue
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, 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
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY
See Also:
Constant Field Values

STYLE_CLASS

public static final String STYLE_CLASS
See Also:
Constant Field Values

MULTIPLE_STYLE_CLASS

public static final String MULTIPLE_STYLE_CLASS
See Also:
Constant Field Values

INPUT_CLASS

public static final String INPUT_CLASS
See Also:
Constant Field Values

INPUT_WITH_DROPDOWN_CLASS

public static final String INPUT_WITH_DROPDOWN_CLASS
See Also:
Constant Field Values

DROPDOWN_ICON_CLASS

public static final String DROPDOWN_ICON_CLASS
See Also:
Constant Field Values

PANEL_CLASS

public static final String PANEL_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_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

TOKEN_DISPLAY_CLASS

public static final String TOKEN_DISPLAY_CLASS
See Also:
Constant Field Values

TOKEN_LABEL_CLASS

public static final String TOKEN_LABEL_CLASS
See Also:
Constant Field Values

TOKEN_ICON_CLASS

public static final String TOKEN_ICON_CLASS
See Also:
Constant Field Values

TOKEN_INPUT_CLASS

public static final String TOKEN_INPUT_CLASS
See Also:
Constant Field Values

MULTIPLE_CONTAINER_CLASS

public static final String MULTIPLE_CONTAINER_CLASS
See Also:
Constant Field Values

ITEMTIP_CONTENT_CLASS

public static final String ITEMTIP_CONTENT_CLASS
See Also:
Constant Field Values
Constructor Detail

AutoComplete

public AutoComplete()
Method Detail

getFamily

public String getFamily()
Overrides:
getFamily in class javax.faces.component.UIInput

getPlaceholder

public String getPlaceholder()

setPlaceholder

public void setPlaceholder(String _placeholder)

getWidgetVar

public String getWidgetVar()

setWidgetVar

public void setWidgetVar(String _widgetVar)

getCompleteMethod

public javax.el.MethodExpression getCompleteMethod()

setCompleteMethod

public void setCompleteMethod(javax.el.MethodExpression _completeMethod)

getVar

public String getVar()

setVar

public void setVar(String _var)

getItemLabel

public String getItemLabel()

setItemLabel

public void setItemLabel(String _itemLabel)

getItemValue

public Object getItemValue()

setItemValue

public void setItemValue(Object _itemValue)

getMaxResults

public int getMaxResults()

setMaxResults

public void setMaxResults(int _maxResults)

getMinQueryLength

public int getMinQueryLength()

setMinQueryLength

public void setMinQueryLength(int _minQueryLength)

getQueryDelay

public int getQueryDelay()

setQueryDelay

public void setQueryDelay(int _queryDelay)

isForceSelection

public boolean isForceSelection()

setForceSelection

public void setForceSelection(boolean _forceSelection)

getScrollHeight

public int getScrollHeight()

setScrollHeight

public void setScrollHeight(int _scrollHeight)

getEffect

public String getEffect()

setEffect

public void setEffect(String _effect)

getEffectDuration

public int getEffectDuration()

setEffectDuration

public void setEffectDuration(int _effectDuration)

isDropdown

public boolean isDropdown()

setDropdown

public void setDropdown(boolean _dropdown)

getPanelStyle

public String getPanelStyle()

setPanelStyle

public void setPanelStyle(String _panelStyle)

getPanelStyleClass

public String getPanelStyleClass()

setPanelStyleClass

public void setPanelStyleClass(String _panelStyleClass)

isMultiple

public boolean isMultiple()

setMultiple

public void setMultiple(boolean _multiple)

getItemtipMyPosition

public String getItemtipMyPosition()

setItemtipMyPosition

public void setItemtipMyPosition(String _itemtipMyPosition)

getItemtipAtPosition

public String getItemtipAtPosition()

setItemtipAtPosition

public void setItemtipAtPosition(String _itemtipAtPosition)

isCache

public boolean isCache()

setCache

public void setCache(boolean _cache)

getCacheTimeout

public int getCacheTimeout()

setCacheTimeout

public void setCacheTimeout(int _cacheTimeout)

getEmptyMessage

public String getEmptyMessage()

setEmptyMessage

public void setEmptyMessage(String _emptyMessage)

getEventNames

public Collection<String> getEventNames()
Specified by:
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
getEventNames in class javax.faces.component.html.HtmlInputText

queueEvent

public void queueEvent(javax.faces.event.FacesEvent event)
Overrides:
queueEvent in class javax.faces.component.UIComponentBase

broadcast

public void broadcast(javax.faces.event.FacesEvent event)
               throws javax.faces.event.AbortProcessingException
Overrides:
broadcast in class javax.faces.component.UIComponentBase
Throws:
javax.faces.event.AbortProcessingException

getColums

public List<Column> getColums()

getSuggestions

public List getSuggestions()

getInputClientId

public String getInputClientId()
Specified by:
getInputClientId in interface InputHolder
Returns:
Client id of the input element

resolveWidgetVar

public String resolveWidgetVar()
Specified by:
resolveWidgetVar in interface Widget


Copyright © 2013. All rights reserved.