Class SelectionSearchStrategy
java.lang.Object
org.eclipse.nebula.widgets.nattable.search.strategy.AbstractSearchStrategy
org.eclipse.nebula.widgets.nattable.search.strategy.SelectionSearchStrategy
- All Implemented Interfaces:
ISearchStrategy
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.search.strategy.AbstractSearchStrategy
caseSensitive, columnFirst, comparator, includeCollapsed, incremental, regex, searchDirection, wholeWord, wrapSearch
Fields inherited from interface org.eclipse.nebula.widgets.nattable.search.strategy.ISearchStrategy
SKIP_SEARCH_RESULT_LABEL
-
Constructor Summary
ConstructorDescriptionSelectionSearchStrategy
(IConfigRegistry configRegistry) SelectionSearchStrategy
(IConfigRegistry configRegistry, boolean columnFirst) SelectionSearchStrategy
(IConfigRegistry configRegistry, String searchDirection, boolean columnFirst) Deprecated.SelectionSearchStrategy
(IConfigRegistry configRegistry, SearchDirection searchDirection, boolean columnFirst) -
Method Summary
Modifier and TypeMethodDescriptionexecuteSearch
(Object valueToMatch) Search for the given value and return the coordinates of the matching cell.protected PositionCoordinate[]
getSelectedCells
(SelectionLayer selectionLayer) boolean
Methods inherited from class org.eclipse.nebula.widgets.nattable.search.strategy.AbstractSearchStrategy
getComparator, getContextLayer, getSearchDirection, isCaseSensitive, isColumnFirst, isIncludeCollapsed, isIncremental, isRegex, isWholeWord, isWrapSearch, setCaseSensitive, setColumnFirst, setComparator, setContextLayer, setIncludeCollapsed, setIncremental, setRegex, setSearchDirection, setSearchDirection, setWholeWord, setWrapSearch
-
Constructor Details
-
SelectionSearchStrategy
-
SelectionSearchStrategy
-
SelectionSearchStrategy
@Deprecated public SelectionSearchStrategy(IConfigRegistry configRegistry, String searchDirection, boolean columnFirst) Deprecated.Use constructor withSearchDirection
parameter- Parameters:
configRegistry
- TheConfigRegistry
.searchDirection
- TheSearchDirection
.columnFirst
- Flag to configure if the search should be by column.
-
SelectionSearchStrategy
public SelectionSearchStrategy(IConfigRegistry configRegistry, SearchDirection searchDirection, boolean columnFirst) - Parameters:
configRegistry
- TheConfigRegistry
.searchDirection
- TheSearchDirection
.columnFirst
- Flag to configure if the search should be by column.- Since:
- 2.0
-
-
Method Details
-
executeSearch
Description copied from interface:ISearchStrategy
Search for the given value and return the coordinates of the matching cell.- Parameters:
valueToMatch
- The value to search for.- Returns:
- The coordinates of the cell that contains the given value.
-
getSelectedCells
-
processResultInternally
public boolean processResultInternally()- Overrides:
processResultInternally
in classAbstractSearchStrategy
- Returns:
false
if the result should be processed by the caller,true
if the strategy deals with the result itself.
-
SearchDirection
parameter