Class ItemFilter
- java.lang.Object
-
- com._1c.g5.v8.dt.rights.ui.sections.ItemFilter
-
- Direct Known Subclasses:
ObjectsAndRolesFilter
,SearchFilterWithHistory
public abstract class ItemFilter extends Object
The item filter is used to extract a subset ofTreeViewerItem
's from the original set of items. The difference fromViewerFilter
is thatItemFilter
is applied to the input on the core layer instead of UI layer as inViewerFilter
. This allows to manage the process of filter applying to the input.
-
-
Constructor Summary
Constructors Constructor Description ItemFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<TreeViewerItem>
filter(List<TreeViewerItem> items)
Filters the given set of items.abstract boolean
select(TreeViewerItem item)
Returns whether the given item makes it through this filter.
-
-
-
Method Detail
-
filter
public List<TreeViewerItem> filter(List<TreeViewerItem> items)
Filters the given set of items.- Parameters:
items
- the given set of items, can not benull
- Returns:
- the filtered items, never
null
-
select
public abstract boolean select(TreeViewerItem item)
Returns whether the given item makes it through this filter.- Parameters:
item
- the given item, can not benull
- Returns:
true
if the item is included in the filtered set andfalse
otherwise
-
-