Class TableModelBase
java.lang.Object
org.openxava.tab.impl.TableModelBase
- All Implemented Interfaces:
Serializable, TableModel
The main difference within this class and swing
AbstractTableModel
is that the listener list is transient. Hence you can use objects of
this class for move data via RMI from server to client without listeners.- Author:
- Javier Paniza
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintfindColumn(String columnName) voidfireTableCellUpdated(int row, int column) voidvoidvoidfireTableRowsDeleted(int firstRow, int lastRow) voidfireTableRowsInserted(int firstRow, int lastRow) voidfireTableRowsUpdated(int firstRow, int lastRow) voidgetColumnClass(int columnIndex) getColumnName(int column) booleanisCellEditable(int rowIndex, int columnIndex) voidvoidsetValueAt(Object aValue, int rowIndex, int columnIndex) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TableModel
getColumnCount, getRowCount, getValueAt
-
Constructor Details
-
TableModelBase
public TableModelBase()
-
-
Method Details
-
addTableModelListener
- Specified by:
addTableModelListenerin interfaceTableModel
-
findColumn
-
fireTableCellUpdated
public void fireTableCellUpdated(int row, int column) -
fireTableChanged
-
fireTableDataChanged
public void fireTableDataChanged() -
fireTableRowsDeleted
public void fireTableRowsDeleted(int firstRow, int lastRow) -
fireTableRowsInserted
public void fireTableRowsInserted(int firstRow, int lastRow) -
fireTableRowsUpdated
public void fireTableRowsUpdated(int firstRow, int lastRow) -
fireTableStructureChanged
public void fireTableStructureChanged() -
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel
-
removeTableModelListener
- Specified by:
removeTableModelListenerin interfaceTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel
-