Class NullableToggleButtonModel.ToggleState

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

public final class NullableToggleButtonModel.ToggleState extends Object implements is.codion.common.observer.Mutable<Boolean>
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
    void
    Iterates between the states: null -> false -> true
    is.codion.common.observer.Observer<Boolean>
     
    void
    set(Boolean state)
     

    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.observer.Mutable

    clear

    Methods inherited from interface is.codion.common.observer.Observable

    addConsumer, addListener, addWeakConsumer, addWeakListener, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
  • Method Details

    • get

      public Boolean get()
      Specified by:
      get in interface is.codion.common.observer.Observable<Boolean>
    • set

      public void set(Boolean state)
      Specified by:
      set in interface is.codion.common.observer.Mutable<Boolean>
    • next

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

      public is.codion.common.observer.Observer<Boolean> observer()
      Specified by:
      observer in interface is.codion.common.observer.Observable<Boolean>