Package space.maxus.flare.ui
Class ComposableReactiveState<V>
java.lang.Object
space.maxus.flare.react.ReactiveState<V>
space.maxus.flare.ui.ComposableReactiveState<V>
- Type Parameters:
V- The type of the value this state holds.
- All Implemented Interfaces:
ReactiveNotifier<V>
Represents a reactive state that is bound to certain composable, and will mark it dirty on each state change.
-
Constructor Summary
ConstructorsConstructorDescriptionComposableReactiveState(V value, Composable selfReference) Constructs a new ComposableReactiveState. -
Method Summary
Modifier and TypeMethodDescriptionReference to the related composable.voidSets the value of this stateMethods inherited from class space.maxus.flare.react.ReactiveState
connect, get, getOptional, getOrNull, getSubscriberList, setOpt, subscribeUpdate, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface space.maxus.flare.react.ReactiveNotifier
subscribe, unsubscribe
-
Constructor Details
-
ComposableReactiveState
Constructs a new ComposableReactiveState.- Parameters:
value- The initial value of the state.selfReference- The related composable.
-
-
Method Details
-
set
Description copied from class:ReactiveStateSets the value of this state- Overrides:
setin classReactiveState<V>- Parameters:
newValue- New value to be set
-
getSelfReference
Reference to the related composable.
-