Interface Modal.Builder
- All Superinterfaces:
ComposableLike
- Enclosing interface:
- Modal
A builder for modals
-
Method Summary
Modifier and TypeMethodDescriptiondefault ComposableConverts self to a composable@NotNull Modalbuild()Builds this modal@NotNull Modal.Builderdimensions(@NotNull Dimensions dimensions) Sets the dimensions of the modal frame@NotNull Modal.Builderdisabled(boolean disabled) Disables the modal button@NotNull Modal.Builderinitializer(@NotNull Consumer<Modal.ModalFrame> initializer) Sets the modal frame initializer@NotNull Modal.BuilderSets the title of the modal frameMethods inherited from interface space.maxus.flare.ui.ComposableLike
inside
-
Method Details
-
title
Sets the title of the modal frame- Parameters:
title- The title of the modal frame- Returns:
- This builder
-
dimensions
Sets the dimensions of the modal frame- Parameters:
dimensions- Dimensions of the modal frame- Returns:
- This builder
-
initializer
@NotNull @NotNull Modal.Builder initializer(@NotNull @NotNull Consumer<Modal.ModalFrame> initializer) Sets the modal frame initializer- Parameters:
initializer- The initializer for the modal frame- Returns:
- This builder
-
disabled
Disables the modal button- Parameters:
disabled- Disabled state- Returns:
- This builder
-
build
Builds this modal- Returns:
- Built modal
-
asComposable
Description copied from interface:ComposableLikeConverts self to a composable- Specified by:
asComposablein interfaceComposableLike- Returns:
- The composable
-