C - Concrete configurator typepublic interface FlexComponentConfigurator<C extends FlexComponentConfigurator<C>> extends HasComponentsConfigurator<C>, HasStyleConfigurator<C>, HasSizeConfigurator<C>
FlexComponent type components.HasEnabledConfigurator.BaseHasEnabledConfiguratorHasStyleConfigurator.BaseHasStyleConfiguratorHasSizeConfigurator.BaseHasSizeConfiguratorFULL_SIZE| Modifier and Type | Method and Description |
|---|---|
default C |
addAndAlign(com.vaadin.flow.component.Component component,
com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
Adds a component to the layout using given
alignment. |
default C |
addAndAlign(HasComponent component,
com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
Adds a component to the layout using given
alignment. |
default C |
addAndExpand(com.vaadin.flow.component.Component component,
double flexGrow)
Adds the given component as child of this component and set the flex grow property for the component.
|
default C |
addAndExpand(HasComponent component,
double flexGrow)
Adds the component of given
HasComponent as child of this component and set the flex grow property for
the component. |
default C |
align(com.vaadin.flow.component.Component component,
com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
Set the alignment for an individual component inside the layout.
|
default C |
align(HasComponent component,
com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
Set the alignment for an individual component inside the layout.
|
C |
alignItems(com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
Sets the default alignment to be used by all components without individual alignments inside the layout.
|
C |
alignSelf(com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment,
com.vaadin.flow.component.HasElement... elementContainers)
Sets an alignment for individual element container inside the layout.
|
C |
expand(com.vaadin.flow.component.Component... componentsToExpand)
Expands the given components.
|
default C |
expand(HasComponent... componentsToExpand)
Expands the given components.
|
C |
flexGrow(double flexGrow,
com.vaadin.flow.component.HasElement... elementContainers)
Sets the flex grow property of the components inside the layout.
|
C |
justifyContentMode(com.vaadin.flow.component.orderedlayout.FlexComponent.JustifyContentMode justifyContentMode)
Gets the
FlexComponent.JustifyContentMode used by this layout. |
add, addwithEventListener, withEventListener, withThemeNamecreate, disabled, enabledcreate, styleName, styleNamescreate, fullHeight, fullSize, fullWidth, height, height, heightUndefined, maxHeight, maxWidth, minHeight, minWidth, sizeUndefined, width, width, widthUndefinedC alignItems(com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
The default alignment is FlexComponent.Alignment.STRETCH.
alignment - the alignment to apply to the components. Setting null will reset the alignment to
its defaultC alignSelf(com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment, com.vaadin.flow.component.HasElement... elementContainers)
alignItems.
The default alignment for individual components is FlexComponent.Alignment.AUTO.
alignment - the individual alignment for the children components. Setting null will reset the
alignment to its defaultelementContainers - The element containers (components) to which the individual alignment should be setdefault C align(com.vaadin.flow.component.Component component, com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
component - the component to set the alignment foralignment - the Alignment to setdefault C align(HasComponent component, com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
component - the component to set the alignment for (not null)alignment - the Alignment to setC flexGrow(double flexGrow, com.vaadin.flow.component.HasElement... elementContainers)
The flex grow property specifies what amount of the available space inside the layout the component should take up, proportionally to the other components.
For example, if all components have a flex grow property value set to 1, the remaining space in the layout will be distributed equally to all components inside the layout. If you set a flex grow property of one component to 2, that component will take twice the available space as the other components, and so on.
Setting to flex grow property value 0 disables the expansion of the element container. Negative values are not allowed.
flexGrow - the proportion of the available space the element container should take upelementContainers - the containers (components) to apply the flex grow propertydefault C addAndExpand(com.vaadin.flow.component.Component component, double flexGrow)
The flex grow property specifies what amount of the available space inside the layout the component should take up, proportionally to the other components.
For example, if all components have a flex grow property value set to 1, the remaining space in the layout will be distributed equally to all components inside the layout. If you set a flex grow property of one component to 2, that component will take twice the available space as the other components, and so on.
Setting to flex grow property value 0 disables the expansion of the element container. Negative values are not allowed.
component - The component to addflexGrow - the proportion of the available space the element container should take updefault C addAndExpand(HasComponent component, double flexGrow)
HasComponent as child of this component and set the flex grow property for
the component.
The flex grow property specifies what amount of the available space inside the layout the component should take up, proportionally to the other components.
For example, if all components have a flex grow property value set to 1, the remaining space in the layout will be distributed equally to all components inside the layout. If you set a flex grow property of one component to 2, that component will take twice the available space as the other components, and so on.
Setting to flex grow property value 0 disables the expansion of the element container. Negative values are not allowed.
component - The HasComponent to addflexGrow - the proportion of the available space the element container should take upC justifyContentMode(com.vaadin.flow.component.orderedlayout.FlexComponent.JustifyContentMode justifyContentMode)
FlexComponent.JustifyContentMode used by this layout.
The default justify content mode is FlexComponent.JustifyContentMode.START.
justifyContentMode - the justify content mode of the layout, never nullC expand(com.vaadin.flow.component.Component... componentsToExpand)
It effectively sets 1 as a flex grow property value for each component.
componentsToExpand - components to expanddefault C expand(HasComponent... componentsToExpand)
It effectively sets 1 as a flex grow property value for each component.
componentsToExpand - components to expanddefault C addAndAlign(com.vaadin.flow.component.Component component, com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
alignment.component - The component to addalignment - the Alignment to use for the componentdefault C addAndAlign(HasComponent component, com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
alignment.component - The component to add (not null)alignment - the Alignment to use for the componentCopyright © 2020 The Holon Platform. All rights reserved.