Class Modality.ComboBox

All Implemented Interfaces:
ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, ListDataListener
Enclosing class:
Modality

public static class Modality.ComboBox extends JComboBox<String>
A javax.swing.JComboBox that is used for selecting a Modality.
See Also:
  • Constructor Details

    • ComboBox

      public ComboBox(boolean allowAny)
      Creates a new Modality.ComboBox.
      Parameters:
      allowAny - if true, lists any modality can be stored; if false then only non-retired imaging modalities are listed.
  • Method Details

    • getSelectedModality

      public Modality getSelectedModality()
      Returns the Modality selected.
      Returns:
      the Modality selected, or null if "Any" modality is selected.