Class SearchParametersDialog

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

public class SearchParametersDialog
extends JDialog
The search settings dialog.
Author:
Harald Barsnes
See Also:
Serialized Form
  • Field Details

    • TITLED_BORDER_HORIZONTAL_PADDING

      public static String TITLED_BORDER_HORIZONTAL_PADDING
      The horizontal padding used before and after the text in the titled borders. (Needed to make it look as good in Java 7 as it did in Java 6...)
  • Constructor Details

    • SearchParametersDialog

      public SearchParametersDialog()
      Empty default constructor
    • SearchParametersDialog

      public SearchParametersDialog​(Frame parentFrame, SearchParameters searchParameters, Image normalIcon, Image waitingIcon, boolean setVisible, boolean modal, LastSelectedFolder lastSelectedFolder, String settingsName, boolean editable)
      Creates a new SearchSettingsDialog with a frame as owner.
      Parameters:
      parentFrame - the parent frame
      searchParameters - previous search parameters
      normalIcon - the normal dialog icon
      waitingIcon - the waiting dialog icon
      setVisible - if the dialog is to be visible or not
      modal - if the dialog is to be modal
      lastSelectedFolder - the last selected folder to use
      settingsName - the name of the settings
      editable - boolean indicating whether the settings can be edited by the user
    • SearchParametersDialog

      public SearchParametersDialog​(Dialog owner, Frame parentFrame, SearchParameters searchParameters, Image normalIcon, Image waitingIcon, boolean setVisible, boolean modal, LastSelectedFolder lastSelectedFolder, String settingsName, boolean editable)
      Creates a new SearchSettingsDialog with a dialog as owner.
      Parameters:
      owner - the dialog owner
      parentFrame - the parent frame
      searchParameters - previous search parameters
      normalIcon - the normal dialog icon
      waitingIcon - the waiting dialog icon
      setVisible - if the dialog is to be visible or not
      modal - if the dialog is to be modal
      lastSelectedFolder - the last selected folder to use
      settingsName - the name of the settings
      editable - boolean indicating whether the settings can be edited by the user
  • Method Details

    • validateParametersInput

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

      public SearchParameters getSearchParameters()
      Returns a SearchParameters instance based on the user input in the GUI.
      Returns:
      a SearchParameters instance based on the user input in the GUI
    • isCanceled

      public boolean isCanceled()
      Indicates whether the cancel button was pressed by the user.
      Returns:
      a boolean indicating whether the cancel button was pressed by the user