Class GridLayoutCompositeComponent.GridLayoutCompositeComponentBuilder
java.lang.Object
com._1c.g5.v8.dt.ui.aef.component.GridLayoutCompositeComponent.GridLayoutCompositeComponentBuilder
- Enclosing class:
- GridLayoutCompositeComponent
public static final class GridLayoutCompositeComponent.GridLayoutCompositeComponentBuilder
extends Object
A builder of grid components.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a builder with default grid layout parameters. -
Method Summary
Modifier and TypeMethodDescriptioncolumns(int numColumns) Sets the number of columns.create()Returns a new grid component with the layout defined by builder.create(ContainerComponent<?, ?> parent) Creates a new grid component with the layout defined by builder, adds it to the specified parent and returns it.equalWidth(boolean value) Sets "Equal width" flag.useOptimized(boolean value) Sets "Use optimized" flag.
-
Constructor Details
-
GridLayoutCompositeComponentBuilder
public GridLayoutCompositeComponentBuilder()Constructs a builder with default grid layout parameters.
-
-
Method Details
-
columns
Sets the number of columns.- Parameters:
numColumns- Number of columns- Returns:
- this for chaining
-
equalWidth
Sets "Equal width" flag.- Parameters:
value- Flag value- Returns:
- this for chaining
-
useOptimized
Sets "Use optimized" flag.- Parameters:
value- Flag value- Returns:
- this for chaining
-
create
Returns a new grid component with the layout defined by builder.- Returns:
- New grid component
-
create
Creates a new grid component with the layout defined by builder, adds it to the specified parent and returns it.- Parameters:
parent- the parent of the created grid component
-