org.openfaces.component.input
Class SuggestionField

java.lang.Object
  extended by 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:
CompoundComponent, 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
           
 
Constructor Summary
SuggestionField()
           
 
Method Summary
 java.lang.String getFamily()
           
 boolean getManualListOpeningAllowed()
           
 int getSize()
           
 void restoreState(FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(FacesContext context)
           
 void setManualListOpeningAllowed(boolean manualListOpeningAllowed)
           
 void setSize(int size)
           
 
Methods inherited from class org.openfaces.component.input.DropDownFieldBase
createSubComponents, getAutoComplete, getCustomValueAllowed, getFooterHorizSeparator, getFooterVertSeparator, getHeaderHorizSeparator, getHeaderVertSeparator, getHorizontalGridLines, getListAlignment, getListFooterRowClass, getListFooterRowStyle, getListHeaderRowClass, getListHeaderRowStyle, getListItemClass, getListItemStyle, getMaxlength, getMultiFooterSeparator, getMultiHeaderSeparator, getOddListItemClass, getOddListItemStyle, getOncloseup, getOndropdown, getPopup, getRolloverListItemClass, getRolloverListItemStyle, getSuggestionDelay, getSuggestionMinChars, getSuggestionMode, getTimeout, getVar, getVerticalGridLines, processRestoreState, 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
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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()

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(FacesContext context)
Overrides:
saveState in class DropDownFieldBase

restoreState

public void restoreState(FacesContext context,
                         java.lang.Object state)
Overrides:
restoreState in class DropDownFieldBase


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