|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Describes a rectangular array of cells. Unlike
javax.swing.table.TableModel
this data model is suitable
for a symmetrical grid. That is, there is no column (or row) focus.
Method Summary | |
void |
addGridModelListener(GridModelListener listener)
Adds a listener to the list that's notified each time a change to the data model occurs. |
int |
getColumnCount()
Return the number of columns in the model. |
int |
getRowCount()
Returns the number of rows in the model. |
Object |
getValueAt(int row,
int column)
Returns the value for the cell at row and column |
boolean |
isCellEditable(int row,
int column)
Returns true if the cell at row and column
is editable. |
void |
removeGridModelListener(GridModelListener listener)
Removes a listener from the list that's notified each time a change to the data model occurs. |
void |
setValueAt(Object value,
int row,
int column)
Sets the value for the cell at row and column
to value |
Method Detail |
public void addGridModelListener(GridModelListener listener)
listener
- the GridModelListener to addpublic void removeGridModelListener(GridModelListener listener)
listener
- the GridModelListener to removepublic Object getValueAt(int row, int column)
row
and column
row
- row index of cellcolumn
- column index of cell
public boolean isCellEditable(int row, int column)
row
and column
is editable. Otherwise, setValueAt
on the cell will not change
the value of that cell.
row
- row index of cellcolumn
- column index of cell
public void setValueAt(Object value, int row, int column)
row
and column
to value
value
- new cell valuerow
- row index of cellcolumn
- column index of cellpublic int getRowCount()
public int getColumnCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |