Class ComboBox<RECORD>
java.lang.Object
org.teamapps.ux.component.AbstractComponent
org.teamapps.ux.component.field.AbstractField<RECORD>
org.teamapps.ux.component.field.combobox.AbstractComboBox<RECORD,RECORD>
org.teamapps.ux.component.field.combobox.ComboBox<RECORD>
- All Implemented Interfaces:
ClientObject,Component,TextInputHandlingField
public class ComboBox<RECORD>
extends AbstractComboBox<RECORD,RECORD>
implements TextInputHandlingField
-
Field Summary
FieldsFields 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 TypeMethodDescriptionvoidaddToolButton(ToolButton toolButton) convertUiValueToUxValue(Object value) convertUxValueToUiValue(RECORD record) Converts a server-side value to a client-side field-specific value.createForEnum(Class<ENUM> enumClass) static <R> ComboBox<R> createForList(List<R> staticData) static <R> ComboBox<R> createForList(List<R> staticData, Template template) static <R> ComboBox<R> createForList(List<R> staticData, TreeNodeInfoExtractor<R> treeNodeInfoExtractor) voidremoveToolButton(ToolButton toolButton) voidMethods 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, isEmptyValue, 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, onSpecialKeyPressed, onTextInput
-
Field Details
-
onFreeTextEntered
-
-
Constructor Details
-
ComboBox
public ComboBox() -
ComboBox
-
ComboBox
-
-
Method Details
-
getSelectedRecords
- Specified by:
getSelectedRecordsin classAbstractComboBox<RECORD,RECORD>
-
createForList
-
createForList
-
createForList
public static <R> ComboBox<R> createForList(List<R> staticData, TreeNodeInfoExtractor<R> treeNodeInfoExtractor) -
createForEnum
-
createUiComponent
- Specified by:
createUiComponentin classAbstractComponent
-
setValue
- Overrides:
setValuein classAbstractField<RECORD>
-
convertUiValueToUxValue
- Overrides:
convertUiValueToUxValuein classAbstractField<RECORD>
-
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<RECORD>- Parameters:
record- the server-side value- Returns:
- the object to be sent to the ui
-
getFreeText
-
addToolButton
-
removeToolButton
-