Class IdentificationParametersNameDialog

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

public class IdentificationParametersNameDialog
extends JDialog
Author:
Marc Vaudel
See Also:
Serialized Form
  • Constructor Details

    • IdentificationParametersNameDialog

      public IdentificationParametersNameDialog()
      Empty default constructor
    • IdentificationParametersNameDialog

      public IdentificationParametersNameDialog​(Frame parentFrame, IdentificationParameters identificationParameters, boolean editable)
      Creates a new IdentificationParametersNameDialog with a frame as owner.
      Parameters:
      parentFrame - a parent frame
      identificationParameters - the identification parameters to display
      editable - boolean indicating whether the settings can be edited by the user
    • IdentificationParametersNameDialog

      public IdentificationParametersNameDialog​(Dialog owner, Frame parentFrame, IdentificationParameters identificationParameters, boolean editable)
      Creates a new IdentificationParametersNameDialog with a dialog as owner.
      Parameters:
      owner - the dialog owner
      parentFrame - a parent frame
      identificationParameters - the identification parameters to display
      editable - boolean indicating whether the settings can be edited by the user
  • Method Details

    • isCanceled

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

      public void updateParameters​(IdentificationParameters identificationParameters)
      Updates the given identification parameters attributes.
      Parameters:
      identificationParameters - the identification parameters to update
    • validateInput

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