Interface ToggleControl

    • Method Detail

      • value

        Value<Boolean> value()
        Returns:
        the value being toggled by this toggle control
      • createButtonModel

        ButtonModel createButtonModel()
        Creates a ButtonModel based on this ToggleControl. If the underlying value is nullable then a NullableButtonModel is returned.
        Returns:
        a button model
      • createCheckBox

        JCheckBox createCheckBox()
        Creates a JCheckBox based on this toggle control
        Returns:
        a check-box
      • createToggleButton

        JToggleButton createToggleButton()
        Creates a JToggleButton based on this toggle control
        Returns:
        a toggle button
      • toggleControl

        static ToggleControl toggleControl​(Value<Boolean> value)
        Creates a new ToggleControl based on the given value
        Parameters:
        value - the value
        Returns:
        a new ToggleControl
      • toggleControl

        static ToggleControl toggleControl​(State state)
        Creates a new ToggleControl based on the given state
        Parameters:
        state - the state
        Returns:
        a new ToggleControl
      • builder

        static ToggleControl.Builder builder​(State state)
        Parameters:
        state - the state to toggle
        Returns:
        a new ToggleControl.Builder