|
|||||||||
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 Object |
dsAddRow(Map properties,
IlTableCellInfo[] values)
Requests the back-end to add a row to the table. |
abstract void |
dsRemoveRow(Object row)
Requests the back-end to remove a row from the table. |
abstract void |
dsUpdateCell(Object row,
int colNumber,
Object v)
Requests the back-end to update the value of a cell in the table. |
abstract void |
dsUpdateCellProperty(Object row,
int colNumber,
String propertyName,
Object value)
Requests the back-end to update a property for a cell in the table. |
abstract void |
dsUpdateColumnProperty(int colNumber,
String propertyName,
Object value)
Requests the back-end to update a property for a column in the table. |
abstract void |
dsUpdateRow(Object row,
IlTableCellInfo[] newValues)
Updates a row. |
abstract void |
dsUpdateRowProperty(Object row,
String propertyName,
Object value)
Requests the back-end to update a property for a row in the table. |
abstract boolean |
isCellEditable(Object row,
int column)
|
abstract boolean |
isColumnEditable(int column)
|
abstract boolean |
isRowEditable(Object row)
|
Methods inherited from interface ilog.ds.IlDataSourceEditor |
dsEndBatch, dsStartBatch, dsUpdateProperty, getDSBatchLevel, isEditable |
Method Detail |
public void dsUpdateColumnProperty(int colNumber, String propertyName, Object value)
colNumber
- The property column number (0 based)propertyName
- The name of the property to update.value
- The new value of the propertypublic void dsUpdateRowProperty(Object row, String propertyName, Object value)
row
- A key representing a rowpropertyName
- The name of the property to update.value
- The new value of the propertypublic void dsUpdateCellProperty(Object row, int colNumber, String propertyName, 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 propertypublic Object dsAddRow(Map properties, IlTableCellInfo[] values)
values
- public void dsRemoveRow(Object row)
row
- public void dsUpdateRow(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(Object row, int colNumber, Object v)
row
- colNumber
- v
- public boolean isColumnEditable(int column)
public boolean isRowEditable(Object row)
public boolean isCellEditable(Object row, int column)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |