Class NullableToggleButtonModel.ToggleState

java.lang.Object
is.codion.swing.common.model.component.button.NullableToggleButtonModel.ToggleState
All Implemented Interfaces:
Mutable<Boolean>, Observable<Boolean>, Observer<Boolean>
Enclosing class:
NullableToggleButtonModel

public final class NullableToggleButtonModel.ToggleState extends Object implements Mutable<Boolean>
  • Method Details

    • get

      public Boolean get()
      Specified by:
      get in interface Observable<Boolean>
      Returns:
      the value
    • set

      public void set(Boolean state)
      Description copied from interface: Mutable
      Sets the value
      Specified by:
      set in interface Mutable<Boolean>
      Parameters:
      state - the value to set
    • next

      public void next()
      Iterates between the states: null -> false -> true
    • observer

      public Observer<Boolean> observer()
      Specified by:
      observer in interface Observable<Boolean>
      Returns:
      an Observer notified each time the value may have changed