LayoutElementBuilders.Spacer.Builder

Added in 1.0.0
Deprecated in 1.2.0

public final class LayoutElementBuilders.Spacer.Builder implements LayoutElementBuilders.LayoutElement.Builder


Builder for Spacer.

Summary

Public constructors

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
public Builder()

Public methods

build

Added in 1.5.0-alpha04
Deprecated in 1.5.0-alpha04
public @NonNull LayoutElementBuilders.Spacer build()

Builds an instance with values accumulated in this Builder.

setHeight

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.Spacer.Builder setHeight(@NonNull DimensionBuilders.SpacerDimension height)

Sets the height of this spacer. If not defined, defaults to 0.

setWidth

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.Spacer.Builder setWidth(@NonNull DimensionBuilders.SpacerDimension width)

Sets the width of this Spacer. When this is added as the direct child of an Arc, this must be specified as an angular dimension, otherwise a linear dimension must be used. If not defined, defaults to 0.