public class SearchCommand extends Object implements ILayerCommand
Modifier | Constructor and Description |
---|---|
|
SearchCommand(ILayer layer,
ISearchStrategy searchStrategy,
String searchDirection,
boolean isWrapSearch,
boolean isCaseSensitive,
Comparator<?> comparator) |
protected |
SearchCommand(SearchCommand command) |
|
SearchCommand(String searchText,
ILayer layer,
ISearchStrategy searchStrategy,
String searchDirection,
boolean isWrapSearch,
boolean isCaseSensitive,
Comparator<?> comparator) |
Modifier and Type | Method and Description |
---|---|
SearchCommand |
cloneCommand()
Same semantics as
Object.clone()
Used to make a copies of the command if has to passed to different layer stacks. |
boolean |
convertToTargetLayer(ILayer targetLayer)
Convert the row/column coordinates the command might be carrying from the source layer
to the destination (target) layer.
|
Comparator<?> |
getComparator() |
ILayer |
getContext() |
String |
getSearchDirection() |
ILayerListener |
getSearchEventListener() |
ISearchStrategy |
getSearchStrategy() |
String |
getSearchText() |
boolean |
isCaseSensitive() |
boolean |
isWrapSearch() |
void |
setSearchEventListener(ILayerListener listener) |
public SearchCommand(ILayer layer, ISearchStrategy searchStrategy, String searchDirection, boolean isWrapSearch, boolean isCaseSensitive, Comparator<?> comparator)
public SearchCommand(String searchText, ILayer layer, ISearchStrategy searchStrategy, String searchDirection, boolean isWrapSearch, boolean isCaseSensitive, Comparator<?> comparator)
protected SearchCommand(SearchCommand command)
public ILayer getContext()
public ISearchStrategy getSearchStrategy()
public String getSearchText()
public String getSearchDirection()
public boolean isWrapSearch()
public boolean isCaseSensitive()
public ILayerListener getSearchEventListener()
public void setSearchEventListener(ILayerListener listener)
public Comparator<?> getComparator()
public boolean convertToTargetLayer(ILayer targetLayer)
ILayerCommand
convertToTargetLayer
in interface ILayerCommand
targetLayer
- the target layerpublic SearchCommand cloneCommand()
ILayerCommand
Object.clone()
Used to make a copies of the command if has to passed to different layer stacks.cloneCommand
in interface ILayerCommand
GridLayer.doCommand(ILayerCommand)
Copyright © 2013. All Rights Reserved.