public final class HubTableModel
extends javax.swing.table.AbstractTableModel
See datahub.ListReplyTableModel for a similar but more general class which uses selection list data without performing a selection query to obtain it.
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_INT |
static int |
TYPE_INVALID |
static int |
TYPE_LONG |
static int |
TYPE_REAL |
static int |
TYPE_VARCHAR |
Constructor and Description |
---|
HubTableModel(String tablename,
String cols,
String where) |
Modifier and Type | Method and Description |
---|---|
int |
getColType(int index) |
int |
getColumnCount() |
String |
getColumnName(int col) |
int |
getRowCount() |
String |
getStringAt(int row,
int col) |
Object |
getValueAt(int row,
int col) |
void |
refresh()
refresh the data selection
|
int |
setColumnName(String hubname,
String newname)
You can redefine the column names for a table display.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public static final int TYPE_INT
public static final int TYPE_INVALID
public static final int TYPE_LONG
public static final int TYPE_REAL
public static final int TYPE_VARCHAR
public int getColType(int index)
public int getColumnCount()
public String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public int getRowCount()
public String getStringAt(int row, int col)
public Object getValueAt(int row, int col)
public void refresh()
public int setColumnName(String hubname, String newname)
hubname
- the column name in the list datanewname
- the desired replacement name