Class WhatIfPanel.ClassTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmva.panels.WhatIfPanel.ClassTableModel
- All Implemented Interfaces:
Serializable, TableModel
- Enclosing class:
WhatIfPanel
Table model for ClasTable
- Author:
- Bertoli Marco Date: 26-mag-2006 Time: 13.48.45
- See Also:
-
Field Summary
Fields inherited from class AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of columns in the model.getColumnName(int index) intReturns the number of rows in the model.getValueAt(int rowIndex, int columnIndex) Methods inherited from class AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
ClassTableModel
protected ClassTableModel()
-
-
Method Details
-
getColumnCount
public int getColumnCount()Returns the number of columns in the model. AJTableuses this method to determine how many columns it should create and display by default.- Returns:
- the number of columns in the model
- See Also:
-
getRowCount
public int getRowCount()Returns the number of rows in the model. AJTableuses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.- Returns:
- the number of rows in the model
- See Also:
-
getValueAt
- Returns:
- the object at (rowIndex, columnIndex)
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-