org.jivesoftware.spark.component
Class Table.JiveTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by org.jivesoftware.spark.component.Table.JiveTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
Table

public static class Table.JiveTableModel
extends javax.swing.table.DefaultTableModel

The internal Table Model.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
Table.JiveTableModel(java.lang.Object[] columnNames, int numRows, boolean isEditable)
          Use the JiveTableModel in order to better handle the table.
 
Method Summary
 boolean isCellEditable(int row, int column)
          Returns true if cell is editable.
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Table.JiveTableModel

public Table.JiveTableModel(java.lang.Object[] columnNames,
                            int numRows,
                            boolean isEditable)
Use the JiveTableModel in order to better handle the table. This allows for consistency throughout the product.

Parameters:
columnNames - - String array of columnNames
numRows - - initial number of rows
isEditable - - true if the cells are editable, false otherwise.
Method Detail

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Returns true if cell is editable.

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.DefaultTableModel
Parameters:
row - the row to check.
column - the column to check.
Returns:
true if the cell is editable.