ModifiersBuilders.Border.Builder


public final class ModifiersBuilders.Border.Builder


Builder for Border

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ModifiersBuilders.Border

Builds an instance from accumulated values.

@NonNull ModifiersBuilders.Border.Builder

Sets the color of the border.

@NonNull ModifiersBuilders.Border.Builder

Sets the width of the border, in DP.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull ModifiersBuilders.Border build()

Builds an instance from accumulated values.

setColor

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Border.Builder setColor(@NonNull ColorBuilders.ColorProp color)

Sets the color of the border.

While this field is statically accessible from 1.0, it's only bindable since version 1.2 and renderers supporting version 1.2 will use the dynamic value (if set).

setWidth

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Border.Builder setWidth(@NonNull DimensionBuilders.DpProp width)

Sets the width of the border, in DP.

Note that this field only supports static values.