Interface SearchListModel<T>

Type Parameters:
T - the type of data items in the search list
All Superinterfaces:
ListModel<SearchListEntry<T>>
All Known Implementing Classes:
ActionsModel, DefaultSearchListModel

public interface SearchListModel<T> extends ListModel<SearchListEntry<T>>
Interface for the model for SearchList. It is an extension of a JList's model to add the ability to group items into categories.
  • Method Details

    • getCategories

      List<String> getCategories()
      Returns the list of categories in the order they were added to the model
      Returns:
      the list of categories in the order they were added to the model
    • setFilter

      void setFilter(BiPredicate<T,String> filter)
      Sets the filter for the model data to display.
      Parameters:
      filter - the BiPredicate for the model data to display which will filter based on the item and its category
    • dispose

      void dispose()
      Clean up any resources held by the model