com.jniwrapper.win32.dde
Class DdeClientEventAdapter

java.lang.Object
  extended bycom.jniwrapper.win32.dde.DdeEventAdapter
      extended bycom.jniwrapper.win32.dde.DdeClientEventAdapter
All Implemented Interfaces:
DdeClientEventHandler, com.jniwrapper.win32.dde.DdeEventHandler

public abstract class DdeClientEventAdapter
extends com.jniwrapper.win32.dde.DdeEventAdapter
implements DdeClientEventHandler

An abstract adapter class for processing DDE client events.


Constructor Summary
DdeClientEventAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jniwrapper.win32.dde.DdeClientEventHandler
disconnect, serviceRegister, serviceUnregister
 

Constructor Detail

DdeClientEventAdapter

public DdeClientEventAdapter()
Method Detail

error

public void error(int errorCode)
Description copied from interface: DdeClientEventHandler
Fires when a critical error occurs.

Specified by:
error in interface DdeClientEventHandler
Parameters:
errorCode - is the error code.

itemChanged

public DdeResponse itemChanged(DdeItem item,
                               byte[] data)
Description copied from interface: DdeClientEventHandler
Occurs when data of the item is changed.

Specified by:
itemChanged in interface DdeClientEventHandler
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

public void asyncActionComplete(DdeItem item,
                                byte[] data,
                                long transactionID)
Description copied from interface: DdeClientEventHandler
Occurs when an asynchronous transaction is processed by the service.

Specified by:
asyncActionComplete in interface DdeClientEventHandler
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

public void disconnect(boolean sameApplication)
Description copied from interface: com.jniwrapper.win32.dde.DdeEventHandler
Occurs on disconnect.

Specified by:
disconnect in interface com.jniwrapper.win32.dde.DdeEventHandler
Parameters:
sameApplication - specifies if the client and the service are the same application.

serviceRegister

public void serviceRegister(java.lang.String service,
                            java.lang.String instanceName)
Description copied from interface: com.jniwrapper.win32.dde.DdeEventHandler
Occurs when a service is registered.

Specified by:
serviceRegister in interface com.jniwrapper.win32.dde.DdeEventHandler
Parameters:
service - is the basic name of the service.
instanceName - is an instance-specific service name.

serviceUnregister

public void serviceUnregister(java.lang.String service,
                              java.lang.String instanceName)
Description copied from interface: com.jniwrapper.win32.dde.DdeEventHandler
Occurs when a service is unregistered.

Specified by:
serviceUnregister in interface com.jniwrapper.win32.dde.DdeEventHandler
Parameters:
service - is the basic name of the service.
instanceName - is an instance-specific service name.