Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table.search
Interface Search

All Known Implementing Classes:
TableSearch

public interface Search

This is the object that performs the actual searching through a table structure.


Method Summary
 int getLastMatchingColumn()
          Returns the matched column from the last search.
 int search(TableModel model, Object searchValue, int fromRow, int fromColumn, boolean forward)
          Searches the table and returns the matching row or -1 if no match was found.
 

Method Detail

getLastMatchingColumn

int getLastMatchingColumn()
Returns the matched column from the last search.

Returns:
the matched column from the last search

search

int search(TableModel model,
           Object searchValue,
           int fromRow,
           int fromColumn,
           boolean forward)
Searches the table and returns the matching row or -1 if no match was found. The matching column can be retrieved with getLastMatchingColumn().

Parameters:
model - the table model to search
searchValue - the value to search for
fromRow - the search starting row
fromColumn - the search starting column
forward - the search direction
Returns:
the matching row or -1 if no match was found

Copyright © 2005 Scientific Applications. All Rights Reserved.