Package rma.swing

Class RmaJCheckBox

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

See Also:
  • Field Details

  • Constructor Details

    • RmaJCheckBox

      public RmaJCheckBox()
    • RmaJCheckBox

      public RmaJCheckBox(String text, boolean selected)
    • RmaJCheckBox

      public RmaJCheckBox(String text, Icon icon)
    • RmaJCheckBox

      public RmaJCheckBox(String text, Icon icon, boolean selected)
    • RmaJCheckBox

      public RmaJCheckBox(String text)
    • RmaJCheckBox

      public RmaJCheckBox(Icon icon)
    • RmaJCheckBox

      public RmaJCheckBox(Icon icon, boolean selected)
  • Method Details

    • setText

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

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

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

      public void setSelected(boolean selected)
      Overrides:
      setSelected in class AbstractButton
    • setDisplayScaleFactor

      public void setDisplayScaleFactor(int paramId, double scaleFactor)
      Description copied from interface: UnitsComponent
      Sets a scaling factor to use when displaying the data.
      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
    • getDisplayUnitSystem

      public int getDisplayUnitSystem()
    • 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
    • getDisplayUnitsString

      public String getDisplayUnitsString(int unitSystem)
      This method allows the retrieves the units string for a given units system
      Specified by:
      getDisplayUnitsString in interface UnitsComponent
      See Also:
    • setLabelFor

      public void setLabelFor(Component c)
      Set the component this is labelling. Can be null if this does not label a Component. If the displayedMnemonic property is set and the labelFor property is also set, the label will call the requestFocus method of the component specified by the labelFor property when the mnemonic is activated.
      Parameters:
      c - the Component this label is for, or null if the label is not the label for a component
    • getLabelFor

      public Component getLabelFor()
      Get the component this is labelling.
      Returns:
      the Component this is labelling. Can be null if this does not label a Component. If the displayedMnemonic property is set and the labelFor property is also set, the label will call the requestFocus method of the component specified by the labelFor property when the mnemonic is activated.
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      This field has changed. Set the parent modified
      Specified by:
      itemStateChanged in interface ItemListener
    • setModified

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

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

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

      public void setModifiable(boolean b)
    • setChangeColor

      public void setChangeColor(Color changeColor)
      set the foreground color when the combo box's selection changes. adds an ItemListener to itself.