Class MultiSelectComboBoxI18n
- All Implemented Interfaces:
ComboBoxBaseI18n,Serializable
MultiSelectComboBox- Since:
- 23.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe text that is announced by screen readers when the clear button is clicked.The text of the select all button when no filter is set and all items are selected.The text that is announced by screen readers when an item is removed from the selection.The text of the select all button when a filter is set and all items that match the filter are selected.The text that is announced by screen readers when a chip is focused.Gets the error message displayed when the field is required but empty.The text of the select all button when no filter is set.The text that is announced by screen readers when an item is added to the selection.The text of the select all button when a filter is set.getTotal()The text that is announced by screen readers to inform about the total number of selected items.setCleared(String cleared) Sets the text that is announced by screen readers when the clear button is clicked.setDeselectAll(String deselectAll) Sets the text of the select all button when no filter is set and all items are selected.setDeselected(String deselected) Sets the text that is announced by screen readers when an item is removed from the selection.setDeselectFiltered(String deselectFiltered) Sets the text of the select all button when a filter is set and all items that match the filter are selected.setFocused(String focused) Sets the text that is announced by screen readers when a chip is focused.setRequiredErrorMessage(String errorMessage) Sets the error message to display when the field is required but empty.setSelectAll(String selectAll) Sets the text of the select all button when no filter is set.setSelected(String selected) Sets the text that is announced by screen readers when an item is added to the selection.setSelectFiltered(String selectFiltered) Sets the text of the select all button when a filter is set.Sets the text that is announced by screen readers to inform about the total number of selected items.
-
Constructor Details
-
MultiSelectComboBoxI18n
public MultiSelectComboBoxI18n()
-
-
Method Details
-
getRequiredErrorMessage
Gets the error message displayed when the field is required but empty.- Specified by:
getRequiredErrorMessagein interfaceComboBoxBaseI18n- Returns:
- the error message or
nullif not set - Since:
- 24.5
- See Also:
-
setRequiredErrorMessage
Sets the error message to display when the field is required but empty.Note, custom error messages set with
HasValidationProperties.setErrorMessage(String)take priority over i18n error messages.- Parameters:
errorMessage- the error message ornullto clear it- Returns:
- this instance for method chaining
- Since:
- 24.5
- See Also:
-
getCleared
The text that is announced by screen readers when the clear button is clicked.The value is
nullby default, which means the default value of the web component will be used.- Returns:
- the text that is announced by screen readers when the clear
button is clicked or
nullif the default value of the web component is used.
-
setCleared
Sets the text that is announced by screen readers when the clear button is clicked.- Parameters:
cleared- the text that is announced by screen readers when the clear button is clicked ornullif the default value of the web component should be used.- Returns:
- this instance for method chaining
-
getFocused
The text that is announced by screen readers when a chip is focused.The value is
nullby default, which means the default value of the web component will be used.- Returns:
- the text that is announced by screen readers when a chip is
focused or
nullif the default value of the web component is used.
-
setFocused
Sets the text that is announced by screen readers when a chip is focused. The label of the chip will be prepended to this text.- Parameters:
focused- the text that is announced by screen readers when a chip is focused ornullif the default value of the web component should be used.- Returns:
- this instance for method chaining
-
getSelected
The text that is announced by screen readers when an item is added to the selection.The value is
nullby default, which means the default value of the web component will be used.- Returns:
- the text that is announced by screen readers when an item is
added to the selection or
nullif the default value of the web component is used.
-
setSelected
Sets the text that is announced by screen readers when an item is added to the selection. The label of the item will be prepended to this text.- Parameters:
selected- the text that is announced by screen readers when an item is added to the selection ornullif the default value of the web component should be used.- Returns:
- this instance for method chaining
-
getDeselected
The text that is announced by screen readers when an item is removed from the selection.The value is
nullby default, which means the default value of the web component will be used.- Returns:
- the text that is announced by screen readers when an item is
removed from the selection or
nullif the default value of the web component is used.
-
setDeselected
Sets the text that is announced by screen readers when an item is removed from the selection. The label of the item will be prepended to this text.- Parameters:
deselected- the text that is announced by screen readers when an item is removed from the selection ornullif the default value of the web component should be used.- Returns:
- this instance for method chaining
-
getTotal
The text that is announced by screen readers to inform about the total number of selected items.The value is
nullby default, which means the default value of the web component will be used.- Returns:
- the text that is announced by screen readers to inform about the
total number of selected items or
nullif the default value of the web component is used.
-
setTotal
Sets the text that is announced by screen readers to inform about the total number of selected items. The string must contain a `{count}` placeholder that will be replaced with the actual count of selected items by the component.- Parameters:
total- the text that is announced by screen readers to inform about the total number of selected items ornullif the default value of the web component should be used.- Returns:
- this instance for method chaining
-
getSelectAll
The text of the select all button when no filter is set.The value is
nullby default, which means the default value of the web component will be used.- Returns:
- the text of the select all button when no filter is set, or
nullif the default value of the web component is used - Since:
- 25.4
- See Also:
-
setSelectAll
Sets the text of the select all button when no filter is set.- Parameters:
selectAll- the text of the select all button when no filter is set, ornullif the default value of the web component should be used- Returns:
- this instance for method chaining
- Since:
- 25.4
- See Also:
-
getDeselectAll
The text of the select all button when no filter is set and all items are selected.The value is
nullby default, which means the default value of the web component will be used.- Returns:
- the text of the select all button when no filter is set and all
items are selected, or
nullif the default value of the web component is used - Since:
- 25.4
- See Also:
-
setDeselectAll
Sets the text of the select all button when no filter is set and all items are selected.- Parameters:
deselectAll- the text of the select all button when no filter is set and all items are selected, ornullif the default value of the web component should be used- Returns:
- this instance for method chaining
- Since:
- 25.4
- See Also:
-
getSelectFiltered
The text of the select all button when a filter is set.The value is
nullby default, which means the default value of the web component will be used.- Returns:
- the text of the select all button when a filter is set, or
nullif the default value of the web component is used - Since:
- 25.4
- See Also:
-
setSelectFiltered
Sets the text of the select all button when a filter is set.- Parameters:
selectFiltered- the text of the select all button when a filter is set, ornullif the default value of the web component should be used- Returns:
- this instance for method chaining
- Since:
- 25.4
- See Also:
-
getDeselectFiltered
The text of the select all button when a filter is set and all items that match the filter are selected.The value is
nullby default, which means the default value of the web component will be used.- Returns:
- the text of the select all button when a filter is set and all
items that match the filter are selected, or
nullif the default value of the web component is used - Since:
- 25.4
- See Also:
-
setDeselectFiltered
Sets the text of the select all button when a filter is set and all items that match the filter are selected.- Parameters:
deselectFiltered- the text of the select all button when a filter is set and all items that match the filter are selected, ornullif the default value of the web component should be used- Returns:
- this instance for method chaining
- Since:
- 25.4
- See Also:
-