| Modifier and Type | Method and Description |
|---|---|
Layout.Builder |
addAllowedImplicitCast(Layout.ImplicitCast allowedImplicitCast)
Add an allowed implicit cast in this layout.
|
Layout |
build()
Build
Layout from the configuration in this builder. |
Layout.Builder |
setAllowedImplicitCasts(EnumSet<Layout.ImplicitCast> allowedImplicitCasts)
Set the allowed implicit casts in this layout.
|
Layout.Builder |
type(Class<? extends DynamicObject> layoutClass)
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<Layout.ImplicitCast> 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)