Class JRadioButtonChoice<T>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.client.util.gui.JRadioButtonChoice<T>
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JRadioButtonChoice<T> extends JPanel
A panel that will contain a series of radio buttons. You can add a PropertyChange listener for the "selectedChoice" property.
See Also:
  • Field Details

  • Constructor Details

    • JRadioButtonChoice

      public JRadioButtonChoice(List<T> choices, int orientation)
    • JRadioButtonChoice

      public JRadioButtonChoice(List<T> choices, T initialChoice, int orientation, int hgap, int vgap)
  • Method Details

    • forEnum

      public static <E extends Enum> JRadioButtonChoice<E> forEnum(Class<E> enumClass, int orientation)
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • getLabel

      protected String getLabel(T choice)
    • getTooltip

      protected String getTooltip(T choice)
    • newButton

      protected JRadioButton newButton(T choice, boolean selected)
    • configureButton

      protected void configureButton(JRadioButton button, T choice)
      Meant to be overridden. Provides subclasses a chance to configure each button. At this point the text and tooltip has already been set.
    • getSelectedChoice

      public T getSelectedChoice()
    • setSelectedChoice

      public void setSelectedChoice(T selectedChoice)