Class IdentificationParametersEditionDialog

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

public class IdentificationParametersEditionDialog
extends JDialog
IdentificationParametersEditionDialog.
Author:
Marc Vaudel, Harald Barsnes
See Also:
Serialized Form
  • Constructor Details

    • IdentificationParametersEditionDialog

      public IdentificationParametersEditionDialog()
      Empty default constructor
    • IdentificationParametersEditionDialog

      public IdentificationParametersEditionDialog​(Frame parentFrame, IdentificationParameters identificationParameters, Image normalIcon, Image waitingIcon, LastSelectedFolder lastSelectedFolder, boolean editable)
      Creates a new IdentificationParametersEditionDialog with a frame as owner.
      Parameters:
      parentFrame - the parent frame
      identificationParameters - the identification parameters to display
      normalIcon - the normal icon
      waitingIcon - the waiting icon
      lastSelectedFolder - the last selected folder
      editable - boolean indicating whether the parameters can be edited
    • IdentificationParametersEditionDialog

      public IdentificationParametersEditionDialog​(Dialog owner, Frame parentFrame, IdentificationParameters identificationParameters, Image normalIcon, Image waitingIcon, LastSelectedFolder lastSelectedFolder, boolean editable)
      Creates a new IdentificationParametersEditionDialog with a dialog as owner.
      Parameters:
      owner - the dialog owner
      parentFrame - the parent frame
      identificationParameters - the identification parameters to display
      normalIcon - the normal icon
      waitingIcon - the waiting icon
      lastSelectedFolder - the last selected folder
      editable - boolean indicating whether the parameters can be edited
  • Method Details

    • updateGUI

      public void updateGUI()
      Populates the GUI using the given identification parameters.
    • isCanceled

      public boolean isCanceled()
      Indicates whether the user canceled the editing.
      Returns:
      a boolean indicating whether the user canceled the editing
    • getIdentificationParameters

      public IdentificationParameters getIdentificationParameters()
      Returns the identification parameters as set by the user.
      Returns:
      the identification parameters as set by the user
    • validateInput

      public boolean validateInput()
      Validates the user input.
      Returns:
      a boolean indicating whether the user input is valid
    • validateParametersInput

      public boolean validateParametersInput​(boolean showMessage)
      Inspects the search parameter validity.
      Parameters:
      showMessage - if true an error message is shown to the users
      Returns:
      a boolean indicating if the parameters are valid