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 AtomicBoolean
s, one for whether the interaction is allowed, and another
for the interaction's state.-
Method Summary
Modifier and TypeMethodDescriptiondefault W
active()
default W
disable()
default boolean
disabled()
default boolean
default boolean
default W
draggable
(boolean draggable) default boolean
dragged()
default W
dragged
(boolean dragged) default W
enable()
default boolean
enabled()
default W
enabled
(boolean enabled) default boolean
default W
focusable
(boolean focusable) default boolean
focused()
default W
focused
(boolean focused) default boolean
hidden()
default W
hide()
default boolean
default W
hoverable
(boolean hoverable) default boolean
hovered()
default W
hovered
(boolean hovered) default W
inactive()
default W
noTicks()
default StatefulScreen
owner()
default boolean
default W
show()
default <S extends CustomState>
Sstate()
default W
state
(CustomState state) default <S extends CustomState>
voiddefault W
tickable
(boolean tickable) default W
ticks()
default boolean
visible()
default W
visible
(boolean visible) default W
widget()
-
Method Details
-
enabledInternal
AtomicBoolean enabledInternal() -
enabled
-
enable
-
disable
-
enabled
default boolean enabled() -
disabled
default boolean disabled() -
tickableInternal
AtomicBoolean tickableInternal() -
tickable
-
ticks
-
noTicks
-
receivesTicks
default boolean receivesTicks() -
doesNotTick
default boolean doesNotTick() -
visibleInternal
AtomicBoolean visibleInternal() -
visible
-
show
-
hide
-
visible
default boolean visible() -
focusableInternal
AtomicBoolean focusableInternal() -
focusedInternal
AtomicBoolean focusedInternal() -
focusable
-
focusable
default boolean focusable() -
focused
-
focused
default boolean focused() -
hoverableInternal
AtomicBoolean hoverableInternal() -
hoveredInternal
AtomicBoolean hoveredInternal() -
hoverable
-
hoverable
default boolean hoverable() -
hovered
-
hovered
default boolean hovered() -
draggableInternal
AtomicBoolean draggableInternal() -
draggedInternal
AtomicBoolean draggedInternal() -
draggable
-
draggable
default boolean draggable() -
dragged
-
dragged
default boolean dragged() -
inactive
-
active
-
stateInternal
AtomicReference<CustomState> stateInternal() -
state
-
state
-
state
-
widget
-
owner
-