Class SearchableSelectorDialog<T>

Type Parameters:
T - The type of the elements in this selector dialog
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
ListSelectorDialog, MCItemSelectorDialog

public abstract class SearchableSelectorDialog<T> extends MCreatorDialog
This abstract class provides a filter field and a filter model for searchable selectors.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • setInitialSelection

      public void setInitialSelection(T toSelect)
    • setInitialSelection

      public void setInitialSelection(List<T> toSelect)
    • getFilter

      protected abstract Predicate<T> getFilter(String term)
      The filter used by the search bar
      Parameters:
      term - The text contained in the search bar
      Returns:
      The predicate that will be used to filter the elements