Shape.Builder instead.@Deprecated(since="21.1") public static final class Layout.Builder extends Object
Layout| Modifier and Type | Method and Description |
|---|---|
Layout.Builder |
addAllowedImplicitCast(Layout.ImplicitCast allowedImplicitCast)
Deprecated.
Add an allowed implicit cast in this layout.
|
Layout |
build()
Deprecated.
Build
Layout from the configuration in this builder. |
Layout.Builder |
setAllowedImplicitCasts(EnumSet allowedImplicitCasts)
Deprecated.
Set the allowed implicit casts in this layout.
|
Layout.Builder |
type(Class<? extends DynamicObject> layoutClass)
Deprecated.
Set the
DynamicObject layout class to use. |
public Layout build()
Layout from the configuration in this builder.IllegalArgumentException - if the layout class declares
invalid @DynamicField-annotated fields.public Layout.Builder setAllowedImplicitCasts(EnumSet allowedImplicitCasts)
Layout.ImplicitCastpublic Layout.Builder addAllowedImplicitCast(Layout.ImplicitCast allowedImplicitCast)
Layout.ImplicitCastpublic Layout.Builder type(Class<? extends DynamicObject> layoutClass)
DynamicObject layout class to use.
Must be DynamicObject or a subclass thereof.Shape.Builder.layout(Class)