Class OmssaParametersDialog

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
com.compomics.util.gui.parameters.identification.algorithm.OmssaParametersDialog
All Implemented Interfaces:
AlgorithmParametersDialog, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class OmssaParametersDialog extends JDialog implements AlgorithmParametersDialog
Dialog for the OMSSA specific parameters.
Author:
Marc Vaudel, Harald Barsnes
See Also:
  • Constructor Details

    • OmssaParametersDialog

      public OmssaParametersDialog()
      Empty default constructor
    • OmssaParametersDialog

      public OmssaParametersDialog(Frame parent, OmssaParameters omssaParameters, boolean editable)
      Creates new form OmssaParametersDialog with a frame as owner.
      Parameters:
      parent - the parent frame
      omssaParameters - the OMSSA parameters
      editable - boolean indicating whether the settings can be edited by the user
    • OmssaParametersDialog

      public OmssaParametersDialog(Dialog owner, Frame parent, OmssaParameters omssaParameters, boolean editable)
      Creates new form OmssaParametersDialog with a dialog as owner.
      Parameters:
      owner - the dialog owner
      parent - the parent frame
      omssaParameters - the OMSSA parameters
      editable - boolean indicating whether the settings can be edited by the user
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Description copied from interface: AlgorithmParametersDialog
      Indicates whether the user canceled the editing.
      Specified by:
      isCancelled in interface AlgorithmParametersDialog
      Returns:
      true if cancel was pressed
    • getParameters

      public IdentificationAlgorithmParameter getParameters()
      Description copied from interface: AlgorithmParametersDialog
      Returns the parameters as set by the user.
      Specified by:
      getParameters in interface AlgorithmParametersDialog
      Returns:
      the parameters as set by the user
    • getInput

      public OmssaParameters getInput()
      Returns the user selection as OMSSA parameters object.
      Returns:
      the user selection
    • validateInput

      public boolean validateInput(boolean showMessage)
      Inspects the parameters validity.
      Parameters:
      showMessage - if true an error messages are shown to the users
      Returns:
      a boolean indicating if the parameters are valid