Interface Modal.Builder

All Superinterfaces:
ComposableLike
Enclosing interface:
Modal

public static interface Modal.Builder extends ComposableLike
A builder for modals
  • Method Details

    • title

      @NotNull @NotNull Modal.Builder title(@NotNull @NotNull String title)
      Sets the title of the modal frame
      Parameters:
      title - The title of the modal frame
      Returns:
      This builder
    • dimensions

      @NotNull @NotNull Modal.Builder dimensions(@NotNull @NotNull Dimensions 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

      @NotNull @NotNull Modal.Builder disabled(boolean disabled)
      Disables the modal button
      Parameters:
      disabled - Disabled state
      Returns:
      This builder
    • build

      @NotNull @NotNull Modal build()
      Builds this modal
      Returns:
      Built modal
    • asComposable

      default Composable asComposable()
      Description copied from interface: ComposableLike
      Converts self to a composable
      Specified by:
      asComposable in interface ComposableLike
      Returns:
      The composable