Class JPanelEditSex

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JPanelEditSex extends JPanelEdit
adds panel with combobox to change field containing the patient's sex.
Version:
1.0
Author:
David Parsons
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • sexComboBox

      JComboBox sexComboBox
      DOCUMENT ME!
  • Constructor Details

    • JPanelEditSex

      public JPanelEditSex(String initialText)
      allows the user to select a DICOM allowable sex: Male, Female, Other; also allows "no value" and will return "" when asked about that value.
      Parameters:
      initialText - DOCUMENT ME!
  • Method Details

    • checkFields

      public boolean checkFields()
      method does nothing in this class.
      Specified by:
      checkFields in class JPanelEdit
      Returns:
      boolean FieldsOKAY
    • getCodedValue

      public Object getCodedValue()
      If the information held by the panel is stored as a code (as in 'M' for "male" or 'F' for "female"), then this code will be returned by this method. If there is no code for this value, this method will return a the same value as getPanelValue()
      Specified by:
      getCodedValue in class JPanelEdit
      Returns:
      the coded value. If the panel has no coded value, then the return value will be the String returned by getPanelValue().
    • getPanelValue

      public String getPanelValue()
      returns an empty String when the panel has been set to "No Value" otherwise, it returns the value.
      Specified by:
      getPanelValue in class JPanelEdit
      Returns:
      DOCUMENT ME!