Class FilterDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class FilterDialog
extends JDialog
Dialog to edit identification matches filters.
Author:
Marc Vaudel, Harald Barsnes
See Also:
Serialized Form
  • Constructor Details

    • FilterDialog

      public FilterDialog​(JDialog parent, MatchFilter filter, ArrayList<String> allModifications)
      Creates and displays a new dialog.
      Parameters:
      parent - the parent frame
      filter - the filter to edit
      allModifications - the modifications that can be used for filtering
  • Method Details

    • setUpGUI

      public void setUpGUI()
      Sets up the GUI components.
    • setUpTable

      public void setUpTable()
      Updates the table content according to the selected filter.
    • updateTable

      public void updateTable()
      Updates the table.
    • isCanceled

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

      public MatchFilter getFilter()
      Returns the filter as set by the user.
      Returns:
      the filter
    • setFilter

      public void setFilter()
      /** Modifies the filter according to the user selection.
    • validateInput

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

      public boolean hasInput()
      Indicates whether something was input for the filter.
      Returns:
      a boolean indicating whether something was input for the filter