Class SearchCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.search.command.SearchCommand
- All Implemented Interfaces:
ILayerCommand
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSearchCommand(String searchText, ILayer layer, ISearchStrategy searchStrategy, String searchDirection, boolean isWrapSearch, boolean isCaseSensitive, boolean isWholeWord, boolean isIncremental, boolean isRegex, boolean isIncludeCollapsed, Comparator<?> comparator) Deprecated.SearchCommand(String searchText, ILayer layer, ISearchStrategy searchStrategy, SearchDirection searchDirection, boolean isWrapSearch, boolean isCaseSensitive, boolean isWholeWord, boolean isIncremental, boolean isRegex, boolean isIncludeCollapsed, Comparator<?> comparator) SearchCommand(ILayer layer, ISearchStrategy searchStrategy, String searchDirection, boolean isWrapSearch, boolean isCaseSensitive, boolean isWholeWord, boolean isIncremental, boolean isRegex, boolean isIncludeCollapsed, Comparator<?> comparator) Deprecated.Use constructor withSearchDirectionparameter and text to search forprotectedSearchCommand(SearchCommand command) -
Method Summary
Modifier and TypeMethodDescriptionSame semantics asObject.clone()Used to make a copies of the command if has to passed to different layer stacks.booleanconvertToTargetLayer(ILayer targetLayer) Convert the row/column coordinates the command might be carrying from the source layer to the destination (target) layer.Comparator<?>booleanbooleanbooleanbooleanisRegex()booleanbooleanvoidsetSearchEventListener(ILayerListener listener)
-
Constructor Details
-
SearchCommand
@Deprecated public SearchCommand(ILayer layer, ISearchStrategy searchStrategy, String searchDirection, boolean isWrapSearch, boolean isCaseSensitive, boolean isWholeWord, boolean isIncremental, boolean isRegex, boolean isIncludeCollapsed, Comparator<?> comparator) Deprecated.Use constructor withSearchDirectionparameter and text to search for- Parameters:
layer- The layer to search for the cell with the provided text. Typically the SelectionLayer.searchStrategy- The search strategy to performsearchDirection- The search direction.isWrapSearch- is search wrap enabledisCaseSensitive- is search case sensitiveisWholeWord- only search whole wordsisIncremental- is search incrementalisRegex- is search based on regular expressionsisIncludeCollapsed- is search including collapsed nodescomparator- the comparator to use
-
SearchCommand
@Deprecated public SearchCommand(String searchText, ILayer layer, ISearchStrategy searchStrategy, String searchDirection, boolean isWrapSearch, boolean isCaseSensitive, boolean isWholeWord, boolean isIncremental, boolean isRegex, boolean isIncludeCollapsed, Comparator<?> comparator) Deprecated.Use constructor withSearchDirectionparameter- Parameters:
searchText- The text to search.layer- The layer to search for the cell with the provided text. Typically the SelectionLayer.searchStrategy- The search strategy to performsearchDirection- The search direction.isWrapSearch- is search wrap enabledisCaseSensitive- is search case sensitiveisWholeWord- only search whole wordsisIncremental- is search incrementalisRegex- is search based on regular expressionsisIncludeCollapsed- is search including collapsed nodescomparator- the comparator to use
-
SearchCommand
public SearchCommand(String searchText, ILayer layer, ISearchStrategy searchStrategy, SearchDirection searchDirection, boolean isWrapSearch, boolean isCaseSensitive, boolean isWholeWord, boolean isIncremental, boolean isRegex, boolean isIncludeCollapsed, Comparator<?> comparator) - Parameters:
searchText- The text to search.layer- The layer to search for the cell with the provided text. Typically the SelectionLayer.searchStrategy- The search strategy to performsearchDirection- The search direction.isWrapSearch- is search wrap enabledisCaseSensitive- is search case sensitiveisWholeWord- only search whole wordsisIncremental- is search incrementalisRegex- is search based on regular expressionsisIncludeCollapsed- is search including collapsed nodescomparator- the comparator to use- Since:
- 2.0
-
SearchCommand
-
-
Method Details
-
getContext
-
getSearchStrategy
-
getSearchText
-
getSearchDirection
- Returns:
- the search direction.
- Since:
- 2.0
-
isWrapSearch
public boolean isWrapSearch() -
isCaseSensitive
public boolean isCaseSensitive() -
isWholeWord
public boolean isWholeWord() -
isIncremental
public boolean isIncremental() -
isIncludeCollapsed
public boolean isIncludeCollapsed() -
isRegex
public boolean isRegex() -
getSearchEventListener
-
setSearchEventListener
-
getComparator
-
convertToTargetLayer
Description copied from interface:ILayerCommandConvert the row/column coordinates the command might be carrying from the source layer to the destination (target) layer. If it is not possible to convert the command to the target layer, then this method will return false and the state of this command object will remain unchanged. Note: Commands should not be processed if they fail conversion.- Specified by:
convertToTargetLayerin interfaceILayerCommand- Parameters:
targetLayer- the target layer- Returns:
- true if the command is valid after conversion, false if the command is no longer valid.
-
cloneCommand
Description copied from interface:ILayerCommandSame semantics asObject.clone()Used to make a copies of the command if has to passed to different layer stacks.- Specified by:
cloneCommandin interfaceILayerCommand- Returns:
- a cloned instance of the command
- See Also:
-
SearchDirectionparameter