Interface ToggleButtonBuilder<C extends JToggleButton,B extends ToggleButtonBuilder<C,B>>

Type Parameters:
C - the component type
B - the builder type
All Superinterfaces:
ButtonBuilder<Boolean,C,B>, ComponentBuilder<Boolean,C,B>
All Known Subinterfaces:
CheckBoxBuilder, RadioButtonBuilder

public interface ToggleButtonBuilder<C extends JToggleButton,B extends ToggleButtonBuilder<C,B>> extends ButtonBuilder<Boolean,C,B>
Builds a JToggleButton.
  • Method Details

    • toggleControl

      B toggleControl(ToggleControl toggleControl)
      Parameters:
      toggleControl - the toggle control to base this toggle button on
      Returns:
      this builder instance
    • toggleControl

      B toggleControl(Control.Builder<ToggleControl,?> toggleControlBuilder)
      Parameters:
      toggleControlBuilder - the builder for the toggle control to base this toggle button on
      Returns:
      this builder instance
    • builder

      static <C extends JToggleButton, B extends ToggleButtonBuilder<C, B>> ToggleButtonBuilder<C,B> builder()
      Type Parameters:
      C - the component type
      B - the builder type
      Returns:
      a builder for a component
    • builder

      static <C extends JToggleButton, B extends ToggleButtonBuilder<C, B>> ToggleButtonBuilder<C,B> builder(Value<Boolean> linkedValue)
      Type Parameters:
      C - the component type
      B - the builder type
      Parameters:
      linkedValue - the value to link to the button
      Returns:
      a builder for a component