Method Summary
All Methods Instance Methods Abstract Methods
void
Adds the specified component to the layout, using the specified
constraint object.
void
If the layout manager uses a per-component string, adds the component
comp to the layout, associating it with the string specified by
name.
float
Returns the alignment along the x axis.
float
Returns the alignment along the y axis.
void
Invalidates the layout, indicating that if the layout manager has cached
information it should be discarded.
void
Lays out the specified container.
Calculates the maximum size dimensions for the specified container, given
the components it contains.
Calculates the minimum size dimensions for the specified container, given
the components it contains.
Calculates the preferred size dimensions for the specified container,
given the components it contains.
void
Removes the specified component from the layout.
Method Details
addLayoutComponent
void addLayoutComponent (com.vaadin.flow.component.Component comp,
Object constraints)
Adds the specified component to the layout, using the specified
constraint object.
Parameters:
comp - the component to be added
constraints - where/how the component is added to the layout.
maximumLayoutSize
Dimension maximumLayoutSize (com.vaadin.flow.component.Component container)
Calculates the maximum size dimensions for the specified container, given
the components it contains.
Parameters:
target - the target container
Returns:
the maximum size of the container
See Also:
getLayoutAlignmentX
float getLayoutAlignmentX (com.vaadin.flow.component.Component container)
Returns the alignment along the x axis. This specifies how the component
would like to be aligned relative to other components. The value should
be a number between 0 and 1 where 0 represents alignment along the
origin, 1 is aligned the furthest away from the origin, 0.5 is centered,
etc.
Parameters:
target - the target container
Returns:
the x-axis alignment preference
getLayoutAlignmentY
float getLayoutAlignmentY (com.vaadin.flow.component.Component container)
Returns the alignment along the y axis. This specifies how the component
would like to be aligned relative to other components. The value should
be a number between 0 and 1 where 0 represents alignment along the
origin, 1 is aligned the furthest away from the origin, 0.5 is centered,
etc.
Parameters:
target - the target container
Returns:
the y-axis alignment preference
invalidateLayout
void invalidateLayout (com.vaadin.flow.component.Component container)
Invalidates the layout, indicating that if the layout manager has cached
information it should be discarded.
Parameters:
target - the target container
addLayoutComponent
void addLayoutComponent (String name,
com.vaadin.flow.component.Component comp)
If the layout manager uses a per-component string, adds the component
comp to the layout, associating it with the string specified by
name.
Parameters:
name - the string to be associated with the component
comp - the component to be added
removeLayoutComponent
void removeLayoutComponent (com.vaadin.flow.component.Component container)
Removes the specified component from the layout.
Parameters:
comp - the component to be removed
preferredLayoutSize
Dimension preferredLayoutSize (com.vaadin.flow.component.Component container)
Calculates the preferred size dimensions for the specified container,
given the components it contains.
Parameters:
parent - the container to be laid out
Returns:
the preferred dimension for the container
See Also:
minimumLayoutSize
Dimension minimumLayoutSize (com.vaadin.flow.component.Component container)
Calculates the minimum size dimensions for the specified container, given
the components it contains.
Parameters:
parent - the component to be laid out
Returns:
the minimum dimension for the container
See Also:
layoutContainer
void layoutContainer (com.vaadin.flow.component.Component container)
Lays out the specified container.
Parameters:
parent - the container to be laid out