Class BSimFilterPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BSimFilterPanel extends JPanel
Panel for specifying and managing BSim filters.
See Also:
  • Constructor Details

    • BSimFilterPanel

      public BSimFilterPanel(Callback changeListener)
      Constructs a filer panel with no filters
      Parameters:
      changeListener - the callback when filters change
    • BSimFilterPanel

      public BSimFilterPanel(List<BSimFilterType> filters, BSimFilterSet filterSet, Callback changeListener)
      Constructs a filer panel with existing filters
      Parameters:
      filters - the list of filterTypes to display in the comboBox
      filterSet - the current filter settings
      changeListener - the callback when filters change
  • Method Details

    • setFilterSet

      public void setFilterSet(BSimFilterSet filterSet)
      Sets the panel to have the given filters
      Parameters:
      filterSet - the set of filters to show in the panel
    • setFilters

      public void setFilters(List<BSimFilterType> filters)
      Sets the choices for filter types in the filter comboBoxes.
      Parameters:
      filters - the filter types the user can choose
    • getFilterSet

      public BSimFilterSet getFilterSet()
      Returns the set of valid filters that are displayed in this filter panel
      Returns:
      the set of valid filters that are displayed in this filter panel
    • hasValidFilters

      public boolean hasValidFilters()
      Returns true the panel has only valid filters. (Blank filter is ok)
      Returns:
      true the panel has only valid filters