Package org.openxava.tab.impl
Class TableModelBase
- java.lang.Object
-
- org.openxava.tab.impl.TableModelBase
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public abstract class TableModelBase extends java.lang.Object implements javax.swing.table.TableModel, java.io.Serializable
The main difference within this class and swingAbstractTableModel
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TableModelBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTableModelListener(javax.swing.event.TableModelListener l)
int
findColumn(java.lang.String columnName)
void
fireTableCellUpdated(int row, int column)
void
fireTableChanged(javax.swing.event.TableModelEvent e)
void
fireTableDataChanged()
void
fireTableRowsDeleted(int firstRow, int lastRow)
void
fireTableRowsInserted(int firstRow, int lastRow)
void
fireTableRowsUpdated(int firstRow, int lastRow)
void
fireTableStructureChanged()
java.lang.Class
getColumnClass(int columnIndex)
java.lang.String
getColumnName(int column)
boolean
isCellEditable(int rowIndex, int columnIndex)
void
removeTableModelListener(javax.swing.event.TableModelListener l)
void
setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
-
-
-
Method Detail
-
addTableModelListener
public void addTableModelListener(javax.swing.event.TableModelListener l)
- Specified by:
addTableModelListener
in interfacejavax.swing.table.TableModel
-
findColumn
public int findColumn(java.lang.String columnName)
-
fireTableCellUpdated
public void fireTableCellUpdated(int row, int column)
-
fireTableChanged
public void fireTableChanged(javax.swing.event.TableModelEvent e)
-
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
public java.lang.Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
-
getColumnName
public java.lang.String getColumnName(int column)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
-
removeTableModelListener
public void removeTableModelListener(javax.swing.event.TableModelListener l)
- Specified by:
removeTableModelListener
in interfacejavax.swing.table.TableModel
-
setValueAt
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
-
-