Package | Description |
---|---|
com.vaadin.flow.component |
Modifier and Type | Method and Description |
---|---|
static Unit |
Unit.getUnitFromSymbol(String symbol)
Convert unit string symbol to Unit.
|
static Unit |
Unit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Unit[] |
Unit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
default Optional<Unit> |
HasSize.getHeightUnit()
Gets the height unit of the component, if defined.
|
static Optional<Unit> |
Unit.getUnit(String cssSize)
Gives size unit of the css string representing a size.
|
default Optional<Unit> |
HasSize.getWidthUnit()
Gets the width unit of the component, if defined.
|
Modifier and Type | Method and Description |
---|---|
static String |
HasSize.getCssSize(float size,
Unit unit)
Utility method for internal use.
|
default void |
HasSize.setHeight(float height,
Unit unit)
Sets the height of the component.
|
default void |
HasSize.setMaxHeight(float maxHeight,
Unit unit)
Sets the max-height of the component.
|
default void |
HasSize.setMaxWidth(float maxWidth,
Unit unit)
Sets the max-width of the component.
|
default void |
HasSize.setMinHeight(float minHeight,
Unit unit)
Sets the min-height of the component.
|
default void |
HasSize.setMinWidth(float minWidth,
Unit unit)
Sets the min-width of the component.
|
default void |
HasSize.setWidth(float width,
Unit unit)
Sets the width of the component.
|
Copyright © 2000–2021 Vaadin Ltd. All rights reserved.