|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface to be implemented by all editable table data sources All updates are carried out by the back-end. This may be done asynchronously, so the user should not expect the local model to be updated immediately after calling any of the methods of this interface. When the back-end has confirmed the requested change, the data source should trigger an update through the listeners registered with it. If the update is rejected by the back-end, the local model will not be updated.
IlTableDataSource,
TableDSListener,
TableModelEvent,
RowEvent| Method Summary | |
abstract java.lang.Object |
dsAddRow(java.util.Map properties,
IlTableCellInfo[] values)
Requests the back-end to add a row to the table. |
abstract void |
dsRemoveRow(java.lang.Object row)
Requests the back-end to remove a row from the table. |
abstract void |
dsUpdateCell(java.lang.Object row,
int colNumber,
java.lang.Object v)
Requests the back-end to update the value of a cell in the table. |
abstract void |
dsUpdateCellProperty(java.lang.Object row,
int colNumber,
java.lang.String propertyName,
java.lang.Object value)
Requests the back-end to update a property for a cell in the table. |
abstract void |
dsUpdateColumnProperty(int colNumber,
java.lang.String propertyName,
java.lang.Object value)
Requests the back-end to update a property for a column in the table. |
abstract void |
dsUpdateRow(java.lang.Object row,
IlTableCellInfo[] newValues)
Updates a row. |
abstract void |
dsUpdateRowProperty(java.lang.Object row,
java.lang.String propertyName,
java.lang.Object value)
Requests the back-end to update a property for a row in the table. |
abstract boolean |
isCellEditable(java.lang.Object row,
int column)
|
abstract boolean |
isColumnEditable(int column)
|
abstract boolean |
isRowEditable(java.lang.Object row)
|
| Methods inherited from interface ilog.ds.IlDataSourceEditor |
dsEndBatch, dsStartBatch, dsUpdateProperty, getDSBatchLevel, isEditable |
| Method Detail |
public void dsUpdateColumnProperty(int colNumber,
java.lang.String propertyName,
java.lang.Object value)
colNumber - The property column number (0 based)propertyName - The name of the property to update.value - The new value of the property
public void dsUpdateRowProperty(java.lang.Object row,
java.lang.String propertyName,
java.lang.Object value)
row - A key representing a rowpropertyName - The name of the property to update.value - The new value of the property
public void dsUpdateCellProperty(java.lang.Object row,
int colNumber,
java.lang.String propertyName,
java.lang.Object value)
row - A key representing a row.colNumber - The property column number (0 based).propertyName - The name of the property to update.value - The new value of the property
public java.lang.Object dsAddRow(java.util.Map properties,
IlTableCellInfo[] values)
values - public void dsRemoveRow(java.lang.Object row)
row -
public void dsUpdateRow(java.lang.Object row,
IlTableCellInfo[] newValues)
row - The row to update.newValues - A set of ilog.ds.TableCellInfo representing the
data contained in the row.
public void dsUpdateCell(java.lang.Object row,
int colNumber,
java.lang.Object v)
row - colNumber - v - public boolean isColumnEditable(int column)
public boolean isRowEditable(java.lang.Object row)
public boolean isCellEditable(java.lang.Object row,
int column)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||