|
NextApp Echo2 v2.1.0.rc2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.table.AbstractTableModel
nextapp.echo2.app.table.DefaultTableModel
The default TableModel implementation.
| Constructor Summary | |
DefaultTableModel()
Creates a new table model of 0x0 size. |
|
DefaultTableModel(int columns,
int rows)
Creates a new table model with the specified dimensions. |
|
DefaultTableModel(java.lang.Object[][] data,
java.lang.Object[] names)
Creates a new Table Model with the specified data and column names. |
|
| Method Summary | |
void |
addRow(java.lang.Object[] rowData)
Adds a row containing the provided data to the end of the model. |
void |
deleteRow(int row)
Deletes the specified row. |
int |
getColumnCount()
Returns the number of columns in the table. |
java.lang.String |
getColumnName(int column)
Returns column names using a "spreadsheet-style" convention, i.e., A, B, C...Y, Z, AA, AB, AC... |
int |
getRowCount()
Returns the number of rows in the table. |
java.lang.Object |
getValueAt(int column,
int row)
Returns the value found at the given coordinate within the table. |
void |
insertRow(int row,
java.lang.Object[] rowData)
Inserts a row containing the provided data. |
void |
setColumnCount(int newValue)
Sets the number of columns in the table. |
void |
setColumnName(int column,
java.lang.String columnName)
Sets the name of the specified column. |
void |
setRowCount(int newValue)
Sets the number of rows in the table. |
void |
setValueAt(java.lang.Object newValue,
int column,
int row)
Sets the contents of the table cell at the specified coordinate. |
| Methods inherited from class nextapp.echo2.app.table.AbstractTableModel |
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getEventListenerList, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultTableModel()
public DefaultTableModel(int columns,
int rows)
columns - the initial number of columnsrows - the initial number of rows
public DefaultTableModel(java.lang.Object[][] data,
java.lang.Object[] names)
data - a two dimensional array containing the table data
(the first index of the array represents the column index,
and the second index represents the row index)names - the column names| Method Detail |
public void addRow(java.lang.Object[] rowData)
rowData - the row datapublic void deleteRow(int row)
row - the row to deletepublic int getColumnCount()
TableModel
TableModel.getColumnCount()public java.lang.String getColumnName(int column)
AbstractTableModel
getColumnName in interface TableModelgetColumnName in class AbstractTableModelTableModel.getColumnName(int)public int getRowCount()
TableModel
TableModel.getRowCount()
public java.lang.Object getValueAt(int column,
int row)
TableModel
column - the column index (0-based)row - the row index (0-based)TableModel.getValueAt(int, int)
public void insertRow(int row,
java.lang.Object[] rowData)
row - the insertion indexrowData - the row datapublic void setColumnCount(int newValue)
newValue - the new column count
public void setColumnName(int column,
java.lang.String columnName)
column - the column indexcolumnName - the new column namepublic void setRowCount(int newValue)
newValue - the new row count
public void setValueAt(java.lang.Object newValue,
int column,
int row)
newValue - the new valuecolumn - the column indexrow - the row index
java.lang.ArrayIndexOutOfBoundsException - if the column or row index
exceed the column or row count
|
NextApp Echo2 v2.1.0.rc2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||