Interface States<W extends StatefulWidget<W>>

All Known Implementing Classes:
Assignment, Button, CollapsableForm, Collection, DragTest, Form, Image, Label, PokemonSlot, Rendering, Research, ScrollableViewport, Scrollbar, StatefulWidget, Viewport

public interface States<W extends StatefulWidget<W>>
Interface for holding widget interactions, in an interface to avoid clutter in the main StatefulWidget class. Each interaction is powered by two AtomicBooleans, one for whether the interaction is allowed, and another for the interaction's state.
  • Method Details

    • enabledInternal

      AtomicBoolean enabledInternal()
    • enabled

      default W enabled(boolean enabled)
    • enable

      default W enable()
    • disable

      default W disable()
    • enabled

      default boolean enabled()
    • disabled

      default boolean disabled()
    • tickableInternal

      AtomicBoolean tickableInternal()
    • tickable

      default W tickable(boolean tickable)
    • ticks

      default W ticks()
    • noTicks

      default W noTicks()
    • receivesTicks

      default boolean receivesTicks()
    • doesNotTick

      default boolean doesNotTick()
    • visibleInternal

      AtomicBoolean visibleInternal()
    • visible

      default W visible(boolean visible)
    • show

      default W show()
    • hide

      default W hide()
    • visible

      default boolean visible()
    • hidden

      default boolean hidden()
    • focusableInternal

      AtomicBoolean focusableInternal()
    • focusedInternal

      AtomicBoolean focusedInternal()
    • focusable

      default W focusable(boolean focusable)
    • focusable

      default boolean focusable()
    • focused

      default W focused(boolean focused)
    • focused

      default boolean focused()
    • hoverableInternal

      AtomicBoolean hoverableInternal()
    • hoveredInternal

      AtomicBoolean hoveredInternal()
    • hoverable

      default W hoverable(boolean hoverable)
    • hoverable

      default boolean hoverable()
    • hovered

      default W hovered(boolean hovered)
    • hovered

      default boolean hovered()
    • draggableInternal

      AtomicBoolean draggableInternal()
    • draggedInternal

      AtomicBoolean draggedInternal()
    • draggable

      default W draggable(boolean draggable)
    • draggable

      default boolean draggable()
    • dragged

      default W dragged(boolean dragged)
    • dragged

      default boolean dragged()
    • inactive

      default W inactive()
    • active

      default W active()
    • stateInternal

      AtomicReference<CustomState> stateInternal()
    • state

      default W state(CustomState state)
    • state

      default <S extends CustomState> S state()
    • state

      default <S extends CustomState> void state(Class<S> type, Consumer<S> callback)
    • widget

      default W widget()
    • owner

      default StatefulScreen owner()