|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
com.sciapp.table.ListTableMap
com.sciapp.table.ThreadedListTableModel
public class ThreadedListTableModel
ThreadedListTableModel wraps around a ListTableModel in order to make it thread safe.
| Field Summary |
|---|
| Fields inherited from class com.sciapp.table.ListTableMap |
|---|
tableModel |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
ThreadedListTableModel(ListTableModel tableModel)
Create a ThreadedTableModel. |
|
| Method Summary | |
|---|---|
void |
addRow(Object row)
Adds a row to the end of the model. |
void |
addRows(List addedRows)
Adds a list of rows to the end of the model. addedRows contains objects representing the actual rows being added. e.g. java.util.Vector, for DefaultTableModel. |
void |
clear()
Clears the model of any data. |
void |
removeRow(int row)
Removes a row from the data model |
void |
removeRows(int[] deletedRows)
Removes a few rows from the data model |
| Methods inherited from class com.sciapp.table.ListTableMap |
|---|
addReorderListener, convertRowIndexToModel, convertRowIndexToView, fireRowsMapped, fireRowsReordered, getCellValue, getColumnClass, getColumnCount, getColumnName, getInnerModel, getModel, getRowCount, getRows, getValueAt, isCellEditable, removeReorderListener, rowsReordered, setModel, setValueAt, tableChanged |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sciapp.table.ListTableModel |
|---|
fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, removeTableModelListener |
| Constructor Detail |
|---|
public ThreadedListTableModel(ListTableModel tableModel)
| Method Detail |
|---|
public void addRow(Object row)
addRow in interface ListTableModeladdRow in class ListTableMaprow - the row being addedpublic void addRows(List addedRows)
addedRows contains objects representing the actual rows being added. e.g. java.util.Vector, for DefaultTableModel.
addRows in interface ListTableModeladdRows in class ListTableMapaddedRows - the rows being added.public void clear()
clear in interface ListTableModelclear in class ListTableMappublic void removeRow(int row)
removeRow in interface ListTableModelremoveRow in class ListTableMaprow - the index of the row being removedpublic void removeRows(int[] deletedRows)
removeRows in interface ListTableModelremoveRows in class ListTableMapdeletedRows - an integer array that contains indexes of the rows being deleted
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||