C - Concrete configurator typepublic interface HasSizeConfigurator<C extends HasSizeConfigurator<C>>
HasSize type components.| Modifier and Type | Interface and Description |
|---|---|
static interface |
HasSizeConfigurator.BaseHasSizeConfigurator
Base
HasSizeConfigurator. |
| Modifier and Type | Method and Description |
|---|---|
static HasSizeConfigurator.BaseHasSizeConfigurator |
create(com.vaadin.flow.component.HasSize component)
Create a new
HasSizeConfigurator.BaseHasSizeConfigurator. |
default C |
fullHeight()
Set the component heigth to
100%. |
default C |
fullSize()
Set the component width and heigth to
100%. |
default C |
fullWidth()
Set the component width to
100%. |
default C |
height(float height,
Unit unit)
Sets the height of the component, using a value and a size
Unit. |
C |
height(String height)
Sets the height of the component.
|
default C |
heightUndefined()
Clears any defined height.
|
C |
maxHeight(String maxHeight)
Set the max-height of the component.
|
C |
maxWidth(String maxWidth)
Set the max-width of the component.
|
C |
minHeight(String minHeight)
Set the min-height of the component.
|
C |
minWidth(String minWidth)
Set the min-width of the component.
|
default C |
sizeUndefined()
Clears any size settings.
|
default C |
width(float width,
Unit unit)
Sets the width of the component, using a value and a size
Unit. |
C |
width(String width)
Sets the width of the component.
|
default C |
widthUndefined()
Clears any defined width.
|
static final String FULL_SIZE
C width(String width)
The width should be in a format understood by the browser, e.g. "100px" or "2.5em".
If the provided width value is null then width is removed.
width - the width to set, may be nullC height(String height)
The height should be in a format understood by the browser, e.g. "100px" or "2.5em".
If the provided height value is null then height is removed.
height - the height to set, may be nulldefault C width(float width, Unit unit)
Unit.
Negative number implies unspecified size.
width - The width of the component, negative values implies unspecified widthunit - The size unit used for the widthdefault C height(float height, Unit unit)
Unit.
Negative number implies unspecified size.
height - The height of the component, negative values implies unspecified heightunit - The size unit used for the heightdefault C fullWidth()
100%.default C fullHeight()
100%.default C fullSize()
100%.default C widthUndefined()
default C heightUndefined()
default C sizeUndefined()
C minWidth(String minWidth)
The width should be in a format understood by the browser, e.g. "100px" or "2.5em".
minWidth - the min width to set, may be nullC maxWidth(String maxWidth)
The width should be in a format understood by the browser, e.g. "100px" or "2.5em".
maxWidth - the max width to set, may be nullC minHeight(String minHeight)
The height should be in a format understood by the browser, e.g. "100px" or "2.5em".
minHeight - the min height to set, may be nullC maxHeight(String maxHeight)
The height should be in a format understood by the browser, e.g. "100px" or "2.5em".
maxHeight - the max height to set, may be nullstatic HasSizeConfigurator.BaseHasSizeConfigurator create(com.vaadin.flow.component.HasSize component)
HasSizeConfigurator.BaseHasSizeConfigurator.component - Component to configure (not null)HasSizeConfigurator.BaseHasSizeConfiguratorCopyright © 2020 The Holon Platform. All rights reserved.