Interface ButtonPanelBuilder

All Superinterfaces:
ComponentBuilder<Void,JPanel,ButtonPanelBuilder>, ControlPanelBuilder<JPanel,ButtonPanelBuilder>

public interface ButtonPanelBuilder extends ControlPanelBuilder<JPanel,ButtonPanelBuilder>
Builds a JPanel with buttons.
  • Method Details

    • buttonGap

      ButtonPanelBuilder buttonGap(int buttonGap)
      Default is Layouts.GAP.
      Parameters:
      buttonGap - the gap between buttons in pixels
      Returns:
      this builder instance
    • fixedButtonSize

      ButtonPanelBuilder fixedButtonSize(boolean fixedButtonSize)
      Specifies whether the button grid sizing should be fixed according to the largest button or flexible. Default false.
      Parameters:
      fixedButtonSize - true if the button grid sizing should be fixed
      Returns:
      this builder instance
    • buttonGroup

      ButtonPanelBuilder buttonGroup(ButtonGroup buttonGroup)
      Parameters:
      buttonGroup - the button group to add all buttons to
      Returns:
      this builder instance
    • builder

      static ButtonPanelBuilder builder()
      Returns:
      a new button panel builder
    • builder

      static ButtonPanelBuilder builder(Action... actions)
      Parameters:
      actions - the actions
      Returns:
      a new button panel builder
    • builder

      static ButtonPanelBuilder builder(Controls controls)
      Parameters:
      controls - the controls
      Returns:
      a new button panel builder
    • builder

      static ButtonPanelBuilder builder(Controls.ControlsBuilder controlsBuilder)
      Parameters:
      controlsBuilder - the controls builder
      Returns:
      a new button panel builder