Enum Class MultiSelectComboBox.AutoExpandMode
java.lang.Object
java.lang.Enum<MultiSelectComboBox.AutoExpandMode>
com.vaadin.flow.component.combobox.MultiSelectComboBox.AutoExpandMode
- All Implemented Interfaces:
Serializable
,Comparable<MultiSelectComboBox.AutoExpandMode>
,Constable
- Enclosing class:
- MultiSelectComboBox<TItem>
public static enum MultiSelectComboBox.AutoExpandMode
extends Enum<MultiSelectComboBox.AutoExpandMode>
Defines possible behavior of the component when not all selected items
can be displayed as chips within the current field width.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionField expands horizontally until max-width is reached, then expands vertically and chips wrap.Field expands horizontally until max-width is reached, then collapses to overflow chip.Field does not expand and collapses to overflow chip.Field expands vertically and chips wrap. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets whether to expand horizontally.boolean
Gets whether to expand vertically.Returns the enum constant of this class with the specified name.static MultiSelectComboBox.AutoExpandMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VERTICAL
Field expands vertically and chips wrap. -
HORIZONTAL
Field expands horizontally until max-width is reached, then collapses to overflow chip. -
BOTH
Field expands horizontally until max-width is reached, then expands vertically and chips wrap. -
NONE
Field does not expand and collapses to overflow chip.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getExpandHorizontally
public boolean getExpandHorizontally()Gets whether to expand horizontally.- Returns:
- Whether to expand horizontally
-
getExpandVertically
public boolean getExpandVertically()Gets whether to expand vertically.- Returns:
- Whether to expand vertically
-