Class 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 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:
    Serialized Form
    • Constructor Detail

      • TableModelBase

        public TableModelBase()
    • Method Detail

      • addTableModelListener

        public void addTableModelListener​(javax.swing.event.TableModelListener l)
        Specified by:
        addTableModelListener in interface javax.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 interface javax.swing.table.TableModel
      • getColumnName

        public java.lang.String getColumnName​(int column)
        Specified by:
        getColumnName in interface javax.swing.table.TableModel
      • isCellEditable

        public boolean isCellEditable​(int rowIndex,
                                      int columnIndex)
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
      • removeTableModelListener

        public void removeTableModelListener​(javax.swing.event.TableModelListener l)
        Specified by:
        removeTableModelListener in interface javax.swing.table.TableModel
      • setValueAt

        public void setValueAt​(java.lang.Object aValue,
                               int rowIndex,
                               int columnIndex)
        Specified by:
        setValueAt in interface javax.swing.table.TableModel