static final class TZ.TZTableModel
extends javax.swing.table.AbstractTableModel
implements javax.swing.table.TableModel
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.String[] |
columnNames
names of the columns
|
| Constructor and Description |
|---|
TZ.TZTableModel(java.lang.String[] timeZoneIDs)
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns the most specific superclass for all the cell values in the column.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns the name of the column at
columnIndex. |
int |
getRowCount()
Returns the number of rows in the model.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtTZ.TZTableModel(java.lang.String[] timeZoneIDs)
timeZoneIDs - array of all possible TimeZone IDs, sorted in some reasonable order.public java.lang.Class<?> getColumnClass(int columnIndex)
JTable to set up a default renderer and editor for the column.getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - the index of the columnpublic int getColumnCount()
JTable uses this method to determine how many
columns it should create and display by default.getColumnCount in interface javax.swing.table.TableModelgetRowCount()public java.lang.String getColumnName(int column)
columnIndex. This is used to initialize the table's column
header name. Note: this name does not need to be unique; two columns in a table can have the same name.getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the index of the columnpublic 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.getRowCount in interface javax.swing.table.TableModelgetColumnCount()public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface javax.swing.table.TableModel