| java.lang.Object org.eclipse.jface.viewers.ViewerFilter
ViewerFilter | abstract public class ViewerFilter (Code) | | A viewer filter is used by a structured viewer to
extract a subset of elements provided by its content provider.
Subclasses must implement the select method
and may implement the isFilterProperty method.
See Also: IStructuredContentProvider See Also: StructuredViewer |
Constructor Summary | |
protected | ViewerFilter() Creates a new viewer filter. |
ViewerFilter | protected ViewerFilter()(Code) | | Creates a new viewer filter.
|
filter | public Object[] filter(Viewer viewer, Object parent, Object[] elements)(Code) | | Filters the given elements for the given viewer.
The input array is not modified.
The default implementation of this method calls
select on each element in the array,
and returns only those elements for which select
returns true .
Parameters: viewer - the viewer Parameters: parent - the parent element Parameters: elements - the elements to filter the filtered elements |
filter | public Object[] filter(Viewer viewer, TreePath parentPath, Object[] elements)(Code) | | Filters the given elements for the given viewer.
The input array is not modified.
The default implementation of this method calls
ViewerFilter.filter(Viewer,Object,Object[]) with the
parent from the path. Subclasses may override
Parameters: viewer - the viewer Parameters: parentPath - the path of the parent element Parameters: elements - the elements to filter the filtered elements since: 3.2 |
isFilterProperty | public boolean isFilterProperty(Object element, String property)(Code) | | Returns whether this viewer filter would be affected
by a change to the given property of the given element.
The default implementation of this method returns false .
Subclasses should reimplement.
Parameters: element - the element Parameters: property - the property true if the filtering would be affected,and false if it would be unaffected |
select | abstract public boolean select(Viewer viewer, Object parentElement, Object element)(Code) | | Returns whether the given element makes it through this filter.
Parameters: viewer - the viewer Parameters: parentElement - the parent element Parameters: element - the element true if element is included in thefiltered set, and false if excluded |
|
|