|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValueTableModel
A ValueTableModel
is a two dimensional data structure that
can store arbitrary Object
instances. Individual
objects can be accessed by specifying the row index and column index for
the object. Each column in the model has a name associated with it.
Method Summary | |
---|---|
java.lang.Class |
getColumnClass(int columnIndex)
Returns the Class for all Object instances
in the specified column. |
int |
getColumnCount()
Returns the number of columns in the model. |
int |
getColumnIndex(java.lang.String columnName)
Gets the column index for the specified column name. |
java.lang.String |
getColumnName(int columnIndex)
Returns the name of a column in the model. |
int |
getRowCount()
Returns the number of rows in the model. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value ( Object ) at a particular cell in the
table. |
void |
importValues(ValueTableModel vtm)
Import the values from the value table model for all rows. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns true if the specified cell is editable, and
false if it is not. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets the value at a particular cell in the table. |
Method Detail |
---|
java.lang.Class getColumnClass(int columnIndex)
Class
for all Object
instances
in the specified column.
columnIndex
- the column index.
int getColumnCount()
int getColumnIndex(java.lang.String columnName)
columnName
- the column name.
java.lang.String getColumnName(int columnIndex)
columnIndex
- the column index.
int getRowCount()
java.lang.Object getValueAt(int rowIndex, int columnIndex)
Object
) at a particular cell in the
table.
rowIndex
- the row index.columnIndex
- the column index.
void importValues(ValueTableModel vtm)
vtm
- the value table model.boolean isCellEditable(int rowIndex, int columnIndex)
true
if the specified cell is editable, and
false
if it is not.
rowIndex
- the row index of the cell.columnIndex
- the column index of the cell.
void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
aValue
- the value (null
permitted).rowIndex
- the row index.columnIndex
- the column index.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |