We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
Uses of Enum Class
com.vaadin.flow.component.Unit
Packages that use Unit
Package
Description
-
Uses of Unit in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return UnitModifier and TypeMethodDescriptionstatic Unit
Unit.getUnitFromSymbol
(String symbol) Convert unit string symbol to Unit.
static Unit
Returns the enum constant of this class with the specified name.
static Unit[]
Unit.values()
Returns an array containing the constants of this enum class, in the order they are declared.
Methods in com.vaadin.flow.component that return types with arguments of type UnitModifier and TypeMethodDescriptionHasSize.getHeightUnit()
Gets the height unit of the component, if defined.
Gives size unit of the css string representing a size.
HasSize.getWidthUnit()
Gets the width unit of the component, if defined.
Methods in com.vaadin.flow.component with parameters of type UnitModifier and TypeMethodDescriptionstatic String
HasSize.getCssSize
(float size, Unit unit) Utility method for internal use.
default void
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
Sets the width of the component.
-
Uses of Unit in com.vaadin.flow.component.combobox
Methods in com.vaadin.flow.component.combobox with parameters of type UnitModifier and TypeMethodDescriptionvoid
ComboBox.setOverlayWidth
(float width, Unit unit) Sets the dropdown overlay width.
void
MultiSelectComboBox.setOverlayWidth
(float width, Unit unit) Sets the dropdown overlay width.
-
Uses of Unit in com.vaadin.flow.component.orderedlayout
Methods in com.vaadin.flow.component.orderedlayout with parameters of type UnitModifier and TypeMethodDescriptiondefault void
ThemableLayout.setSpacing
(float spacing, Unit unit) Sets the spacing between the components inside the layout.
-
Uses of Unit in com.vaadin.flow.component.select
Methods in com.vaadin.flow.component.select with parameters of type UnitModifier and TypeMethodDescriptionvoid
Select.setOverlayWidth
(float width, Unit unit) Sets the dropdown overlay width.