Module is.codion.swing.common.model
Class NullableToggleButtonModel.ToggleState
java.lang.Object
is.codion.swing.common.model.component.button.NullableToggleButtonModel.ToggleState
- All Implemented Interfaces:
Observable<Boolean>
,Observer<Boolean>
- Enclosing class:
- NullableToggleButtonModel
public final class NullableToggleButtonModel.ToggleState
extends Object
implements Observable<Boolean>
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface is.codion.common.observable.Observable
addConsumer, addListener, addWeakConsumer, addWeakListener, getOrThrow, getOrThrow, isEqualTo, isNotEqualTo, isNull, isNullable, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
-
Method Details
-
get
- Specified by:
get
in interfaceObservable<Boolean>
- Returns:
- the value
-
set
- Parameters:
state
- the state to set
-
clear
public void clear()Clears this toggle state -
observer
- Specified by:
observer
in interfaceObservable<Boolean>
- Returns:
- an
Observer
notified each time the observed value may have changed
-
next
public void next()Iterates between the states: null -> false -> true
-