public interface ItemSelectorCriterionHandler<T extends ItemSelectorCriterion>
ItemSelectorView
for a
particular ItemSelectorCriterion
. Every item selector criterion
should have its own associated item selector criterion handler.
Implementations of this interface need to be registered as OSGi components
using the service ItemSelectorCriterionHandler
.
Unless an implementation needs custom logic to filter item selector views, it
will simply need to extend BaseItemSelectorCriterionHandler
and only
implement the method getItemSelectorCriterionClass()
.
Modifier and Type | Method and Description |
---|---|
java.lang.Class<T> |
getItemSelectorCriterionClass()
Returns the item selector criterion associated to this handler.
|
java.util.List<ItemSelectorView<T>> |
getItemSelectorViews(T itemSelectorCriterion)
Returns the item selector views to display that meet the needs of the
item selector criterion.
|
java.lang.Class<T> getItemSelectorCriterionClass()
java.util.List<ItemSelectorView<T>> getItemSelectorViews(T itemSelectorCriterion)
itemSelectorCriterion
- the item selector criterion instance