Interface Disable

All Known Subinterfaces:
Button, Checkbox, ContainerSlot, GoBackButton, Modal, Selection<E>, Slideshow, TextInput

public interface Disable
A super interface for composable elements that can be disabled
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the reactive disabled state of the element
    default boolean
    Returns whether the element is disabled
    default boolean
    Returns whether the element is not disabled
    default void
    setDisabled(boolean disabled)
    Sets whether the element is disabled
  • Method Details

    • isDisabled

      default boolean isDisabled()
      Returns whether the element is disabled
      Returns:
      Whether the element is disabled
    • setDisabled

      default void setDisabled(boolean disabled)
      Sets whether the element is disabled
      Parameters:
      disabled - Whether the element is disabled
    • isNotDisabled

      default boolean isNotDisabled()
      Returns whether the element is not disabled
      Returns:
      Whether the element is not disabled
    • disabledState

      ReactiveState<Boolean> disabledState()
      Returns the reactive disabled state of the element
      Returns:
      The reactive disabled state of the element