Interface Modal
- All Superinterfaces:
Composable,ComposableLike,Configurable<Modal>,Disable,ProviderRendered
A modal is a composable that opens an inner frame on click.
See more in Flare docs: Modal
See more in Flare docs: Modal
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for modalsstatic classThe modal framestatic final recordNested classes/interfaces inherited from interface space.maxus.flare.ui.compose.Configurable
Configurable.Configurator<S> -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Modal.Builderbuilder(@NotNull ItemProvider provider) Constructs a new modal buildergetFrame()Returns the frame of this modalstatic @NotNull Modalof(@NotNull ItemProvider provider, Dimensions dimensions, Consumer<Modal.ModalFrame> initializer) Constructs a new modalMethods inherited from interface space.maxus.flare.ui.Composable
asComposable, bind, click, context, contextOrNull, destroy, drag, injectRoot, inside, into, leftClick, markDirty, restore, rightClick, root, shiftFrom, shiftInto, viewerMethods inherited from interface space.maxus.flare.ui.compose.Configurable
configure, configureTypedMethods inherited from interface space.maxus.flare.ui.compose.Disable
disabledState, isDisabled, isNotDisabled, setDisabledMethods inherited from interface space.maxus.flare.ui.compose.ProviderRendered
getProvider, renderAt
-
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 modaldimensions- Dimensions of the modal windowinitializer- The modal frame configurator- Returns:
- A new modal
-
builder
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
-