com.vaadin.ui.
Enum HasChildMeasurementHint.ChildMeasurementHint
- java.lang.Object
-
- java.lang.Enum<HasChildMeasurementHint.ChildMeasurementHint>
-
- com.vaadin.ui.HasChildMeasurementHint.ChildMeasurementHint
-
All Implemented Interfaces:
Serializable
,Comparable<HasChildMeasurementHint.ChildMeasurementHint>
Enclosing interface:
public static enum HasChildMeasurementHint.ChildMeasurementHint extends Enum<HasChildMeasurementHint.ChildMeasurementHint>
Specifies how you would like child components measurements to be handled. Since this is a hint, it can be ignored when deemed necessary.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MEASURE_ALWAYS
Always measure all child components (default).
MEASURE_IF_NEEDED
Measure child component only if child component is a Layout or implements either ManagedLayout or ElementResizeListener.
MEASURE_NEVER
Never measure child components.
-
Method Summary
All Methods Modifier and Type Method Description static HasChildMeasurementHint.ChildMeasurementHint
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static HasChildMeasurementHint.ChildMeasurementHint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MEASURE_ALWAYS
public static final HasChildMeasurementHint.ChildMeasurementHint MEASURE_ALWAYS
Always measure all child components (default).
-
MEASURE_IF_NEEDED
public static final HasChildMeasurementHint.ChildMeasurementHint MEASURE_IF_NEEDED
Measure child component only if child component is a Layout or implements either ManagedLayout or ElementResizeListener.
-
MEASURE_NEVER
public static final HasChildMeasurementHint.ChildMeasurementHint MEASURE_NEVER
Never measure child components. This can improve rendering speed of components with lots of children (e.g. Table), but can cause some child components to be rendered incorrectly (e.g. ComboBox).
-
-
Method Detail
-
values
public static HasChildMeasurementHint.ChildMeasurementHint[] 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 (HasChildMeasurementHint.ChildMeasurementHint c : HasChildMeasurementHint.ChildMeasurementHint.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HasChildMeasurementHint.ChildMeasurementHint 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
-
-