|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJaretTableModel
Interface for the table model used by the jaret table. The model should always provide all data. Sorting and filtering is done by the jaret table displaying the data.
Method Summary | |
---|---|
void |
addColumn(IColumn column)
Add a column. |
void |
addJaretTableModelListener(IJaretTableModelListener jtml)
Add a listener listening for changes on the model. |
IColumn |
getColumn(int idx)
Retrieve a column specified by it's index. |
IColumn |
getColumn(java.lang.String id)
Retrieve a column specified by it's id. |
int |
getColumnCount()
Retrieve the number of columns. |
IRow |
getRow(int idx)
Retrieve a specific row. |
int |
getRowCount()
Return the number of rows in the model. |
boolean |
isEditable(IRow row,
IColumn column)
Check whether a cell is editable. |
void |
removeJaretTableModelListener(IJaretTableModelListener jtml)
Remove a listener on the model. |
void |
setValue(IRow row,
IColumn column,
java.lang.Object value)
Set the value of a particular cell. |
Method Detail |
---|
int getRowCount()
IRow getRow(int idx)
idx
- index of the row
int getColumnCount()
IColumn getColumn(int idx)
idx
- index of the column to retrieve
IColumn getColumn(java.lang.String id)
id
- id of the column to retrieve
null
if the column coud not be foundboolean isEditable(IRow row, IColumn column)
row
- row of the cellcolumn
- column of the cell
void setValue(IRow row, IColumn column, java.lang.Object value)
row
- row of the cellcolumn
- column of the cellvalue
- the value to be storedvoid addColumn(IColumn column)
column
- column to addvoid addJaretTableModelListener(IJaretTableModelListener jtml)
jtml
- listener to addvoid removeJaretTableModelListener(IJaretTableModelListener jtml)
jtml
- listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |