ilog.views.util
Interface IlvBatchable

All Known Implementing Classes:
IlpAbstractBackground, IlpAbstractDataSource, IlpAbstractEquipmentModel, IlpAbstractGraphModel, IlpAbstractIVLBackground, IlpAbstractMapDataSourceBackground, IlpAbstractNetworkModel, IlpDefaultDataSource, IlpDefaultEquipmentModel, IlpDefaultNetworkModel, IlpImageBackground, IlpImageTileBackground, IlpIVLFrameworkBackground, IlpIVLMapBackground, IlpMIDMIFBackground, IlpShapeBackground, IlpSVGBackground, IlpSVGZBackground, IltAlarmSystem, ilog.tgo.model.internal.IltBaseSystem, IltDefaultDataSource, IltStateSystem

public interface IlvBatchable

Interface to be implemented by classes that allow grouping modifications in batches. A batch is a series of modifications. Changes grouped in a batch are applied only after the batch is terminated by a call to endBatch().

Batches can be nested. Changes in nested batches are applied only after the most enclosing batch is terminated:

   batchable.startBatch();
   batchable.startBatch();
   batchable.modify(...);
   batchable.endBatch();  // No changes are applied yet
   batchable.endBatch();  // Changes are applied after this call
 

Since:
JViews 6.0

Method Summary
 void endBatch()
          Terminates a batch of modifications.
 void startBatch()
          Starts a batch of modifications.
 

Method Detail

startBatch

void startBatch()
Starts a batch of modifications. The implementing class should start delaying updates until the corresponding endBatch() call.


endBatch

void endBatch()
Terminates a batch of modifications. Modifications batched since the corresponding startBatch() call should now be applied.

In the case of nested batches modifications are applied only after the most enclosing batch is terminated.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.