Class GridBagLayout
java.lang.Object
com.vaadin.featurepack.desktop.layouts.AbstractLayout
com.vaadin.featurepack.desktop.layouts.GridBagLayout
- All Implemented Interfaces:
Serializable
GridBagLayout is a flexible layout that aligns components vertically
and horizontally, without requiring the components to be of the same size.
The layout maintains a dynamic rectangular grid of cells, with each component
occupying one or more cells, known as its display area. The layout uses
GridBagConstraints instances to specify the constraints for each
component that is added to the layout.- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(com.vaadin.flow.component.Component component) getConstraints(com.vaadin.flow.component.Component component) protected voidonContainerAttach(com.vaadin.flow.component.AttachEvent event) voidremoveComponent(com.vaadin.flow.component.Component component) voidsetConstraints(com.vaadin.flow.component.Component component, Object constraintsObject) voidsetContainer(com.vaadin.flow.component.Component container) Methods inherited from class com.vaadin.featurepack.desktop.layouts.AbstractLayout
getComponents, getContainer, onContainerDetach
-
Constructor Details
-
GridBagLayout
public GridBagLayout()
-
-
Method Details
-
onContainerAttach
protected void onContainerAttach(com.vaadin.flow.component.AttachEvent event) - Overrides:
onContainerAttachin classAbstractLayout
-
setContainer
public void setContainer(com.vaadin.flow.component.Component container) - Overrides:
setContainerin classAbstractLayout
-
addComponent
public void addComponent(com.vaadin.flow.component.Component component) - Overrides:
addComponentin classAbstractLayout
-
removeComponent
public void removeComponent(com.vaadin.flow.component.Component component) - Overrides:
removeComponentin classAbstractLayout
-
setConstraints
- Specified by:
setConstraintsin classAbstractLayout
-
getConstraints
- Specified by:
getConstraintsin classAbstractLayout
-