Class ReportFactory.StandardsDialog

    • Field Detail

      • m_PanelValues

        protected JPanel m_PanelValues
        the panel with the values.
      • m_LabelCompounds

        protected JLabel m_LabelCompounds
        the label for the compounds.
      • m_ComboBoxCompounds

        protected BaseComboBox m_ComboBoxCompounds
        for combobox with the compounds.
      • m_LabelMinValue

        protected JLabel m_LabelMinValue
        the label for the min value text field.
      • m_TextMinValue

        protected BaseTextField m_TextMinValue
        the text field for the minimum value.
      • m_LabelMaxValue

        protected JLabel m_LabelMaxValue
        the label for the max value text field.
      • m_TextMaxValue

        protected BaseTextField m_TextMaxValue
        the text field for the maximum value.
      • m_ButtonAdd

        protected BaseButton m_ButtonAdd
        for Add button.
      • m_ButtonRemove

        protected BaseButton m_ButtonRemove
        for Add button.
      • m_ButtonOK

        protected BaseButton m_ButtonOK
        for OK button.
      • m_ButtonCancel

        protected BaseButton m_ButtonCancel
        for Cancel button.
      • m_SelectedCompound

        protected Field m_SelectedCompound
        the selected compound.
      • m_ListCompounds

        protected JList m_ListCompounds
        the listbox with the selected compound/min/max items.
      • m_ModelCompounds

        protected DefaultListModel m_ModelCompounds
        the list model for the compounds.
      • m_Canceled

        protected boolean m_Canceled
        whether the dialog was canceled.
    • Constructor Detail

      • StandardsDialog

        public StandardsDialog​(Dialog owner,
                               Dialog.ModalityType modality)
        Initializes the dialog.
        owner - the component that controls the dialog
        modality - the type of modality
      • StandardsDialog

        public StandardsDialog​(Frame owner,
                               boolean modal)
        Initializes the dialog.
        owner - the component that controls the dialog
        modal - if true then the dialog will be modal
    • Method Detail

      • initialize

        protected void initialize()
        For initializing members.
        initialize in class BaseDialog
      • initGUI

        protected void initGUI()
        Initializes the components.
        initGUI in class BaseDialog
      • setCompounds

        public void setCompounds​(List<Field> value)
        Sets the compounds to display.
        value - the underlying compounds
      • getCompounds

        public List<Field> getCompounds()
        Returns the underlying compounds.
        the compounds
      • setMinValue

        public void setMinValue​(Double value)
        Sets the minimum value to display.
        value - the minimum value, use null to no default value
      • getMinValue

        public Double getMinValue()
        Returns the current minimum value.
        the minimum value, can be null
      • setMaxValue

        public void setMaxValue​(Double value)
        Sets the maximum value to display.
        value - the maximum value, use null to no default value
      • getMaxValue

        public Double getMaxValue()
        Returns the current maximum value.
        the maximum value, can be null
      • getSelectedCompound

        public Field getSelectedCompound()
        Returns the selected compound (only set if OK clicked).
        the selected compound, can be null
      • getSetup

        public List<String> getSetup()
        Returns the setup, i.e., the compound/min/max items.
        the setup
      • getCanceled

        public boolean getCanceled()
        Returns whether the dialog was canceled or not.
        true if the dialog was canceled
      • beforeShow

        protected void beforeShow()
        Hook method just before the dialog is made visible.
        beforeShow in class BaseDialog