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.MsgfParametersDialog
All Implemented Interfaces:
AlgorithmParametersDialog, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class MsgfParametersDialog extends JDialog implements AlgorithmParametersDialog
Dialog for the MS-GF+ specific settings.
Author:
Harald Barsnes
See Also:
  • Constructor Details

    • MsgfParametersDialog

      public MsgfParametersDialog(Frame parent, MsgfParameters msgfParameters, boolean editable)
      Creates new form MsgfSettingsDialog with a frame as owner.
      Parameters:
      parent - the parent frame
      msgfParameters - the MS-GF+ parameters
      editable - boolean indicating whether the settings can be edited by the user
    • MsgfParametersDialog

      public MsgfParametersDialog(Dialog owner, Frame parent, MsgfParameters msgfParameters, boolean editable)
      Creates new form MsgfSettingsDialog with a dialog as owner.
      Parameters:
      owner - the dialog owner
      parent - the parent frame
      msgfParameters - the MS-GF+ 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 MsgfParameters getInput()
      Returns the user selection as MS-GF+ 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