@DocumentedComponent(category=INPUTS_AND_VALIDATION, value="Enables users to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.", icon="fa fa-outdent") @DesignerControl(defaultWidth=3) @Control(parents={PanelGroup.class,Group.class,Column.class,ColumnOptimized.class,Tab.class,Row.class,pl.fhframework.model.forms.Form.class,Repeater.class}, invalidParents=Table.class, canBeDesigned=true) public class SelectComboMenu extends BaseInputFieldWithKeySupport
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SelectComboMenu.SelectComboItemDTO |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
emptyLabel |
protected List<Object> |
filteredObjectValues |
protected List<SelectComboMenu.SelectComboItemDTO> |
filteredValues |
protected java.util.function.BiPredicate<Object,String> |
filterFunction |
protected boolean |
filterInvoked |
protected String |
filterText |
protected boolean |
fireOnchange |
protected boolean |
firstLoad |
protected boolean |
freeTyping |
protected SelectComboMenu.SelectComboItemDTO |
highlightedValue |
protected boolean |
preload |
protected String |
rawValue |
protected static String |
SELECTED_INDEX_ATTR |
protected Object |
selectedItem |
protected Integer |
selectedItemIndex |
protected static String |
TEXT |
protected List<Object> |
values |
LABEL_ATTR, MESSAGE_FOR_FIELD_ATTR, ON_CHANGE_ATTR, PRESENTATION_STYLE_ATTR, RAW_VALUE_ATTR, REQUIRED_ATTR, VALIDATION_LABEL_ATTR, validationManager, validConversion, VALUE_ATTRCONFIRATION_MSG_ATTRACCESSIBILITY, RESOLUTION_SIZEON_KEY_EVENT, ON_KEY_EVENT_HASHON_DROP_COMPONENT, ON_RESIZE_COMPONENT| Constructor and Description |
|---|
SelectComboMenu(Form form) |
init, setOnKeyEvent, setOnKeyEventcalculateAvailability, calculatePresentationStyle, checkBinding, convertMainValueToString, createValidationManager, getTargetModelBinding, processCoversionException, processLabelBinding, processStylesAndHints, processValidationForThisComponent, setLabelModelBindingAdHoc, setModelBindingAdHoc, setOnChange, setOnChangegetConfirmationMsg, getConfirmationMsgBinding, getConfirmOnEvent, processConfirmationMsgBinding, setConfirmationMsg, setConfirmationMsgBinding, setConfirmOnEventgetHeight, getHint, getHintBinding, getHintPlacement, getHintTrigger, getHorizontalAlign, getInlineStyle, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getStyleClasses, getVerticalAlign, getWidth, getWrapperStyle, isPush, refreshElementToForm, refreshView, refreshView, setHeight, setHintBinding, setHintPlacement, setHintTrigger, setHorizontalAlign, setInlineStyle, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPush, setStyleClasses, setVerticalAlign, setWidth, setWrapperStyle, tryParseAttributeInPixelOrPercentageUnit, tryParseAttributeInPixelUnit, tryParseAttributeInPixelUnitareModelValuesTheSame, areValuesTheSame, clone, convertBindingValueToString, convertBindingValueToString, convertValue, convertValueToString, convertValueToString, createAdHocModelBinding, equals, finalizeReading, generateId, getAccessibilityRules, getAvailability, getAvailabilityModelBinding, getAvailablityAffectingActions, getBindingContext, getEventProcessingForm, getForm, getGeneratedIdPrefix, getGroupingParentComponent, getId, getOnDesignerToolboxDrop, getRawId, getType, hashCode, isArtificial, isGeneratedId, isInitDone, isInvisible, isStopProcessingUpdateView, onProcessingFinish, onProcessingStart, postClone, preConfigureClear, prepareEventDataArgument, refreshAvailability, resetInitDone, setArtificial, setAvailability, setAvailabilityModelBinding, setBindingContext, setGroupingParentComponent, setId, setInvisible, setOnDesignerToolboxDrop, setOnDesignerToolboxDrop, setRawId, setStopProcessingUpdateView, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetKeyEvent, getKeyEventHandler, getKeyEventHandlers, getOnKeyEvent, initKeyHandlers, setKeyEvent, setKeyEventHandlersgetIcon, getIconAlignment, getIconBinding, resolveIconBindingupdateBinding, updateBinding, updateBindingForValue, updateBindingForValuegetId, getLabel, getModelBinding, getPresentationStyle, getValidationLabelModelBinding, skipSettingPresentationdoCopy, getCopy, getCopygetLabelModelBindingisDesignActionAllowed, isDesignDeletableisModificationEventprotected static final String TEXT
protected static final String SELECTED_INDEX_ATTR
@XMLProperty @DocumentedComponentAttribute(defaultValue="false", value="Determines if empty value should be displayed on list of options.") @DesignerXMLProperty(priority=60, functionalArea=CONTENT) protected boolean emptyLabel
protected Object selectedItem
protected Integer selectedItemIndex
protected String rawValue
protected String filterText
protected List<SelectComboMenu.SelectComboItemDTO> filteredValues
protected SelectComboMenu.SelectComboItemDTO highlightedValue
protected java.util.function.BiPredicate<Object,String> filterFunction
protected boolean filterInvoked
protected boolean fireOnchange
@XMLProperty @DocumentedComponentAttribute(defaultValue="false", value="Defines if combo values should be present even if no text is typed") protected boolean preload
protected boolean firstLoad
protected boolean freeTyping
public SelectComboMenu(Form form)
public Optional<ActionBinding> getEventHandler(InMessageEventData eventData)
getEventHandler in interface IEventSourcegetEventHandler in class BaseInputFieldWithKeySupportpublic void updateModel(ValueChange valueChange)
updateModel in interface IChangeableByClientupdateModel in class BaseInputFieldpublic void validate()
validate in interface IValidatedComponentvalidate in class BaseInputFieldpublic void prepareComponentAfterValidation(ElementChanges elementChanges)
prepareComponentAfterValidation in interface IValidatedComponentprepareComponentAfterValidation in class BaseInputFieldprotected FormFieldHints processPresentationStyle(ElementChanges elementChanges, List<FieldValidationResult> fieldValidationResults)
processPresentationStyle in class BaseInputFieldpublic List<ModelBinding> getAllBingings()
getAllBingings in interface IValidatedComponentgetAllBingings in class BaseInputFieldpublic ElementChanges updateView()
updateView in class BaseInputFieldprotected void setFilterFunction()
protected boolean processValuesBinding()
protected boolean processValueBinding(ElementChanges elementChanges)
processValueBinding in class BaseInputFieldprotected String convertToRaw(BindingResult<?> bindingResult)
convertToRaw in class BaseInputFieldpublic void setFormatter(String formatter)
public SelectComboMenu createNewSameComponent()
TableComponentpublic void doCopy(Table table, Map<String,String> iteratorReplacements, BaseInputField baseClone)
TableComponentdoCopy in interface TableComponent<BaseInputField>doCopy in class BaseInputFieldtable - tableiteratorReplacements - iterator replacementsbaseClone - a new component of the same typepublic void setOnInput(ActionBinding onInput)
public IActionCallbackContext setOnInput(IActionCallback onInput)
public void setOnEmptyValue(ActionBinding onEmptyValue)
public IActionCallbackContext setOnEmptyValue(IActionCallback onEmptyValue)
public void setOnSpecialKey(ActionBinding onSpecialKey)
public void setOnDblSpecialKey(ActionBinding onDblSpecialKey)
public IActionCallbackContext setOnSpecialKey(IActionCallback onSpecialKey)
Copyright © 2020. All rights reserved.