com.jniwrapper.win32.dde
Interface DdeClientEventHandler

All Known Implementing Classes:
DdeClientEventAdapter

public interface DdeClientEventHandler

This is an interface for processing DDE client events.


Method Summary
 void asyncActionComplete(DdeItem item, byte[] data, long transactionID)
          Occurs when an asynchronous transaction is processed by the service.
 void disconnect(boolean sameApplication)
          Occurs on disconnect.
 void error(int errorCode)
          Fires when a critical error occurs.
 DdeResponse itemChanged(DdeItem item, byte[] data)
          Occurs when data of the item is changed.
 void serviceRegister(java.lang.String service, java.lang.String instanceName)
          Occurs when a service is registered.
 void serviceUnregister(java.lang.String service, java.lang.String instanceName)
          Occurs when a service is unregistered.
 

Method Detail

error

void error(int errorCode)
Fires when a critical error occurs.

Parameters:
errorCode - is the error code.

itemChanged

DdeResponse itemChanged(DdeItem item,
                        byte[] data)
Occurs when data of the item is changed.

Parameters:
item - specifies the item name and data format.
data - if on starting an advise loop the sendData argument was set to true, then the data contains a new value of the item data; otherwise, this argument is null.
Returns:
the result of event processing.
See Also:
DdeItem, DdeResponse

asyncActionComplete

void asyncActionComplete(DdeItem item,
                         byte[] data,
                         long transactionID)
Occurs when an asynchronous transaction is processed by the service.

Parameters:
item - specifies the item name and data format.
data - if the transaction manipulates data, then the data contains the value of the item. If the transaction failed, the data is null.
transactionID - is an asyncronous transaction identifier.

disconnect

void disconnect(boolean sameApplication)
Occurs on disconnect.

Parameters:
sameApplication - specifies if the client and the service are the same application.

serviceRegister

void serviceRegister(java.lang.String service,
                     java.lang.String instanceName)
Occurs when a service is registered.

Parameters:
service - is the basic name of the service.
instanceName - is an instance-specific service name.

serviceUnregister

void serviceUnregister(java.lang.String service,
                       java.lang.String instanceName)
Occurs when a service is unregistered.

Parameters:
service - is the basic name of the service.
instanceName - is an instance-specific service name.