public interface LookupField extends OptionsField, LookupComponent, Component.HasInputPrompt, Component.Buffered, Component.Focusable, Component.HasOptionsStyleProvider
Modifier and Type | Interface and Description |
---|---|
static class |
LookupField.FilterMode |
static interface |
LookupField.FilterPredicate
A predicate that tests whether an item with the given caption matches to the given search string.
|
static interface |
LookupField.NewOptionHandler
Interface to be implemented if
setNewOptionAllowed(boolean) is set to true. |
static interface |
LookupField.OptionIconProvider<T>
Allows to set icons for particular elements in the options list.
|
Field.Validator
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
LookupComponent.LookupSelectionChangeEvent, LookupComponent.LookupSelectionChangeListener, LookupComponent.LookupSelectionChangeNotifier
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
LookupField.FilterMode |
getFilterMode() |
LookupField.FilterPredicate |
getFilterPredicate() |
LookupField.NewOptionHandler |
getNewOptionHandler() |
java.lang.Object |
getNullOption() |
LookupField.OptionIconProvider<?> |
getOptionIconProvider() |
int |
getPageLength() |
boolean |
isNewOptionAllowed() |
boolean |
isNullOptionVisible() |
boolean |
isTextInputAllowed() |
void |
setFilterMode(LookupField.FilterMode mode) |
void |
setFilterPredicate(LookupField.FilterPredicate filterPredicate)
Enables to setup how items should be filtered.
|
void |
setNewOptionAllowed(boolean newOptionAllowed)
Makes the component handle new options entered by user.
|
void |
setNewOptionHandler(LookupField.NewOptionHandler newOptionHandler)
Set handler.
|
void |
setNullOption(java.lang.Object nullOption) |
void |
setNullOptionVisible(boolean nullOptionVisible)
Sets visibility for first null element in suggestion popup.
|
<T> void |
setOptionIconProvider(java.lang.Class<T> optionClass,
LookupField.OptionIconProvider<T> optionIconProvider)
Set the icon provider for LookupField.
|
void |
setOptionIconProvider(LookupField.OptionIconProvider<?> optionIconProvider)
Set the icon provider for the LookupField.
|
void |
setPageLength(int pageLength)
Sets the page length for the suggestion popup.
|
void |
setTextInputAllowed(boolean textInputAllowed)
Sets whether it is possible to input text into the field or whether the field area of the component is just used
to show what is selected.
|
getCaptionMode, getCaptionProperty, getDescriptionProperty, getOptionsDatasource, getOptionsEnum, getOptionsList, getOptionsMap, isMultiSelect, setCaptionMode, setCaptionProperty, setDescriptionProperty, setMultiSelect, setOptionsDatasource, setOptionsEnum, setOptionsList, setOptionsMap
addValidator, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessage
getDatasource, getMetaProperty, getMetaPropertyPath, setDatasource
addListener, addValueChangeListener, getValue, removeListener, removeValueChangeListener, setValue
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getCaption, getDescription, setCaption, setDescription
isValid, isValidateOnCommit, validate
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
getTabIndex, isFocusable, setFocusable, setTabIndex
getLookupSelectedItems, setLookupSelectHandler
getInputPrompt, setInputPrompt
commit, discard, isBuffered, isModified, setBuffered
getOptionsStyleProvider, setOptionsStyleProvider
static final java.lang.String NAME
java.lang.Object getNullOption()
void setNullOption(java.lang.Object nullOption)
LookupField.FilterMode getFilterMode()
void setFilterMode(LookupField.FilterMode mode)
boolean isNewOptionAllowed()
LookupField.NewOptionHandler
void setNewOptionAllowed(boolean newOptionAllowed)
LookupField.NewOptionHandler
boolean isTextInputAllowed()
void setTextInputAllowed(boolean textInputAllowed)
LookupField.NewOptionHandler getNewOptionHandler()
void setNewOptionHandler(LookupField.NewOptionHandler newOptionHandler)
newOptionHandler
- handler instanceint getPageLength()
void setPageLength(int pageLength)
pageLength
- the pageLength to setvoid setNullOptionVisible(boolean nullOptionVisible)
boolean isNullOptionVisible()
void setOptionIconProvider(LookupField.OptionIconProvider<?> optionIconProvider)
optionIconProvider
- provider which provides icons for options<T> void setOptionIconProvider(java.lang.Class<T> optionClass, LookupField.OptionIconProvider<T> optionIconProvider)
optionClass
- class of the optionoptionIconProvider
- provider which provides icons for optionsLookupField.OptionIconProvider<?> getOptionIconProvider()
void setFilterPredicate(LookupField.FilterPredicate filterPredicate)
filterPredicate
- items filter predicateLookupField.FilterPredicate getFilterPredicate()