@DocumentedComponent(category=INPUTS_AND_VALIDATION, value="Component responsible for displaying list of values, with possibility of selecting only one value.", icon="fa fa-caret-square-down") @DesignerControl(defaultWidth=3) @Control(parents={PanelGroup.class,Column.class,ColumnOptimized.class,Tab.class,Row.class,pl.fhframework.model.forms.Form.class,Group.class,Repeater.class}, invalidParents=Table.class, canBeDesigned=true) public class SelectOneMenu extends BaseInputListField
Example <SelectOneMenu onInput="onInputAction" list="values" value="{value_1}"
label="label_1:" required="true|false"/>.
Every field is parsed as json for javascript. If field should be ingored by JSON, use
@JsonIgnore. There can be used any annotations for json generator.
Component.ComponentAttr, Component.IGenerationUtilsemptyLabel, newIndex, presentedValues, SELECTED_INDEXAUTOCOMPLETE_ATTR, HINT_INPUT_GROUP_ATTR, 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_DROP_COMPONENT, ON_RESIZE_COMPONENT| Constructor and Description |
|---|
SelectOneMenu(Form form) |
| Modifier and Type | Method and Description |
|---|---|
protected List<?> |
calculateBindingValues(List<?> value) |
protected String |
convertToRaw(BindingResult<?> bindingResult) |
SelectOneMenu |
createNewSameComponent()
Create a new component of the same type.
|
void |
doCopy(Table table,
Map<String,String> iteratorReplacements,
BaseInputField baseClone)
Copies values of attributes with replaced iterators in bindings and actions to a new component of the same type.
|
protected Object |
getChosenObjectAndSetIndex(String newValue) |
String |
getModelBindingText() |
areValuesEqual, calculateBindingValues, calculateRawValuesCollection, convertMainValueToString, getOptionalFormatter, updateModel, updateViewcalculateAvailability, calculatePresentationStyle, checkBinding, createValidationManager, getAllBingings, getEventHandler, getTargetModelBinding, init, prepareComponentAfterValidation, processAutocompleteBinding, processCoversionException, processLabelBinding, processPresentationStyle, processStylesAndHints, processValidationForThisComponent, processValueBinding, setLabelModelBindingAdHoc, setModelBindingAdHoc, setOnChange, setOnChange, validategetConfirmationMsg, getConfirmationMsgBinding, getConfirmOnEvent, processConfirmationMsgBinding, setConfirmationMsg, setConfirmationMsgBinding, setConfirmOnEventgetHeight, getHint, getHintBinding, getHintPlacement, getHintTrigger, getHintType, getHorizontalAlign, getInlineStyle, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getStyleClasses, getVerticalAlign, getWidth, getWrapperStyle, isPush, refreshElementToForm, refreshView, refreshView, setHeight, setHintBinding, setHintPlacement, setHintTrigger, setHintType, 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, getGenerationUtils, getGroupingParentComponent, getId, getOnDesignerToolboxDrop, getRawId, getType, hashCode, isArtificial, isGeneratedId, isInitDone, isInvisible, isStopProcessingUpdateView, onProcessingFinish, onProcessingStart, postClone, preConfigureClear, prepareEventDataArgument, refreshAvailability, resetInitDone, setArtificial, setAvailability, setAvailabilityModelBinding, setBindingContext, setGenerationUtils, setGroupingParentComponent, setId, setInvisible, setOnDesignerToolboxDrop, setOnDesignerToolboxDrop, setRawId, setStopProcessingUpdateView, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetIcon, getIconAlignment, getIconBinding, resolveIconBindingupdateBinding, updateBinding, updateBindingForValue, updateBindingForValuegetGroupingParentComponent, getId, getLabel, getModelBinding, getPresentationStyle, getValidationLabelModelBinding, skipSettingPresentationdoCopy, getCopy, getCopygetLabelModelBindingisDesignActionAllowed, isDesignDeletableisModificationEventpublic SelectOneMenu(Form form)
public SelectOneMenu createNewSameComponent()
TableComponentpublic String getModelBindingText()
public void doCopy(Table table, Map<String,String> iteratorReplacements, BaseInputField baseClone)
TableComponentdoCopy in interface TableComponent<BaseInputField>doCopy in class BaseInputListFieldtable - tableiteratorReplacements - iterator replacementsbaseClone - a new component of the same typeprotected Object getChosenObjectAndSetIndex(String newValue)
getChosenObjectAndSetIndex in class BaseInputListFieldprotected List<?> calculateBindingValues(List<?> value)
calculateBindingValues in class BaseInputListFieldprotected String convertToRaw(BindingResult<?> bindingResult)
convertToRaw in class BaseInputFieldCopyright © 2020. All rights reserved.