Class Table.JiveTableModel

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

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
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


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.

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


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

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