|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
gov.usda.gdpc.browser.MatrixTableModel
| Field Summary |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
MatrixTableModel()
|
|
MatrixTableModel(Table table)
|
|
| Method Summary | |
void |
changeTable(Table table)
Changes the table backing this matrix table model. |
void |
fireTableChanged()
|
int |
getColumnCount()
Returns the number of columns in the model. |
java.lang.String |
getColumnName(int columnIndex)
Returns the name of the column at columnIndex. |
int |
getRowCount()
Returns the number of rows in the model. |
java.lang.Object[] |
getRowHeaders()
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at columnIndex and
rowIndex. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Always returns false. |
void |
resetTable()
Resets the table backing this matrix table model to an empty table. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
No operation. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MatrixTableModel(Table table)
public MatrixTableModel()
| Method Detail |
public void changeTable(Table table)
table - new tablepublic void resetTable()
public int getColumnCount()
JTable uses this method to determine how many columns it
should create and display by default.
getRowCount()public java.lang.String getColumnName(int columnIndex)
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.
columnIndex - the index of the column
java.lang.IndexOutOfBoundsException - if the index is out of
range (index < 0 || index >= getColumnCount()).public 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.
getColumnCount()
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.
rowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queried
public boolean isCellEditable(int rowIndex,
int columnIndex)
public void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
public void fireTableChanged()
public java.lang.Object[] getRowHeaders()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||