JIDE 3.5.15

com.jidesoft.grid
Class DefaultContextSensitiveTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by com.jidesoft.grid.DefaultContextSensitiveTableModel
All Implemented Interfaces:
ContextSensitiveTableModel, Serializable, TableModel

public class DefaultContextSensitiveTableModel
extends DefaultTableModel
implements ContextSensitiveTableModel

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
DefaultContextSensitiveTableModel()
           
DefaultContextSensitiveTableModel(int rowCount, int columnCount)
           
DefaultContextSensitiveTableModel(Object[][] data, Object[] columnNames)
           
DefaultContextSensitiveTableModel(Object[] columnNames, int rowCount)
           
DefaultContextSensitiveTableModel(Vector<?> columnNames, int rowCount)
           
DefaultContextSensitiveTableModel(Vector<?> data, Vector<?> columnNames)
           
 
Method Summary
 void addRows(Vector[] rowDatas)
           
 Class<?> getCellClassAt(int row, int column)
          Gets the type at cell (row, column).
 ConverterContext getConverterContextAt(int row, int column)
          Gets the converter context at cell (row, column).
 EditorContext getEditorContextAt(int row, int column)
          Gets the editor context at cell (row, column).
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, isCellEditable, 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
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Constructor Detail

DefaultContextSensitiveTableModel

public DefaultContextSensitiveTableModel()

DefaultContextSensitiveTableModel

public DefaultContextSensitiveTableModel(int rowCount,
                                         int columnCount)

DefaultContextSensitiveTableModel

public DefaultContextSensitiveTableModel(Vector<?> columnNames,
                                         int rowCount)

DefaultContextSensitiveTableModel

public DefaultContextSensitiveTableModel(Object[] columnNames,
                                         int rowCount)

DefaultContextSensitiveTableModel

public DefaultContextSensitiveTableModel(Vector<?> data,
                                         Vector<?> columnNames)

DefaultContextSensitiveTableModel

public DefaultContextSensitiveTableModel(Object[][] data,
                                         Object[] columnNames)
Method Detail

getConverterContextAt

public ConverterContext getConverterContextAt(int row,
                                              int column)
Description copied from interface: ContextSensitiveTableModel
Gets the converter context at cell (row, column).

For a special row index like -1, please return the default converter context for the entire column if there is any.

Specified by:
getConverterContextAt in interface ContextSensitiveTableModel
Parameters:
row - the row index
column - the column index
Returns:
converter context

getEditorContextAt

public EditorContext getEditorContextAt(int row,
                                        int column)
Description copied from interface: ContextSensitiveTableModel
Gets the editor context at cell (row, column).

For a special row index like -1, please return the default editor context for the entire column if there is any.

Specified by:
getEditorContextAt in interface ContextSensitiveTableModel
Parameters:
row - the row index
column - the column index
Returns:
editor context

getCellClassAt

public Class<?> getCellClassAt(int row,
                               int column)
Description copied from interface: ContextSensitiveTableModel
Gets the type at cell (row, column).

For a special row index like -1, please return the default column class for the entire column if there is any.

Specified by:
getCellClassAt in interface ContextSensitiveTableModel
Parameters:
row - the row index
column - the column index
Returns:
type

addRows

public void addRows(Vector[] rowDatas)

JIDE 3.5.15