Class AndromedaParametersDialog

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

public class AndromedaParametersDialog extends JDialog implements AlgorithmParametersDialog
Dialog for the Andromeda specific settings.
Author:
Harald Barsnes
See Also:
  • Constructor Details

    • AndromedaParametersDialog

      public AndromedaParametersDialog(Frame parentFrame, AndromedaParameters andromedaParameters, boolean editable)
      Creates a new AndromedaParametersDialog with a frame as owner.
      Parameters:
      parentFrame - the parent frame
      andromedaParameters - the Andromeda parameters
      editable - boolean indicating whether the settings can be edited by the user
    • AndromedaParametersDialog

      public AndromedaParametersDialog(Dialog owner, Frame parentFrame, AndromedaParameters andromedaParameters, boolean editable)
      Creates a new AndromedaParametersDialog with a dialog as owner.
      Parameters:
      owner - the dialog owner
      parentFrame - the parent frame
      andromedaParameters - the Andromeda 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 AndromedaParameters getInput()
      Returns the user selection as Andromeda parameters object.
      Returns:
      the user selection
    • validateInput

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