ilog.ds
Interface IlListDataSourceEditor

All Superinterfaces:
IlDataSourceEditor
All Known Implementing Classes:
IlsListDataSource

public interface IlListDataSourceEditor
extends IlDataSourceEditor

List data source Note that the dereferencing is missing.


Method Summary
abstract  Object dsAddElement(Map properties)
          Creates a new element in the list.
abstract  void dsRemoveElement(Object element)
          Removes a element from the list.
abstract  void dsUpdateElement(Object element, String propertyName, Object propertyValue)
          Updates a property of a element.
abstract  boolean isElementEditable(Object element)
          Returns false if the element is read-only.
 
Methods inherited from interface ilog.ds.IlDataSourceEditor
dsEndBatch, dsStartBatch, dsUpdateProperty, getDSBatchLevel, isEditable
 

Method Detail

isElementEditable

public boolean isElementEditable(Object element)
Returns false if the element is read-only.
Parameters:
element - The element to test.

dsAddElement

public Object dsAddElement(Map properties)
Creates a new element in the list.
Parameters:
properties - The properties of the element to create
Returns:
the created element (to be used only as a key). Note that this method may return null if the element takes a long time to be created.

dsRemoveElement

public void dsRemoveElement(Object element)
Removes a element from the list.
Parameters:
element - The element to be removed

dsUpdateElement

public void dsUpdateElement(Object element,
                            String propertyName,
                            Object propertyValue)
Updates a property of a element.
Parameters:
element - The element to update
propertyName - The name of the property to be updated
propertyValue - The new value of the property