JIDE 3.5.15

com.jidesoft.grid
Class DefaultGroupableTableModel

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

public class DefaultGroupableTableModel
extends DefaultTableModel
implements ContextSensitiveTableModel, GroupableTableModel

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
DefaultGroupableTableModel()
           
DefaultGroupableTableModel(int rowCount, int columnCount)
           
DefaultGroupableTableModel(Object[][] data, Object[] columnNames)
           
DefaultGroupableTableModel(Object[] columnNames, int rowCount)
           
DefaultGroupableTableModel(Vector<?> columnNames, int rowCount)
           
DefaultGroupableTableModel(Vector<?> data, Vector<?> columnNames)
           
 
Method Summary
 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).
 GrouperContext getGrouperContext(int columnIndex)
           
 
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

DefaultGroupableTableModel

public DefaultGroupableTableModel()

DefaultGroupableTableModel

public DefaultGroupableTableModel(int rowCount,
                                  int columnCount)

DefaultGroupableTableModel

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

DefaultGroupableTableModel

public DefaultGroupableTableModel(Object[] columnNames,
                                  int rowCount)

DefaultGroupableTableModel

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

DefaultGroupableTableModel

public DefaultGroupableTableModel(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

getGrouperContext

public GrouperContext getGrouperContext(int columnIndex)
Specified by:
getGrouperContext in interface GroupableTableModel

JIDE 3.5.15