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
Constructors Constructor Description GridLayoutCompositeComponentBuilder()
Constructs a builder with default grid layout parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GridLayoutCompositeComponent.GridLayoutCompositeComponentBuilder
columns(int numColumns)
Sets the number of columns.GridLayoutCompositeComponent
create()
Returns a new grid component with the layout defined by builder.GridLayoutCompositeComponent
create(ContainerComponent<?,?> parent)
Creates a new grid component with the layout defined by builder, adds it to the specified parent and returns it.GridLayoutCompositeComponent.GridLayoutCompositeComponentBuilder
equalWidth(boolean value)
Sets "Equal width" flag.GridLayoutCompositeComponent.GridLayoutCompositeComponentBuilder
useOptimized(boolean value)
Sets "Use optimized" flag.
-
-
-
Method Detail
-
columns
public GridLayoutCompositeComponent.GridLayoutCompositeComponentBuilder columns(int numColumns)
Sets the number of columns.- Parameters:
numColumns
- Number of columns- Returns:
- this for chaining
-
equalWidth
public GridLayoutCompositeComponent.GridLayoutCompositeComponentBuilder equalWidth(boolean value)
Sets "Equal width" flag.- Parameters:
value
- Flag value- Returns:
- this for chaining
-
useOptimized
public GridLayoutCompositeComponent.GridLayoutCompositeComponentBuilder useOptimized(boolean value)
Sets "Use optimized" flag.- Parameters:
value
- Flag value- Returns:
- this for chaining
-
create
public GridLayoutCompositeComponent create()
Returns a new grid component with the layout defined by builder.- Returns:
- New grid component
-
create
public GridLayoutCompositeComponent create(ContainerComponent<?,?> parent)
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
-
-