|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.table.search.TableSelector
public class TableSelector
A simple SearchModelListener implementation for selecting the matching cells of a table when searching.
Field Summary | |
---|---|
protected TableModel |
searchModel
the search model |
protected JTable |
table
the associated table |
Constructor Summary | |
---|---|
TableSelector(JTable table)
Constructs a TableSelector. |
Method Summary | |
---|---|
TableModel |
getSearchModel()
Retrieves the tabular search model to use when searching. |
void |
search(SearchModelEvent e)
Called whenever searching of a table has been requested. |
void |
setSearchModel(TableModel searchModel)
Assigns the tabular search model to use when searching. |
void |
setTable(JTable table)
Assigns the table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JTable table
protected TableModel searchModel
Constructor Detail |
---|
public TableSelector(JTable table)
Method Detail |
---|
public TableModel getSearchModel()
setSearchModel
.
public void search(SearchModelEvent e)
search
in interface SearchModelListener
e
- the SearchModelEvent objectpublic void setSearchModel(TableModel searchModel)
The default model is one that returns the values of the table, by calling the table's getValueAt method.
searchModel
- the model to assignpublic void setTable(JTable table)
table
- the table to assign
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |