com.eteks.jeks
Class JeksTableModel
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--com.eteks.jeks.JeksTableModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.table.TableModel
- public class JeksTableModel
- extends javax.swing.table.AbstractTableModel
A table model storing its values in a hashtable with keys of JeksCell
class.
This allows to have very big tables with a lot of null
values.
- Since:
- Jeks 1.0
- Version:
- 1.0
- Author:
- Emmanuel Puybaret
- See Also:
- Serialized Form
Constructor Summary |
JeksTableModel()
Creates a table model with Short.MAX_VALUE rows and columns. |
JeksTableModel(int rowCount,
int columnCount)
Creates a table model with rowCount rows and
columnCount columns. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JeksTableModel
public JeksTableModel()
- Creates a table model with
Short.MAX_VALUE
rows and columns.
JeksTableModel
public JeksTableModel(int rowCount,
int columnCount)
- Creates a table model with
rowCount
rows and
columnCount
columns.
getRowCount
public int getRowCount()
- Overrides:
getRowCount
in class javax.swing.table.AbstractTableModel
getColumnCount
public int getColumnCount()
- Overrides:
getColumnCount
in class javax.swing.table.AbstractTableModel
getValueAt
public java.lang.Object getValueAt(int row,
int column)
- Overrides:
getValueAt
in class javax.swing.table.AbstractTableModel
isCellEditable
public boolean isCellEditable(int row,
int column)
- Overrides:
isCellEditable
in class javax.swing.table.AbstractTableModel
setValueAt
public void setValueAt(java.lang.Object value,
int row,
int column)
- Overrides:
setValueAt
in class javax.swing.table.AbstractTableModel