Interface NoResults
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface that is responsible for generating a menu item when no results are found in a given menu list for a
specific input text.
This interface can be implemented to customize the behavior or appearance of the "no results" menu item.
-
Method Details
-
noResults
Provides a default implementation of theNoResultsfunctional interface. The returned implementation generates a disabled menu item with a message indicating that no results were found for the provided text.- Returns:
- A
NoResultsimplementation that creates a disabled menu item with a "no results" message based on the input text.