org.jivesoftware.spark.component
Class JiveTable.JiveTableModel

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

public class JiveTable.JiveTableModel
extends javax.swing.table.DefaultTableModel

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

JiveTable.JiveTableModel

public JiveTable.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