Class SearchFilterWithHistory
- java.lang.Object
-
- org.eclipse.jface.viewers.ViewerFilter
-
- com._1c.g5.v8.dt.common.ui.controls.search.SearchFilterWithHistory
-
- Direct Known Subclasses:
InMemorySearchFilter
,NavigatorSearchFilterWithHistory
public abstract class SearchFilterWithHistory extends ViewerFilter
The extension ofViewerFilter
that saves the search history.- See Also:
ViewerFilter
-
-
Constructor Summary
Constructors Constructor Description SearchFilterWithHistory()
Creates a new search filter withInMemorySearchHistory
as search history.SearchFilterWithHistory(ISearchHistory searchHistory)
Creates a new search filter with the given search history.SearchFilterWithHistory(ISearchHistory searchHistory, int columnIndex)
Creates a new search filter with the given search history and column index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes this search filter.protected int
getColumnIndex()
Gets the column index used to define label provider.ISearchHistory
getSearchHistory()
Gets the filter search history.-
Methods inherited from class org.eclipse.jface.viewers.ViewerFilter
filter, filter, isFilterProperty, select
-
-
-
-
Constructor Detail
-
SearchFilterWithHistory
public SearchFilterWithHistory()
Creates a new search filter withInMemorySearchHistory
as search history.
-
SearchFilterWithHistory
public SearchFilterWithHistory(ISearchHistory searchHistory)
Creates a new search filter with the given search history.- Parameters:
searchHistory
- the search history shared between filter and other components, can not benull
-
SearchFilterWithHistory
public SearchFilterWithHistory(ISearchHistory searchHistory, int columnIndex)
Creates a new search filter with the given search history and column index.- Parameters:
searchHistory
- the search history shared between filter and other components, can not benull
columnIndex
- the column index, may be -1 if the viewer label provider is used. If the required column label provider the column index must be non-negative
-
-
Method Detail
-
getSearchHistory
public ISearchHistory getSearchHistory()
Gets the filter search history. Override it if you want to change the filter search history.- Returns:
- the filter search history, can not be
null
-
dispose
public void dispose()
Disposes this search filter.
-
getColumnIndex
protected int getColumnIndex()
Gets the column index used to define label provider.- Returns:
- the column index
-
-