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.
        Parameters:
        owner - the component that controls the dialog
        modality - the type of modality
      • StandardsDialog

        public StandardsDialog​(Frame owner,
                               boolean modal)
        Initializes the dialog.
        Parameters:
        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.
        Overrides:
        initialize in class BaseDialog
      • initGUI

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

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

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

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

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

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

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

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

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

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

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