Examples of data exchange

Here are some specific examples of data exchange implementation.

Linking is a Type 1 data exchange.

If two spreadsheets are linked and want to pass information about a single cell, the exchange can be efficient--simply exchanging a TCellModel. There is no need to exchange an entire TSpreadsheetModel (although in some cases this can be efficient) and certainly no need to send any presenter state.

Drag and drop could be either a Type 1 or a Type 2 data exchange.

In this case the type of data exchange is determined by the preferences defined by the object accepting the drag.

For example:

Copy, cut, and paste is a Type 2 data exchange.

In this case, the data exchange is a two-step process. Because you cannot anticipate the destination of the data, the first step is always a Type 2 exchange to the clipboard.

When the paste occurs, the object accepting the paste determines by preference the exchange type of the second exchange.

Essentially, a copy, cut, and paste operation is a drag and drop where the drop can be deferred and the original data must be cached.

Data translation is a Type 2 data exchange.

You might want to translate presenter state data in addition to the model data.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker