Uses of Enum Class
com.vaadin.flow.component.Unit
-
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.formlayout
Methods in com.vaadin.flow.component.formlayout with parameters of type UnitModifier and TypeMethodDescriptionvoid
FormLayout.setColumnSpacing
(float columnSpacing, Unit unit) Sets the gap between the columns.
void
FormLayout.setColumnWidth
(float columnWidth, Unit unit) Sets the width of columns that the component should use when
FormLayout.setAutoResponsive(boolean)
is enabled.void
FormLayout.setLabelSpacing
(float labelSpacing, Unit unit) Sets the gap between the label and the field which is used when labels are positioned aside.
void
FormLayout.setLabelWidth
(float width, Unit unit) Sets the width of side-positioned label.
void
FormLayout.setRowSpacing
(float rowSpacing, Unit unit) Sets the gap between the rows.
-
Uses of Unit in com.vaadin.flow.component.masterdetaillayout
Methods in com.vaadin.flow.component.masterdetaillayout with parameters of type UnitModifier and TypeMethodDescriptionvoid
MasterDetailLayout.setDetailMinSize
(float minSize, Unit unit) Sets the minimum size of the detail area in CSS length units.
void
MasterDetailLayout.setDetailSize
(float size, Unit unit) Sets the size of the detail area in CSS length units.
void
MasterDetailLayout.setMasterMinSize
(float minSize, Unit unit) Sets the minimum size of the master area in CSS length units.
void
MasterDetailLayout.setMasterSize
(float size, Unit unit) Sets the size of the master area in CSS length units.
-
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.