Uses of Class
com.vaadin.flow.component.Unit
-
Packages that use Unit Package Description com.vaadin.flow.component -
-
Uses of Unit in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return Unit Modifier and Type Method Description static UnitUnit. getUnitFromSymbol(String symbol)Convert unit string symbol to Unit.static UnitUnit. 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.Methods in com.vaadin.flow.component that return types with arguments of type Unit Modifier and Type Method 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.Methods in com.vaadin.flow.component with parameters of type Unit Modifier and Type Method Description static StringHasSize. getCssSize(float size, Unit unit)Utility method for internal use.default voidHasSize. setHeight(float height, Unit unit)Sets the height of the component.default voidHasSize. setMaxHeight(float maxHeight, Unit unit)Sets the max-height of the component.default voidHasSize. setMaxWidth(float maxWidth, Unit unit)Sets the max-width of the component.default voidHasSize. setMinHeight(float minHeight, Unit unit)Sets the min-height of the component.default voidHasSize. setMinWidth(float minWidth, Unit unit)Sets the min-width of the component.default voidHasSize. setWidth(float width, Unit unit)Sets the width of the component.
-