Class MultiSelectComboBoxI18n
java.lang.Object
com.vaadin.flow.component.combobox.MultiSelectComboBoxI18n
- All Implemented Interfaces:
Serializable
Class for localization of the
MultiSelectComboBox
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe text that is announced by screen readers when the clear button is clicked.The text that is announced by screen readers when an item is removed from the selection.The text that is announced by screen readers when a chip is focused.The text that is announced by screen readers when an item is added to the selection.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.setDeselected
(String deselected) Sets the text that is announced by screen readers when an item is removed from the selection.setFocused
(String focused) Sets the text that is announced by screen readers when a chip is focused.setSelected
(String selected) Sets the text that is announced by screen readers when an item is added to the selection.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
-
getCleared
The text that is announced by screen readers when the clear button is clicked.The value is
null
by 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
null
if 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 ornull
if 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
null
by 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
null
if 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 ornull
if 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
null
by 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
null
if 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 ornull
if 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
null
by 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
null
if 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 ornull
if 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
null
by 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
null
if 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 ornull
if the default value of the web component should be used.- Returns:
- this instance for method chaining
-