Enum MultiSelectComboBox.AutoExpandMode
- java.lang.Object
-
- java.lang.Enum<MultiSelectComboBox.AutoExpandMode>
-
- com.vaadin.flow.component.combobox.MultiSelectComboBox.AutoExpandMode
-
- All Implemented Interfaces:
Serializable
,Comparable<MultiSelectComboBox.AutoExpandMode>
- 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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTH
Field expands horizontally until max-width is reached, then expands vertically and chips wrap.HORIZONTAL
Field expands horizontally until max-width is reached, then collapses to overflow chip.NONE
Field does not expand and collapses to overflow chip.VERTICAL
Field expands vertically and chips wrap.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getExpandHorizontally()
Gets whether to expand horizontally.boolean
getExpandVertically()
Gets whether to expand vertically.static MultiSelectComboBox.AutoExpandMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static MultiSelectComboBox.AutoExpandMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERTICAL
public static final MultiSelectComboBox.AutoExpandMode VERTICAL
Field expands vertically and chips wrap.
-
HORIZONTAL
public static final MultiSelectComboBox.AutoExpandMode HORIZONTAL
Field expands horizontally until max-width is reached, then collapses to overflow chip.
-
BOTH
public static final MultiSelectComboBox.AutoExpandMode BOTH
Field expands horizontally until max-width is reached, then expands vertically and chips wrap.
-
NONE
public static final MultiSelectComboBox.AutoExpandMode NONE
Field does not expand and collapses to overflow chip.
-
-
Method Detail
-
values
public static MultiSelectComboBox.AutoExpandMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MultiSelectComboBox.AutoExpandMode c : MultiSelectComboBox.AutoExpandMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultiSelectComboBox.AutoExpandMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
-
-