public class DataRowModel
extends javax.swing.table.AbstractTableModel
| Constructor | Description |
|---|---|
DataRowModel() |
Constructor DataRowModel
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
appendRow(java.lang.Object obj) |
Appends a row to this table.
|
void |
clear() |
Clear the data
|
int |
getColumnCount() |
Gets the number of columns being shown.
|
java.lang.String |
getColumnName(int column) |
Gets the name of the specified column.
|
int |
getRowCount() |
Gets the number of rows.
|
java.lang.Object |
getValueAt(int row,
int column) |
Gets the value at the given cell.
|
boolean |
setColumnNames(int column,
java.lang.String name) |
Sets the column names in this table.
|
void |
setFirstRowIndex(int index) |
Sets the first row's index.
|
void |
setMaxPoints(int max) |
Sets the maximum number of rows the data can hold
|
boolean |
setRowNumberVisible(boolean vis) |
Sets the display row number flag.
|
void |
setStride(int stride) |
Sets the stride between rows.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic void setStride(int stride)
tableModel - stride - public void setMaxPoints(int max)
public void clear()
public void appendRow(java.lang.Object obj)
throws java.lang.IllegalArgumentException
obj - Objectjava.lang.IllegalArgumentExceptionpublic boolean setRowNumberVisible(boolean vis)
vis - true<\code> if table display row numberpublic boolean setColumnNames(int column,
java.lang.String name)
column - the column indexname - public void setFirstRowIndex(int index)
index - public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName in class javax.swing.table.AbstractTableModelcolumn - the column indexpublic int getRowCount()
public java.lang.Object getValueAt(int row,
int column)
row - the row indexcolumn - the column index