Class TagComboBox<RECORD>
java.lang.Object
org.teamapps.ux.component.AbstractComponent
org.teamapps.ux.component.field.AbstractField<List<RECORD>>
org.teamapps.ux.component.field.combobox.AbstractComboBox<RECORD,List<RECORD>>
org.teamapps.ux.component.field.combobox.TagComboBox<RECORD>
- All Implemented Interfaces:
ClientObject,Component,TextInputHandlingField
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.teamapps.ux.component.field.combobox.AbstractComboBox
freeTextRecordFactory, onSpecialKeyPressed, onTextInput, recordCacheFields inherited from class org.teamapps.ux.component.field.AbstractField
onBlur, onFocus, onValueChanged, onVisibilityChangedFields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertUiValueToUxValue(Object value) convertUxValueToUiValue(List<RECORD> uxValue) Converts a server-side value to a client-side field-specific value.static <ENUM extends Enum>
TagComboBox<ENUM> createForEnum(Class<ENUM> enumClass) static <R> TagComboBox<R> createForList(List<R> staticData) static <R> TagComboBox<R> createForList(List<R> staticData, Template template) static <R> TagComboBox<R> createForList(List<R> staticData, TreeNodeInfoExtractor<R> treeNodeInfoExtractor) intbooleanprotected booleanisEmptyValue(List<RECORD> records) Whether this value be regarded as empty / "no user input".booleanvoidsetDistinct(boolean distinct) voidsetFreeTextEntries(List<String> freeTextEntries) voidsetMaxEntries(int maxEntries) voidsetTwoStepDeletion(boolean twoStepDeletion) voidvoidsetWrappingMode(TagBoxWrappingMode wrappingMode) Methods inherited from class org.teamapps.ux.component.field.combobox.AbstractComboBox
addParentLinkToUiRecord, createUiTreeRecordWithoutParentRelation, getDropDownMaxHeight, getDropDownMinWidth, getDropDownTemplate, getDropdownTemplateDecider, getEmptyText, getFreeTextRecordFactory, getModel, getPropertyProvider, getRecordToStringFunction, getSelectedEntryTemplate, getSelectedEntryTemplateDecider, getTextHighlightingEntryLimit, handleUiEvent, handleUiQuery, isAllowFreeText, isAnimate, isAutoComplete, isDistinctModelResultFiltering, isDropDownButtonVisible, isFreeTextEntry, isHighlightFirstResultEntry, isShowClearButton, isShowDropDownAfterResultsArrive, isShowExpanders, isShowHighlighting, mapCommonUiComboBoxProperties, onSpecialKeyPressed, onTextInput, setAllowFreeText, setAnimate, setAutoComplete, setDistinctModelResultFiltering, setDropDownButtonVisible, setDropDownMaxHeight, setDropDownMinWidth, setDropDownTemplate, setDropdownTemplateDecider, setEmptyText, setFreeTextRecordFactory, setHighlightFirstResultEntry, setModel, setPropertyExtractor, setPropertyProvider, setRecordToStringFunction, setSelectedEntryTemplate, setSelectedEntryTemplateDecider, setShowClearButton, setShowDropDownAfterResultsArrive, setShowExpanders, setShowHighlighting, setTemplate, setTemplateDecider, setTextHighlightingEntryLimitMethods inherited from class org.teamapps.ux.component.field.AbstractField
addCustomFieldMessage, addCustomFieldMessage, addValidator, applyValueFromUi, clearCustomFieldMessages, clearValidatorMessages, focus, getCustomFieldMessages, getDefaultMessagePosition, getDefaultMessageVisibility, getEditingMode, getFieldMessages, getMaxFieldMessageSeverity, getValidators, getValue, isEmpty, isRequired, isValid, isValueChangedByClient, isValueLocked, mapAbstractFieldAttributesToUiField, removeCustomFieldMessage, removeValidator, setAndLockValue, setCustomFieldMessages, setDefaultMessagePosition, setDefaultMessageVisibility, setEditingMode, setRequired, setRequiredIfVisibleAndEditable, setValueChangedByClient, setVisible, validateMethods inherited from class org.teamapps.ux.component.AbstractComponent
createUiReference, getDebuggingId, getId, getParent, getSessionContext, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setAttribute, setCssStyle, setDebuggingId, setParent, toggleCssClass, toString, unrenderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.ux.component.Component
setAriaLabel, setAttribute, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClassMethods inherited from interface org.teamapps.ux.component.field.TextInputHandlingField
defaultHandleTextInputEvent
-
Field Details
-
onFreeTextEntered
-
onFreeTextRemoved
-
-
Constructor Details
-
TagComboBox
public TagComboBox() -
TagComboBox
-
TagComboBox
-
-
Method Details
-
getSelectedRecords
- Specified by:
getSelectedRecordsin classAbstractComboBox<RECORD,List<RECORD>>
-
createForList
-
createForList
-
createForList
public static <R> TagComboBox<R> createForList(List<R> staticData, TreeNodeInfoExtractor<R> treeNodeInfoExtractor) -
createForEnum
-
createUiComponent
- Specified by:
createUiComponentin classAbstractComponent
-
setValue
-
convertUiValueToUxValue
- Overrides:
convertUiValueToUxValuein classAbstractField<List<RECORD>>
-
isEmptyValue
Description copied from class:AbstractFieldWhether this value be regarded as empty / "no user input". Override for field-specific behaviour.- Overrides:
isEmptyValuein classAbstractField<List<RECORD>>- Returns:
- true if the value can be regarded as "empty".
-
convertUxValueToUiValue
Description copied from class:AbstractFieldConverts a server-side value to a client-side field-specific value. Implementations must not have any side effects to the component!- Overrides:
convertUxValueToUiValuein classAbstractField<List<RECORD>>- Parameters:
uxValue- the server-side value- Returns:
- the object to be sent to the ui
-
getMaxEntries
public int getMaxEntries() -
setMaxEntries
public void setMaxEntries(int maxEntries) -
getWrappingMode
-
setWrappingMode
-
isDistinct
public boolean isDistinct() -
setDistinct
public void setDistinct(boolean distinct) -
getFreeTextEntries
-
setFreeTextEntries
-
isTwoStepDeletion
public boolean isTwoStepDeletion() -
setTwoStepDeletion
public void setTwoStepDeletion(boolean twoStepDeletion)
-