Interface Configurable<S>

Type Parameters:
S - The type of the object being configured
All Known Subinterfaces:
Button, Checkbox, Composition, ContainerSlot, GoBackButton, Modal, PaginationDisplay, ProgressBar, Selection<E>, Slideshow, Tabulation, TextInput

public interface Configurable<S>
Represents a composable that can be further configured after creation
  • Method Details

    • configure

      S configure(Configurable.Configurator<S> configurator)
      Configures this composable element.
      Parameters:
      configurator - Configurator to be applied
      Returns:
      The configured object
    • configureTyped

      default <V extends S> V configureTyped(@NotNull @NotNull Configurable.Configurator<V> configurator)
      Configures this composable element with a certain subtype of the object.
      Type Parameters:
      V - The subtype of the object
      Parameters:
      configurator - Configurator to be applied
      Returns:
      The configured objecc