Class MultiSelectComboBoxI18n
- java.lang.Object
-
- com.vaadin.flow.component.combobox.MultiSelectComboBoxI18n
-
- All Implemented Interfaces:
Serializable
public class MultiSelectComboBoxI18n extends Object implements Serializable
Class for localization of theMultiSelectComboBox- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiSelectComboBoxI18n()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCleared()The text that is announced by screen readers when the clear button is clicked.StringgetDeselected()The text that is announced by screen readers when an item is removed from the selection.StringgetFocused()The text that is announced by screen readers when a chip is focused.StringgetSelected()The text that is announced by screen readers when an item is added to the selection.StringgetTotal()The text that is announced by screen readers to inform about the total number of selected items.MultiSelectComboBoxI18nsetCleared(String cleared)Sets the text that is announced by screen readers when the clear button is clicked.MultiSelectComboBoxI18nsetDeselected(String deselected)Sets the text that is announced by screen readers when an item is removed from the selection.MultiSelectComboBoxI18nsetFocused(String focused)Sets the text that is announced by screen readers when a chip is focused.MultiSelectComboBoxI18nsetSelected(String selected)Sets the text that is announced by screen readers when an item is added to the selection.MultiSelectComboBoxI18nsetTotal(String total)Sets the text that is announced by screen readers to inform about the total number of selected items.
-
-
-
Method Detail
-
getCleared
public String 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
public MultiSelectComboBoxI18n setCleared(String cleared)
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
public String 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
public MultiSelectComboBoxI18n setFocused(String focused)
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
public String 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
public MultiSelectComboBoxI18n setSelected(String selected)
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
public String 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
public MultiSelectComboBoxI18n setDeselected(String deselected)
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
public String 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
public MultiSelectComboBoxI18n setTotal(String total)
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
-
-