Class SegmentedButtonBuilder<T extends AbstractButton>

java.lang.Object
ca.phon.app.session.editor.SegmentedButtonBuilder<T>

public class SegmentedButtonBuilder<T extends AbstractButton> extends Object
Utility methods for creating segmented buttons. Methods modified from Apple Technical Note TN2196
  • Constructor Details

    • SegmentedButtonBuilder

      public SegmentedButtonBuilder(Supplier<T> supplier)
  • Method Details

    • createLayoutComponent

      public JComponent createLayoutComponent(List<T> segmentButtons)
    • createSegmentButton

      public T createSegmentButton(String style, String position, ButtonGroup buttonGrp)
    • createSegmentButtonsWithStyle

      public List<T> createSegmentButtonsWithStyle(int numButtons, ButtonGroup buttonGrp, String style)
    • createSegmentedButtons

      public List<T> createSegmentedButtons(int numButtons, ButtonGroup buttonGroup)
    • createSegmentedRoundRectButtons

      public List<T> createSegmentedRoundRectButtons(int numButtons, ButtonGroup buttonGroup)
    • createSegmentedCapsuleButtons

      public List<T> createSegmentedCapsuleButtons(int numButtons, ButtonGroup buttonGroup)
    • createSegmentedTexturedButtons

      public List<T> createSegmentedTexturedButtons(int numButtons, ButtonGroup buttonGroup)