Interface Modal

All Superinterfaces:
Composable, ComposableLike, Configurable<Modal>, Disable, ProviderRendered

public interface Modal extends ProviderRendered, Configurable<Modal>, Disable
A modal is a composable that opens an inner frame on click.
See more in Flare docs: Modal
See Also:
  • Method Details

    • of

      @NotNull static @NotNull Modal of(@NotNull @NotNull ItemProvider provider, Dimensions dimensions, Consumer<Modal.ModalFrame> initializer)
      Constructs a new modal
      Parameters:
      provider - Item provider for modal
      dimensions - Dimensions of the modal window
      initializer - The modal frame configurator
      Returns:
      A new modal
    • builder

      @NotNull static @NotNull Modal.Builder builder(@NotNull @NotNull ItemProvider provider)
      Constructs a new modal builder
      Parameters:
      provider - Item provider for this modal
      Returns:
      A new modal builder
    • getFrame

      Modal.ModalFrame getFrame()
      Returns the frame of this modal
      Returns:
      The frame of this modal