|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
adams.gui.core.AbstractBaseTableModel
adams.gui.selection.AbstractTableBasedSelectionPanel.AbstractSelectionTableModel<EmailContact>
adams.gui.selection.SelectEmailAddressPanel.TableModel
public static class SelectEmailAddressPanel.TableModel
A simple table model for displaying the contacts.
| Field Summary | |
|---|---|
protected List<EmailContact> |
m_Values
the contacts. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
SelectEmailAddressPanel.TableModel()
the constructor. |
|
SelectEmailAddressPanel.TableModel(EmailContact[] contacts)
the constructor. |
|
SelectEmailAddressPanel.TableModel(List<EmailContact> contacts)
the constructor. |
|
| Method Summary | |
|---|---|
Class |
getColumnClass(int columnIndex)
Returns the class type of the column. |
int |
getColumnCount()
Returns the number of columns in the table, i.e., 6. |
String |
getColumnName(int column)
Returns the name of the column. |
EmailContact |
getItemAt(int row)
Returns the item at the specified position. |
int |
getRowCount()
Returns the number of contacts. |
Object |
getValueAt(int row,
int column)
Returns the substance value at the given position. |
int |
indexOf(EmailContact item)
Returns the index of the given (visible) item, -1 if not found. |
boolean |
isSearchMatch(SearchParameters params,
int row)
Tests whether the search matches the specified row. |
| Methods inherited from class adams.gui.core.AbstractBaseTableModel |
|---|
toSpreadSheet, toString |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt |
| Field Detail |
|---|
protected List<EmailContact> m_Values
| Constructor Detail |
|---|
public SelectEmailAddressPanel.TableModel()
public SelectEmailAddressPanel.TableModel(List<EmailContact> contacts)
contacts - the contacts to displaypublic SelectEmailAddressPanel.TableModel(EmailContact[] contacts)
contacts - the contacts to display| Method Detail |
|---|
public int getColumnCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - the column to get the name for
public Class getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumnIndex - the column to get the class for
public Object getValueAt(int row,
int column)
row - the rowcolumn - the column (ignored, since only 1 column)
public boolean isSearchMatch(SearchParameters params,
int row)
params - the search parametersrow - the row of the underlying, unsorted model
public int getRowCount()
public EmailContact getItemAt(int row)
getItemAt in class AbstractTableBasedSelectionPanel.AbstractSelectionTableModel<EmailContact>row - the (actual, not visible) position of the item
public int indexOf(EmailContact item)
indexOf in class AbstractTableBasedSelectionPanel.AbstractSelectionTableModel<EmailContact>item - the item to look for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||