Class SelectorItem
- All Implemented Interfaces:
Animatable<SelectorItem>
,CanDrop<SelectorItem>
,Clickable<SelectorItem>
,SupportHelpIcon<SelectorItem>
,SupportPlaceholder<SelectorItem>
,Draggable<SelectorItem>
,Focusable<SelectorItem>
,HandleHotKey<SelectorItem>
,HandleMouseEvents<SelectorItem>
,DifferentDataDisplayValue
,Touchable<SelectorItem>
Selector item
With the use of this component, a value from a set of values can be selected. The component is similar to a ComboBoxItem, but its appearance and operation differ from it. The component is for handling large sets of values, since the selectable values do not get placed with the component on the client.
If a selector item component is displayed, a non-writable input field and a button with a magnifying glass icon will be displayed. If the user click on either of those, a window will appear. The window can be customized and implemented by the developer, or it can be the default selector window, in which a filterable list will be displayed. If the default one is used, the user can select a value from this filterable list. The list uses a lazy fetch implementation, so not every value will be used simultaneously, only a small fraction will be used. If the user goes to the bottom of the list, a new chunk of data will be queried automatically.
If the user double-clicks on a value, or selects one and presses the OK button, the value will be placed in the input field, and the component will register that value.
The JBStrap framework also allows the implementation of a custom window. The display and operation of the window must be implemented, by creating a class that extends from the
SelectorWindow
class. The SelectorWindow class requires the implementation of the methods that are responsible for the display and the operation of the selector window.
Any other method can also be implemented and any component can be used (like for displaying the set of values) during the implementation.
For more information, see the SelectorWindow
class description.
Information about the default SelectorWindow can be found in the DefaultValueSelector
class description.
Supported Events:
AnimationStart
AnimationEnd
,
Focus
FocusOut
FocusIn
LosesFocus
Click
,
DoubleClick
,
MouseDown
,
MouseDown
,
MouseLeave
,
MouseMove
,
MouseOver
,
MouseOut
,
MouseUp
,
Wheel
,
TouchCancel
,
TouchEnd
,
TouchMove
,
TouchStart
,
Drop
,
DragStart
,
DragEnd
HotKey
- Since:
- 4.0
- Author:
- JBStrap
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataDescriptor
protected Button
protected SelectorWindow
Fields inherited from class com.jbstrap.ui.components.form.FormItem
appends, clearButton, column, defaultState, defaultValue, description, formItemSize, helpIcon, label, labelPosition, labelSizes, modified, originalValue, params, prepends, required, showLabel, state, tabIndex, value, visible
Fields inherited from class com.jbstrap.ui.Component
animation, attributes, backgroundColor, borderColor, color, defaultHotKeyHandler, handlers, hotKeys, styleClasses, textAlign, toolTip, toolTipPosition
-
Constructor Summary
ConstructorDescriptionSelectorItem
(DataDescriptorColumn column) Creates a selector item based on the specified DataDescriptorColumn.SelectorItem
(DataDescriptorColumn column, String language) Creates a selector item based on the specified DataDescriptorColumn and using the specified language code.SelectorItem
(String name, String label) Creates a selector item with the specified name and label.SelectorItem
(String name, String label, Class<? extends SelectorWindow> selectorClass) Creates a selector item with the specified name and label.SelectorItem
(String name, String label, String language, Class<? extends SelectorWindow> selectorClass) Creates a selector item with the specified name, label and language code. -
Method Summary
Modifier and TypeMethodDescriptionvoid
The operations to be executed after the drawing of the componentvoid
drawEditor
(StringWriter writer) Draws the editor component.final String
Gets the name of the DataDescriptor column that contains the selector item values.final DataDescriptor
Gets the DataDescriptor of the selector itemfinal Criteria
Gets the default filter criteria, that are applied to the values.Gets the name of the DataDescriptor columns that contain the selector item display values.Gets the separator text, that separates the display values.Gets the selector item's current display value .Gets the selector item's original display value.boolean
Checks if the form item is in read-only mode.boolean
Determines if the search button is displayed on the right side of the input field.final SelectorItem
setDataColumn
(String dataColumnName) Sets the name of the DataDescriptor column that contains the selector item values.final SelectorItem
setDataDescriptor
(DataDescriptor dataDescriptor) Sets the DataDescriptor of the selector itemfinal SelectorItem
setDefaultFilterCriteria
(Criteria criteria) Sets the default filter criteria, that will be applied to the values.setDefaultValue
(Object defaultValue) Sets the default value of the selector itemfinal SelectorItem
setDisplayColumn
(String dispalyColumnName) Sets the name of the DataDescriptor column that contains the selector item display values.final SelectorItem
setDisplayColumns
(String... displayColumns) Sets the name of the DataDescriptor columns that contain the selector item display values.final SelectorItem
setDisplayColumnSeparator
(String separator) Sets the separator text, that separates the display values.setEnabled
(boolean enabled) Sets the component to be enabled.final SelectorItem
setReadOnly
(boolean readOnly) Sets the selector item to be read only.setSearchButtonVisible
(boolean visible) Sets if the search button should appear on the right side of the input field.setState
(FormItemState formItemState) Sets the form element state.Sets the current value of the selector itemprotected void
Methods inherited from class com.jbstrap.ui.components.form.FormItem
_addComponent, _setReverseShow, _setState, addComponent, addRecalcOnChangeColumn, addRecalcOnChangeColumns, addRecalcOnChangeColumns, addValueChangeHandler, clearValue, convertValueToJavaScript, convertValueToJavaScript, drawComponent, enableClearButton, eraseValue, getCalculateValue, getColumn, getComponents, getDataType, getDefaultState, getDescription, getFormItemSize, getLabel, getLabelPosition, getLabelSize, getLabelSize, getName, getOriginalValue, getParam, getParamAsBoolean, getParamAsDate, getParamAsDate, getParamAsDouble, getParamAsInteger, getParamAsLong, getParamAsNumber, getParamAsString, getRecalcOnChangeColumnsList, getState, getTabIndex, getValue, getValueAsBoolean, getValueAsDate, getValueAsDouble, getValueAsFloat, getValueAsInteger, getValueAsLong, getValueAsString, init, isAssignable, isAutoCalculate, isModified, isRequired, isReverseShow, isShowLabel, isVisible, onFormItemValueChanged, onHotKeyEventHandler, onShow, redraw, removeParam, resetState, runAfterDrawOnAddon, runOnHideOnAddon, runOnShowOnAddon, setCalculateValue, setDataType, setDataType, setDescription, setFocus, setFormItemSize, setLabel, setLabelPosition, setLabelSize, setLabelSize, setMargin, setModified, setObjectValue, setOriginalObjectValue, setOriginalValue, setPadding, setParam, setParams, setRequired, setShowLabel, setTabIndex, setVisible, triggerFormChange, writeHTML
Methods inherited from class com.jbstrap.ui.Component
_hide, _setAttribute, addAllowedRole, addComponent, addComponents, addDeniedRole, addHandler, addStyle, addStyleClass, addStyleClasses, clearfix, closeTag, combinateAccess, containsStyle, containsStyleClass, draw, drawSubComponents, error, flattendComponentTree, getAccess, getAccessMode, getAllowedRoles, getAttribute, getAttributes, getBackgroundColor, getBorderColor, getClient, getComponentById, getComponents, getComponentsByClass, getData, getDeniedRoles, getHandlers, getId, getLanguageCode, getParent, getParent, getRegisteredEvents, getStyle, getStyleClasses, getTextAlign, getTextColor, getToolTip, getToolTipPosition, getTypeName, getUI, insertComponentAfter, insertComponentBefore, isAccess, isDrawn, isEnabled, isEventBubbling, onHide, openTag, removeAllComponents, removeAllowedRole, removeAllStyleClasses, removeAttribute, removeComponent, removeComponent, removeComponents, removeDeniedRole, removeHandler, removeStyle, removeStyle, removeStyleClass, removeStyleClasses, replaceComponent, replaceStyleClass, runAfterDraw, runJavaScript, runJavaScript, runJavaScript, runOnHide, runOnShow, say, setAttribute, setBackgroundColor, setBorder, setBorderColor, setData, setDisplayType, setEventBubbling, setFlex, setFloating, setHeight100, setHeight25, setHeight50, setHeight75, setHeightAuto, setLanguage, setName, setOverflow, setParent, setScrollable, setSelectionType, setShadow, setStyle, setTextAlign, setTextColor, setToolTip, setToolTipPosition, setWidth100, setWidth25, setWidth50, setWidth75, setWidthAuto, showNotification, showNotification, showProcessIndicator, toggleStyleClass
Methods inherited from class com.jbstrap.core.messagebus.MessageBus
closeMessageBus, messageBusOpened, openMessageBus, renewSubscription, sendMessageToMessageBus, subscribeMessageBus, unsubscribeAllListeners, unsubscribeMessageBus
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jbstrap.ui.Animatable
addAnimationEndHandler, addAnimationStartHandler, getAnimation, removeAnimation, setAnimation
Methods inherited from interface com.jbstrap.ui.CanDrop
addDropEventHandler
Methods inherited from interface com.jbstrap.ui.Clickable
addClickHandler, addDoubleClickHandler
Methods inherited from interface com.jbstrap.ui.Draggable
addDragEndEventHandler, addDragStartEventHandler, setDraggable
Methods inherited from interface com.jbstrap.ui.Focusable
addFocusHandler, addFocusInHandler, addFocusOutHandler, addLosesFocusHandler, setFocus
Methods inherited from interface com.jbstrap.ui.HandleHotKey
addHotKey, addHotKey, removeHotKey, removeHotKeys
Methods inherited from interface com.jbstrap.ui.HandleMouseEvents
addMouseDownHandler, addMouseEnterHandler, addMouseLeaveHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler
Methods inherited from interface com.jbstrap.ui.components.form.SupportHelpIcon
getHelpIcon, getHelpText, setHelpIcon, setHelpText
Methods inherited from interface com.jbstrap.ui.components.form.SupportPlaceholder
getPlaceholder, setPlaceholder
Methods inherited from interface com.jbstrap.ui.Touchable
addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler
-
Field Details
-
searchBtn
-
selector
-
dataDescriptor
-
-
Constructor Details
-
SelectorItem
Creates a selector item with the specified name and label. It will use the default selector window.- Parameters:
name
- The name of the selector itemlabel
- The label of the selector item. Ifnull
, no label will be used- Throws:
NullPointerException
- If the name isnull
-
SelectorItem
Creates a selector item with the specified name and label. It will use a custom selector window that needs to be implemented.- Parameters:
name
- The name of the selector itemlabel
- The label of the selector item. Ifnull
, no label will be usedselectorClass
- The class containing the custom selector window implementation. Ifnull
, the default selector window will be used.- Throws:
NullPointerException
- If the name isnull
-
SelectorItem
public SelectorItem(String name, String label, String language, Class<? extends SelectorWindow> selectorClass) Creates a selector item with the specified name, label and language code. It will use a custom selector window that needs to be implemented.- Parameters:
name
- The name of the selector itemlabel
- The label of the selector item. Ifnull
, no label will be usedlanguage
- The language code, that the form item will use. If not specified, ornull
, the framework will use the default language. The default language can be set with theJBStrapParamType.DEFAULT_LANGUAGE
JBStrap parameter.selectorClass
- The class containing the custom selector window implementation. Ifnull
, the default selector window will be used.- Throws:
NullPointerException
- If the namenull
-
SelectorItem
Creates a selector item based on the specified DataDescriptorColumn.
The method creates and sets the selector item component based on the specified column. The following parameters from the DataDescriptor column are used:
DataDescriptorColumn.getTitle
- The title set in the DataDescriptor column will be used by the input field as its label.DataDescriptorColumn.isNullable()
- If the field can anull
value, the field will be marked as not mandatory. If it cannot have anull
value, the field will be marked as mandatory.MetaParamName.SELECTOR_CLASS
- The name of the class, that contains the custom selector window implementation. This class must extend from theSelectorWindow
class. If not specified, the default selector window will be used.MetaParamName.DATADESCRIPTOR
- The name of the DataDescriptor, that contains the set of values that will be used by the form item. If specified, the form item will be able to automatically read and use the data, and save it to the database.MetaParamName.DATA_COLUMN
- The name of the DataDescriptor column, that contains the set of values, used by the form item. These values are the ones, that the form item can use, and the user can pick from these values.MetaParamName.DISPLAY_COLUMN
- The name of the column that contains the display values. If multiple values need to be displayed, multiple names must be specified here, seperated by a "," character. This is the value that the user will see when selecting a value.MetaParamName.DISPLAY_COLUMN_SEPARATOR
- If multiple display column values are to be used, then the character specified here will be used as a separator character, that will seperate the display column values. If not specified, they will follow each other without a separator.MetaParamName.CRITERIA
- The filter criteria can be specified here, in a text format, that will be applied during the query of the values from the DataDescriptor. If not specified, every value from the DataDescriptor will be used to fill up the form item.MetaParamName.SELECTOR_FILTER_TYPE
- The default filter type can be specified here. This will be applied to the default selector window. The usable filter types are:- "none" - No filter will be displayed
- "adaptiveFilter" - A
AdaptiveFilter
will be displayed within the grid. - "simpleFilter" - A
SimpleFilter
will be displayed above the grid. The user can then filter the values by a column. - "advancedFilter" - A
AdvancedFilter
will be displayed above the grid, in which the user can input multiple columns (an advanced filter) - "textFilter" - A
TextFilter
will be displayed above the grid, with which the user can input text, that will filter the text value columns. - "custom" - In this case no custom filter implementation is supported
MetaParamName.PLACEHOLDER
- This text will be used as a placeholder.MetaParamName.SIZE
- The value specified here defines the size of the input field. (Applicable values: SMALL, MEDIUM, LARGE)MetaParamName.STATE
- The value specified here defines the state of the input field. (Applicable values: DEFAULT, ERROR, WARNING, SUCCESS, INFO)MetaParamName.DEFAULT_VALUE
- The value specified here defines the field's default value. The value must have the type of field, in this case, it must be a boolean value.MetaParamName.READ_ONLY
- Iftrue
, the field will be read only. Otherwise, the field can have its contents modified by the user.MetaParamName.ENABLED
- Iffalse
, the field will be disabled (it will be created in an unusable state.) Otherwise, the field will be enabled when created.MetaParamName.HELP
- If the parameter is specified, an icon will be displayed next to the field. If the user moves over the icon, the text specified here will be displayed, as a help text.MetaParamName.HELP_ICON
- If the icon name is specified (from theIcon
enum), then this icon will replace the default "?" icon.MetaParamName.DESCRIPTION
- The text specified here will appear below the field, in a smaller, italic font.MetaParamName.TAB_INDEX
- The value specified here determines the order of the input focus (when the user presses the Tab key). The order goes in ascending order. If not specified, the component will use the order value from the DataDescriptor. If that not specified either, the order in which it was placed in the DataDescriptor will be used.
- Parameters:
column
- The DataDescriptor column, that will be used as a basis for the form item.- Throws:
NullPointerException
- If the specified DataDescriptor column isnull
, or if the DATADESCRIPTOR parameter is not specified, or if the specified DataDescriptor cannot be found in the applicationIllegalArgumentException
- If the class in the SELECTOR_CLASS parameter does not extend from theSelectorWindow
class, or is not found within the application, or the filter specified in the SELECTOR_FILTER_TYPE parameter is invalid- See Also:
-
SelectorItem
Creates a selector item based on the specified DataDescriptorColumn and using the specified language code.
The method creates and sets the selector item component based on the specified column. The following parameters from the DataDescriptor column are used:
DataDescriptorColumn.getTitle
- The title set in the DataDescriptor column will be used by the input field as its label.DataDescriptorColumn.isNullable()
- If the field can anull
value, the field will be marked as not mandatory. If it cannot have anull
value, the field will be marked as mandatory.MetaParamName.SELECTOR_CLASS
- The name of the class, that contains the custom selector window implementation. This class must extend from theSelectorWindow
class. If not specified, the default selector window will be used.MetaParamName.DATADESCRIPTOR
- The name of the DataDescriptor, that contains the set of values that will be used by the form item. If specified, the form item will be able to automatically read and use the data, and save it to the database.MetaParamName.DATA_COLUMN
- The name of the DataDescriptor column, that contains the set of values, used by the form item. These values are the ones, that the form item can use, and the user can pick from these values.MetaParamName.DISPLAY_COLUMN
- The name of the column that contains the display values. If multiple values need to be displayed, multiple names must be specified here, seperated by a "," character. This is the value that the user will see when selecting a value.MetaParamName.DISPLAY_COLUMN_SEPARATOR
- If multiple display column values are to be used, then the character specified here will be used as a separator character, that will seperate the display column values. If not specified, they will follow each other without a separator.MetaParamName.CRITERIA
- The filter criteria can be specified here, in a text format, that will be applied during the query of the values from the DataDescriptor. If not specified, every value from the DataDescriptor will be used to fill up the form item.MetaParamName.SELECTOR_FILTER_TYPE
- The default filter type can be specified here. This will be applied to the default selector window. The usable filter types are:- "none" - No filter will be displayed
- "adaptiveFilter" - A
AdaptiveFilter
will be displayed within the grid. - "simpleFilter" - A
SimpleFilter
will be displayed above the grid. The user can then filter the values by a column. - "advancedFilter" - A
AdvancedFilter
will be displayed above the grid, in which the user can input multiple columns (an advanced filter) - "textFilter" - A
TextFilter
will be displayed above the grid, with which the user can input text, that will filter the text value columns. - "custom" - In this case no custom filter implementation is supported
MetaParamName.PLACEHOLDER
- This text will be used as a placeholder.MetaParamName.SIZE
- The value specified here defines the size of the input field. (Applicable values: SMALL, MEDIUM, LARGE)MetaParamName.STATE
- The value specified here defines the state of the input field. (Applicable values: DEFAULT, ERROR, WARNING, SUCCESS, INFO)MetaParamName.DEFAULT_VALUE
- The value specified here defines the field's default value. The value must have the type of field, in this case, it must be a boolean value.MetaParamName.READ_ONLY
- Iftrue
, the field will be read only. Otherwise, the field can have its contents modified by the user.MetaParamName.ENABLED
- Iffalse
, the field will be disabled (it will be created in an unusable state.) Otherwise, the field will be enabled when created.MetaParamName.HELP
- If the parameter is specified, an icon will be displayed next to the field. If the user moves over the icon, the text specified here will be displayed, as a help text.MetaParamName.HELP_ICON
- If the icon name is specified (from theIcon
enum), then this icon will replace the default "?" icon.MetaParamName.DESCRIPTION
- The text specified here will appear below the field, in a smaller, italic font.MetaParamName.TAB_INDEX
- The value specified here determines the order of the input focus (when the user presses the Tab key). The order goes in ascending order. If not specified, the component will use the order value from the DataDescriptor. If that not specified either, the order in which it was placed in the DataDescriptor will be used.MetaParamName.SHOW_BUTTONS
- This parameter determines if the buttons are shown on the component. By default, the buttons are not shown. Iftrue
, the buttons will be displayed in the component's input field
- Parameters:
column
- The DataDescriptor column, that will be used as a basis for the form item.language
- The language code, that the form item will use. If not specified, ornull
, the framework will use the default language. The default language can be set with theJBStrapParamType.DEFAULT_LANGUAGE
JBStrap parameter.- Throws:
NullPointerException
- If the specified DataDescriptor column isnull
, or if the DATADESCRIPTOR parameter is not specified, or if the specified DataDescriptor cannot be found in the applicationIllegalArgumentException
- If the class in the SELECTOR_CLASS parameter does not extend from theSelectorWindow
class, or is not found within the application, or the filter specified in the SELECTOR_FILTER_TYPE parameter is invalid- See Also:
-
-
Method Details
-
setDataDescriptor
Sets the DataDescriptor of the selector item- Parameters:
dataDescriptor
- The instance of the DataDescriptor- Returns:
- The selector item component
- Throws:
NullPointerException
- If the DataDescriptor was specified asnull
-
getDataDescriptor
Gets the DataDescriptor of the selector item- Returns:
- The DataDescriptor instance, that is used by the selector item, and supplies the set of values, or
null
if the selector item has no DataDescriptor specified.
-
setDataColumn
Sets the name of the DataDescriptor column that contains the selector item values. This column must exist in the DataDescriptor, that was previously specified.- Parameters:
dataColumnName
- The name of the DataDescriptor column that contains the selector item values- Returns:
- The selector item component
-
getDataColumnName
Gets the name of the DataDescriptor column that contains the selector item values.- Returns:
- The name of the column, or
null
if not specified
-
setDisplayColumn
Sets the name of the DataDescriptor column that contains the selector item display values. This column must exist in the DataDescriptor, that was previously specified.- Parameters:
dispalyColumnName
- The name of the DataDescriptor column that contains the selector item display values. These are displayed in the input field when the user selects a value- Returns:
- The selector item component
-
setDisplayColumns
Sets the name of the DataDescriptor columns that contain the selector item display values. These columns must exist in the DataDescriptor, that was previously specified.- Parameters:
displayColumns
- The name of the DataDescriptor columns that contain the selector item display values. These are displayed in the input field when the user selects a value- Returns:
- The selector item component
-
getDisplayColumnNames
Gets the name of the DataDescriptor columns that contain the selector item display values.- Returns:
- A list containing the name of the columns, or an empty list if there are none
-
setDisplayColumnSeparator
Sets the separator text, that separates the display values. By default, it's a regular whitespace.- Parameters:
separator
- The separator text. Ifnull
, the values will not be separated- Returns:
- The selector item component
-
getDisplayColumnSeparator
Gets the separator text, that separates the display values.- Returns:
- The separator text or
null
if none were specified
-
setDefaultFilterCriteria
Sets the default filter criteria, that will be applied to the values. The user cannot remove or overwrite this criteria.- Parameters:
criteria
- The default filter criteria, that will be applied to the values. The user cannot remove or overwrite this criteria.- Returns:
- The selector item component
-
getDefaultFilterCriteria
Gets the default filter criteria, that are applied to the values.- Returns:
- The default filter criteria or
null
if none was specified
-
drawEditor
Description copied from class:FormItem
Draws the editor component.
You do not need to use this method during development, but all components extending the form item must implement it. Use the method to generate the input field’s HTML code. This code is then inserted into the corresponding DOM code when drawing the form item.
- Specified by:
drawEditor
in classFormItem<Object,
SelectorItem> - Parameters:
writer
- The HTML string writer class instance; write here the HTML code for the input field
-
setDefaultValue
Sets the default value of the selector item- Specified by:
setDefaultValue
in classFormItem<Object,
SelectorItem> - Parameters:
defaultValue
- The default value of the selector item- Returns:
- Form item component
-
setValue
Sets the current value of the selector item- Overrides:
setValue
in classFormItem<Object,
SelectorItem> - Parameters:
value
- The current value of the selector item- Returns:
- Form item component
-
setReadOnly
Sets the selector item to be read only. By default, this is disabled, the user can modify the selector item's value- Overrides:
setReadOnly
in classFormItem<Object,
SelectorItem> - Parameters:
readOnly
- Iftrue
, the selector item will be read only, and the user won't be able to modify the value- Returns:
- The selector item component
-
setEnabled
Description copied from class:Component
Sets the component to be enabled. Defaults totrue
- Overrides:
setEnabled
in classFormItem<Object,
SelectorItem> - Parameters:
enabled
-true
, the component is enabled, otherwise it's disabled- Returns:
- The component
-
isReadOnly
public boolean isReadOnly()Description copied from class:FormItem
Checks if the form item is in read-only mode.- Overrides:
isReadOnly
in classFormItem<Object,
SelectorItem> - Returns:
- If
true
is set, the form item is in read-only mode and the user cannot modify its content. Otherwisefalse
.
-
afterDraw
public void afterDraw()Description copied from class:Component
The operations to be executed after the drawing of the componentBy default, this is an empty method. It has to be overwritten on a component or page if additional operations have to be executed after the drawing process. One such operation is data retrieval, which shouldn't run in constructors so that the user could see results of an operation or navigation process.
- Overrides:
afterDraw
in classFormItem<Object,
SelectorItem>
-
triggerChange
protected void triggerChange() -
getDisplayValue
Gets the selector item's current display value .- Specified by:
getDisplayValue
in interfaceDifferentDataDisplayValue
- Returns:
- The selector item's current display value, or
null
, if the value isnull
, or if it has no display value
-
getOriginalDisplayValue
Gets the selector item's original display value.- Specified by:
getOriginalDisplayValue
in interfaceDifferentDataDisplayValue
- Returns:
- The selector item's original display value, or
null
, if the value isnull
, or if it has no original display value
-
setSearchButtonVisible
Sets if the search button should appear on the right side of the input field. By default, it does not appear.- Parameters:
visible
- Iftrue
, the search button will be displayed. Otherwise, it will not- Returns:
- The selector item component
-
setState
Description copied from class:FormItem
Sets the form element state. By default, the form element is displayed in theFormItemState.DEFAULT
state.- Overrides:
setState
in classFormItem<Object,
SelectorItem> - Parameters:
formItemState
- Form item state Available states are listed in the enumFormItemState
.- Returns:
- Form element component
-
isSearchButtonVisible
public boolean isSearchButtonVisible()Determines if the search button is displayed on the right side of the input field.- Returns:
- If
true
, the search button will be displayed. Otherwise, it will not
-