public class SportsCouncilTableModel extends AbstractTableModel
listenerList| Constructor and Description |
|---|
SportsCouncilTableModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyInto(Organization org) |
static SportsCouncilTableModel |
createDefaultModel() |
Class |
getColumnClass(int columnIndex)
Returns
Object.class regardless of columnIndex. |
int |
getColumnCount()
Returns the number of columns in the model.
|
String |
getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ...
|
int |
getRowCount()
Returns the number of rows in the model.
|
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and rowIndex. |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic int getColumnCount()
JTable uses this method to determine how many columns it
should create and display by default.getRowCount()public int getRowCount()
JTable uses this method to determine how many rows it
should display. This method should be quick, as it is called frequently during rendering.getColumnCount()public Object getValueAt(int rowIndex, int columnIndex)
columnIndex and rowIndex.rowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queriedpublic Class getColumnClass(int columnIndex)
Object.class regardless of columnIndex.getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumnIndex - the column being queriedpublic String getColumnName(int column)
column cannot be found, returns an empty string.getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - the column being queriedcolumnpublic void copyInto(Organization org)
public static SportsCouncilTableModel createDefaultModel()
Copyright © 2018 Hitachi Vantara. All rights reserved.