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

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

    • TideParametersDialog

      public TideParametersDialog(Frame parent, TideParameters tideParameters, boolean editable)
      Creates a new TideSettingsDialog with a frame as owner.
      Parameters:
      parent - the parent frame
      tideParameters - the Tide parameters
      editable - boolean indicating whether the settings can be edited by the user
    • TideParametersDialog

      public TideParametersDialog(Dialog owner, Frame parent, TideParameters tideParameters, boolean editable)
      Creates a new TideSettingsDialog with a dialog as owner.
      Parameters:
      owner - the dialog owner
      parent - the parent frame
      tideParameters - the Tide 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 TideParameters getInput()
      Returns the user selection as Tide 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