Package rma.swing

Class RmaJRadioButton

All Implemented Interfaces:
ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, SwingConstants, Modifiable, UnitsComponent, EditableComponent, FormManagementListener, RmaValidComponent

RmaJRadioButton.java Dervies from javax.swing.JRadionButton so we can generated modified events. The framework is in place to to validation and Clear, if the parent dialog calls for it.
See Also:
  • Constructor Details

    • RmaJRadioButton

      public RmaJRadioButton()
    • RmaJRadioButton

      public RmaJRadioButton(Icon icon)
    • RmaJRadioButton

      public RmaJRadioButton(String text)
    • RmaJRadioButton

      public RmaJRadioButton(String text, Icon icon)
    • RmaJRadioButton

      public RmaJRadioButton(Icon icon, boolean selected)
    • RmaJRadioButton

      public RmaJRadioButton(String text, boolean selected)
    • RmaJRadioButton

      public RmaJRadioButton(String text, Icon icon, boolean selected)
  • Method Details

    • clearPerformed

      public void clearPerformed()
      Specified by:
      clearPerformed in interface FormManagementListener
    • setModifiable

      public void setModifiable(boolean b)
    • setChangeColor

      public void setChangeColor(Color color)
    • isValid

      public boolean isValid(boolean showError)
      Specified by:
      isValid in interface RmaValidComponent
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • isModified

      public boolean isModified()
      Specified by:
      isModified in interface Modifiable
    • setModified

      public void setModified(boolean b)
      Specified by:
      setModified in interface Modifiable
    • setIsEditable

      public void setIsEditable(boolean b)
      Specified by:
      setIsEditable in interface EditableComponent
    • setLabelFor

      public void setLabelFor(Component c)
    • setDisplayScaleFactor

      public void setDisplayScaleFactor(int paramId, double scaleFactor)
      Sets the scaling factor for the data. The radio button does not render data but rather renders a units string in a given unit system so this method is defined, but un-implemented
      Specified by:
      setDisplayScaleFactor in interface UnitsComponent
      Parameters:
      paramId - This is the identifier of the paramater to scale. If the data is not of this type then it is ignored
      scaleFactor - This is the scaling factor *to* be multiplied to the value when it is rendered
    • setDisplayUnitsSystem

      public void setDisplayUnitsSystem(int unitSystem)
      Description copied from interface: UnitsComponent
      Sets the current Unit System for this object
      Specified by:
      setDisplayUnitsSystem in interface UnitsComponent
    • setParameterId

      public void setParameterId(int id)
    • getDisplayUnitsString

      public String getDisplayUnitsString(int param)
      Description copied from interface: UnitsComponent
      This method allows the retrieves the units string for a given units system
      Specified by:
      getDisplayUnitsString in interface UnitsComponent
      See Also:
    • setText

      public void setText(String text)
      Overrides:
      setText in class AbstractButton