hicosim.components.frontend.tablemodels
Class CustomAbstractTableModelWithEditiableCells

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by hicosim.components.frontend.tablemodels.CustomAbstractTableModel
          extended by hicosim.components.frontend.tablemodels.CustomAbstractTableModelWithEditiableCells
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class CustomAbstractTableModelWithEditiableCells
extends CustomAbstractTableModel

Author:
Daniel Obermueller 18th June 2009
See Also:
Serialized Form

Constructor Summary
CustomAbstractTableModelWithEditiableCells()
           
CustomAbstractTableModelWithEditiableCells(java.util.Vector<java.util.Vector<java.lang.Object>> data)
           
 
Method Summary
 boolean isCellEditable(int rowIndex, int columnIndex)
          This method checks if the passed cell, specified by the two Integer-Objects "rowIndex" and "columnIndex", is editable.
 
Methods inherited from class hicosim.components.frontend.tablemodels.CustomAbstractTableModel
addColumn, addRow, getAmountOfColumns, getAmountOfRows, getColumnCount, getRowCount, getValueAt, hideColumn, hideRow, removeLastColumn, removeLastRow, setData, setJTableSize, setRow, setValueAt, showColumn, showRow
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomAbstractTableModelWithEditiableCells

public CustomAbstractTableModelWithEditiableCells(java.util.Vector<java.util.Vector<java.lang.Object>> data)
Parameters:
Vector - > data

CustomAbstractTableModelWithEditiableCells

public CustomAbstractTableModelWithEditiableCells()
Method Detail

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
This method checks if the passed cell, specified by the two Integer-Objects "rowIndex" and "columnIndex", is editable. It must be overwritten in order to guarantee user inputs via mouse and keyboard.

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel
Parameters:
int - rowIndex
int - columnIndex
Returns:
boolean