Class Sizes
java.lang.Object
com.vaadin.featurepack.desktop.layouts.form.Sizes
- All Implemented Interfaces:
Serializable
Consists only of static methods that create constant sizes as required by the
FormLayout.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConstantSizeCreates and returns an instance ofConstantSizefrom the given encoded size and unit description.static ConstantSizedluX(int value) Creates and returns a ConstantSize for the specified value in horizontal dialog units.static ConstantSizedluY(int value) Creates and returns a ConstantSize for the specified value in vertical dialog units.static ConstantSizepixel(int value) Creates and returns a ConstantSize for the specified pixel value.
-
Method Details
-
constant
Creates and returns an instance ofConstantSizefrom the given encoded size and unit description.- Parameters:
encodedValueAndUnit- value and unit in string representation- Returns:
- a
ConstantSizefor the given value and unit
-
dluX
Creates and returns a ConstantSize for the specified value in horizontal dialog units.- Parameters:
value- size value in horizontal dialog units- Returns:
- the associated
ConstantSize
-
dluY
Creates and returns a ConstantSize for the specified value in vertical dialog units.- Parameters:
value- size value in vertical dialog units- Returns:
- the associated
ConstantSize
-
pixel
Creates and returns a ConstantSize for the specified pixel value.- Parameters:
value- value in pixel- Returns:
- the associated
ConstantSize
-