public class SearchEngine
extends java.lang.Object
| Constructor and Description |
|---|
SearchEngine(AlarmTable table,
AlarmTableModel model)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
search(java.lang.String string,
boolean next)
Search for a string in the table
|
public SearchEngine(AlarmTable table, AlarmTableModel model)
table - The table of logsmodel - The table modelpublic int search(java.lang.String string,
boolean next)
The method search for the string only in the visible columns.
It succeeds is a column contains the passed string.
The returned values tell if the methods reached the end (or the beginning)
of the table without finding a matching row.
string - The string to search in the tablenext - if true search the next entry,
otherwise the previous