alma::acsplugins::alarmsystem::gui::table::SearchEngine Class Reference

Collaboration diagram for alma::acsplugins::alarmsystem::gui::table::SearchEngine:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SearchEngine (AlarmTable table, AlarmTableModel model)
int search (String string, boolean next)

Private Attributes

final AlarmTable table
final AlarmTableModel model

Detailed Description

Object of this class perform the search function on the alarm table.

Author:
acaproni

Constructor & Destructor Documentation

alma::acsplugins::alarmsystem::gui::table::SearchEngine::SearchEngine ( AlarmTable  table,
AlarmTableModel  model 
) [inline]

Constructor

Parameters:
table The table of logs
model The table model

Member Function Documentation

int alma::acsplugins::alarmsystem::gui::table::SearchEngine::search ( String  string,
boolean  next 
) [inline]

Search for a string in the table

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.

Parameters:
string The string to search in the table
next if true search the next entry, otherwise the previous
Returns:
the table index of the entry or -1 if no matching entry has been found

References alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::getValueAt(), model, and table.

Referenced by alma::acsplugins::alarmsystem::gui::table::AlarmTable::search().


Member Data Documentation

The model of the table of alarms

Referenced by search().

The table of alarms

Referenced by search().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2