Class SequenceMatchingParametersDialog

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

public class SequenceMatchingParametersDialog
extends JDialog
Dialog for the edition of the sequence matching settings.
Author:
Marc Vaudel, Harald Barsnes
See Also:
Serialized Form
  • Constructor Details

    • SequenceMatchingParametersDialog

      public SequenceMatchingParametersDialog​(Frame parentFrame, SequenceMatchingParameters sequenceMatchingPreferences, boolean editable)
      Creates a new SequenceMatchingSettingsDialog with a frame as owner.
      Parameters:
      parentFrame - a parent frame
      sequenceMatchingPreferences - the sequence matching preferences to display
      editable - boolean indicating whether the settings can be edited by the user
    • SequenceMatchingParametersDialog

      public SequenceMatchingParametersDialog​(Dialog owner, Frame parentFrame, SequenceMatchingParameters sequenceMatchingPreferences, boolean editable)
      Creates a new SequenceMatchingSettingsDialog with a dialog as owner.
      Parameters:
      owner - the dialog owner
      parentFrame - a parent frame
      sequenceMatchingPreferences - the sequence matching preferences 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
    • getSequenceMatchingPreferences

      public SequenceMatchingParameters getSequenceMatchingPreferences()
      Returns the sequence matching settings as set by the user.
      Returns:
      the sequence matching settings as set by the user
    • validateInput

      public boolean validateInput​(boolean showMessage)
      Validates the user input.
      Parameters:
      showMessage - if true an error messages are shown to the users
      Returns:
      a boolean indicating whether the user input is valid