org.openfaces.component.input
Class SuggestionField

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 org.openfaces.component.OUIInputBase
                      extended by org.openfaces.component.OUIInputText
                          extended by org.openfaces.component.input.DropDownComponent
                              extended by org.openfaces.component.input.DropDownFieldBase
                                  extended by org.openfaces.component.input.SuggestionField
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.EditableValueHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, OUIComponent, OUIInput

public class SuggestionField
extends DropDownFieldBase

The SuggestionField component is an input component that shows a list of suggestions based on user input and completes user input right in the input field. It has a similar functionality to DropDownField, but unlike DropDownField it looks like a plain text field. You can create a multi-column drop-down list and embed JSF components into it.


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
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
BEANINFO_KEY, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY
 
Constructor Summary
SuggestionField()
           
 
Method Summary
 java.lang.String getFamily()
           
 boolean getManualListOpeningAllowed()
           
 int getSize()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setManualListOpeningAllowed(boolean manualListOpeningAllowed)
           
 void setSize(int size)
           
 
Methods inherited from class org.openfaces.component.input.DropDownFieldBase
getAutoComplete, getCustomValueAllowed, getFooterHorizSeparator, getFooterVertSeparator, getHeaderHorizSeparator, getHeaderVertSeparator, getHorizontalGridLines, getListAlignment, getListFooterRowClass, getListFooterRowStyle, getListHeaderRowClass, getListHeaderRowStyle, getListItemClass, getListItemStyle, getMaxlength, getMultiFooterSeparator, getMultiHeaderSeparator, getOddListItemClass, getOddListItemStyle, getOncloseup, getOndropdown, getPopup, getPopup, getRolloverListItemClass, getRolloverListItemStyle, getSuggestionDelay, getSuggestionMinChars, getSuggestionMode, getTimeout, getVar, getVerticalGridLines, setAutoComplete, setCustomValueAllowed, setFooterHorizSeparator, setFooterVertSeparator, setHeaderHorizSeparator, setHeaderVertSeparator, setHorizontalGridLines, setId, setListAlignment, setListFooterRowClass, setListFooterRowStyle, setListHeaderRowClass, setListHeaderRowStyle, setListItemClass, setListItemStyle, setMaxlength, setMultiFooterSeparator, setMultiHeaderSeparator, setOddListItemClass, setOddListItemStyle, setOncloseup, setOndropdown, setRolloverListItemClass, setRolloverListItemStyle, setSuggestionDelay, setSuggestionMinChars, setSuggestionMode, setTimeout, setVar, setVerticalGridLines
 
Methods inherited from class org.openfaces.component.input.DropDownComponent
getDisabledClass, getDisabledFieldClass, getDisabledFieldStyle, getDisabledStyle, setDisabledClass, setDisabledFieldClass, setDisabledFieldStyle, setDisabledStyle
 
Methods inherited from class org.openfaces.component.OUIInputText
getAccesskey, getPromptText, getPromptTextClass, getPromptTextStyle, getTabindex, getTitle, setAccesskey, setPromptText, setPromptTextClass, setPromptTextStyle, setTabindex, setTitle
 
Methods inherited from class org.openfaces.component.OUIInputBase
getDefaultEventName, getEventNames, getFocusedClass, getFocusedStyle, getLabel, getOnblur, getOnchange, getOnclick, getOncontextmenu, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRolloverClass, getRolloverStyle, getStyle, getStyleClass, isDisabled, setDisabled, setFocusedClass, setFocusedStyle, setLabel, setOnblur, setOnchange, setOnclick, setOncontextmenu, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRolloverClass, setRolloverStyle, setStyle, setStyleClass
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, clearInitialState, decode, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getValueExpression, initialStateMarked, isCompositeComponent, isInView, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTree
 
Methods inherited from class java.lang.Object
equals, 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, getValue, setConverter
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

SuggestionField

public SuggestionField()
Method Detail

getFamily

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

getManualListOpeningAllowed

public boolean getManualListOpeningAllowed()

setManualListOpeningAllowed

public void setManualListOpeningAllowed(boolean manualListOpeningAllowed)

setSize

public void setSize(int size)

getSize

public int getSize()

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class DropDownFieldBase

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class DropDownFieldBase


Copyright © 1998-2010 TeamDev Ltd. All Rights Reserved.