Package com.vaadin.shared.ui.grid
Enum ColumnResizeMode
- java.lang.Object
-
- java.lang.Enum<ColumnResizeMode>
-
- com.vaadin.shared.ui.grid.ColumnResizeMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ColumnResizeMode>
public enum ColumnResizeMode extends Enum<ColumnResizeMode>
Collection of modes used for resizing columns in the Grid.- Since:
- 7.7.5
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANIMATED
When column resize mode is set to Animated, columns are resized as they are dragged.SIMPLE
When column resize mode is set to Simple, dragging to resize a column will show a marker, and the column will resize only after the mouse button or touch is released.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ColumnResizeMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ColumnResizeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANIMATED
public static final ColumnResizeMode ANIMATED
When column resize mode is set to Animated, columns are resized as they are dragged.
-
SIMPLE
public static final ColumnResizeMode SIMPLE
When column resize mode is set to Simple, dragging to resize a column will show a marker, and the column will resize only after the mouse button or touch is released.
-
-
Method Detail
-
values
public static ColumnResizeMode[] 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 (ColumnResizeMode c : ColumnResizeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColumnResizeMode 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
-
-