Class JPanelEditModality

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JPanelEditModality extends JPanelEdit
An EditPanel which allows the user to select from a list of modalities (from FileInfoBase.modalityStr).
See Also:
  • Field Details

    • serialVersionUID

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

      private JComboBox modalityBox
      DOCUMENT ME!
  • Constructor Details

    • JPanelEditModality

      public JPanelEditModality(String initialText)
      Sets the panel to contain a standard, white JComboBox.
      Parameters:
      initialText - the text to which the box will be set when begun
      See Also:
  • Method Details

    • checkFields

      public boolean checkFields()
      There is nothing to check in this Panel. Returns true.
      Specified by:
      checkFields in class JPanelEdit
      Returns:
      true
    • 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.

      The codes returned are a Byte format for the following entry

      unknown -1
      transverse 0
      coronal 1
      sagittal 2
      Specified by:
      getCodedValue in class JPanelEdit
      Returns:
      a Byte. returned by getPanelValue().
    • getPanelValue

      public String getPanelValue()
      gets the data which the user could redefine within this panel.
      Specified by:
      getPanelValue in class JPanelEdit
      Returns:
      This is the value translated from the user-editable fields