Class AbstractRadioLink

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants
Direct Known Subclasses:
RadioLinkMethod

public abstract class AbstractRadioLink extends JLabel
A label to mimic a radio button contained in a group. Display as underlined if label is selected.
See Also:
  • Constructor Details

    • AbstractRadioLink

      protected AbstractRadioLink(String string, boolean isSelected)
      Build a radio label.
      Parameters:
      string - Text for label
      isSelected - Is the radio selected by default?
    • AbstractRadioLink

      protected AbstractRadioLink(String string)
      Build a radio label.
      Parameters:
      string - Text for label
  • Method Details

    • action

      public abstract void action()
      An action run when radio is checked by user.
    • getGroup

      public abstract List<JLabel> getGroup()
      Group of radio components, either the radio for HTTP method or the one for injection strategy.
      Returns:
    • isActivable

      protected boolean isActivable()
      Radio is selectable/hoverable if it is not already selected (bold).
      Returns:
      True if radio is not already selected
    • setUnderlined

      public final void setUnderlined()
      Change font of radio label to underline.
    • setSelected

      public void setSelected()