public class DdeService
extends java.lang.Object
Constructor and Description |
---|
DdeService(java.lang.String name)
Creates a DDE service with the specified name.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public DdeService(java.lang.String name)
name
- is the service name.public void register() throws DdeException
DdeException
public boolean isRegistered()
true
if the service is already registered.true
if the service is already registered.public void unregister() throws DdeException
DdeException
public void setEventHandler(DdeServiceEventHandler eventHandler)
eventHandler
- DdeServiceEventHandler
public void removeEventHandler()
public java.lang.String getName()
public void postAdvise(java.lang.String topic, java.lang.String item) throws DdeException
topic
- is the name of the topic.item
- is the name of the item.DdeException