Class EmptySearchHistory
- java.lang.Object
-
- com._1c.g5.v8.dt.common.ui.controls.search.EmptySearchHistory
-
- All Implemented Interfaces:
ISearchHistory
public class EmptySearchHistory extends Object implements ISearchHistory
SearchBox
history w/o memory.
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.common.ui.controls.search.ISearchHistory
ALL_PATTERNS
-
-
Constructor Summary
Constructors Constructor Description EmptySearchHistory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActivePattern()
List<String>
getRecentPatterns(int maxPatterns)
Return recent history patterns.void
savePattern(String pattern)
Saves pattern in the history.
-
-
-
Method Detail
-
savePattern
public void savePattern(String pattern)
Saves pattern in the history.- Specified by:
savePattern
in interfaceISearchHistory
- Parameters:
pattern
- pattern to save.
-
getRecentPatterns
public List<String> getRecentPatterns(int maxPatterns)
Return recent history patterns. UseISearchHistory.ALL_PATTERNS
to obtain all patterns stored in the history.- Specified by:
getRecentPatterns
in interfaceISearchHistory
- Parameters:
maxPatterns
- maximum number of patterns to return.- Returns:
- recent patterns or empty iterable if there are no patterns.
-
getActivePattern
public String getActivePattern()
- Specified by:
getActivePattern
in interfaceISearchHistory
- Returns:
- active pattern or empty string if there is no one.
-
-