com.jniwrapper.win32.dde
Class DdeService

java.lang.Object
  extended by com.jniwrapper.win32.dde.DdeService

public class DdeService
extends java.lang.Object

This class provides functionality for registering and handling a DDE service.


Constructor Summary
DdeService(java.lang.String name)
          Creates a DDE service with the specified name.
 
Method Summary
 java.lang.String getName()
          Returns the name of the service.
 boolean isRegistered()
          Returns true if the service is already registered.
 void postAdvise(java.lang.String topic, java.lang.String item)
          Notifies clients that the value of item data has been changed.
 void register()
          Registers the service.
 void removeEventHandler()
          Removes the service events handler.
 void setEventHandler(DdeServiceEventHandler eventHandler)
          Specifies the handler of service events.
 void unregister()
          Unregisters the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DdeService

public DdeService(java.lang.String name)
Creates a DDE service with the specified name.

Parameters:
name - is the service name.
Method Detail

register

public void register()
              throws DdeException
Registers the service.

Throws:
DdeException

isRegistered

public boolean isRegistered()
Returns true if the service is already registered.

Returns:
true if the service is already registered.

unregister

public void unregister()
                throws DdeException
Unregisters the service.

Throws:
DdeException

setEventHandler

public void setEventHandler(DdeServiceEventHandler eventHandler)
Specifies the handler of service events.

Parameters:
eventHandler -
See Also:
DdeServiceEventHandler

removeEventHandler

public void removeEventHandler()
Removes the service events handler.


getName

public java.lang.String getName()
Returns the name of the service.

Returns:
the name of the service.

postAdvise

public void postAdvise(java.lang.String topic,
                       java.lang.String item)
                throws DdeException
Notifies clients that the value of item data has been changed.

Parameters:
topic - is the name of the topic.
item - is the name of the item.
Throws:
DdeException