public class CountryDataTableModel extends AbstractTableModel
listenerList| Constructor and Description |
|---|
CountryDataTableModel()
Default constructor - builds the sample data source using incomplete (and possibly inaccurate) data for countries
of the world.
|
| Modifier and Type | Method and Description |
|---|---|
Class |
getColumnClass(int column)
Returns the class of the data in the specified column.
|
int |
getColumnCount()
Returns the number of columns in the table model.
|
String |
getColumnName(int column)
Returns the name of the specified column.
|
int |
getRowCount()
Returns the number of rows in the table model.
|
Object |
getValueAt(int row,
int column)
Returns the data value at the specified row and column.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic CountryDataTableModel()
public int getRowCount()
public int getColumnCount()
public Class getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumn - the column (zero-based index).public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - the column (zero-based index).public Object getValueAt(int row, int column)
row - the row index (zero based).column - the column index (zero based).Copyright © 2018 Hitachi Vantara. All rights reserved.