Package adams.gui.core
Interface SearchableTable
-
- All Known Implementing Classes:
InformativeStatisticFactory.Table
,InstanceReportFactory.Table
,InstancesTable
,InstanceTable
,ReportFactory.Table
,SortableAndSearchableTable
,SpreadSheetCellSelector.Table
,SpreadSheetRowReportFactory.Table
,SpreadSheetTable
,XYSequenceTable
public interface SearchableTable
Interface for Tables that can be searched.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getActualRow(int rowIndex)
Returns the actual row in the model.int
getActualRowCount()
Returns the actual row count in the model.String
getSeachString()
Returns the current search string.boolean
isRegExpSearch()
Returns whether the last search was a regular expression based one.void
search(String searchString, boolean regexp)
Performs a search for the given string.
-
-
-
Method Detail
-
getActualRow
int getActualRow(int rowIndex)
Returns the actual row in the model.- Parameters:
rowIndex
- the row of the currently displayed data- Returns:
- the row in the underlying data
-
getActualRowCount
int getActualRowCount()
Returns the actual row count in the model.- Returns:
- the row count in the underlying data
-
search
void search(String searchString, boolean regexp)
Performs a search for the given string. Limits the display of rows to ones containing the search string.- Parameters:
searchString
- the string to search forregexp
- whether to perform regular expression matching or just plain string comparison
-
getSeachString
String getSeachString()
Returns the current search string.- Returns:
- the search string, null if not filtered
-
isRegExpSearch
boolean isRegExpSearch()
Returns whether the last search was a regular expression based one.- Returns:
- true if last search was a reg exp one
-
-