|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.javaparts.dde.DDEClient
DDEClient is the main class for establishing conversation with DDE servers.
It is designed as a singleton, that is only one instance of it can be created.
You obtain DDEClient instance with getInstance method:
DDEClient client = DDEClient.getInstance()
close client instance when you finish your work
with DDE.
| Method Summary | |
void |
addDDEEventListener(DDEEventListener l)
Add event handler. |
void |
close()
Close this instance of the client and stop processing DDE events. |
Conversation |
connect(java.lang.String service,
java.lang.String topic)
Establish conversation with the given service/topic. |
static DDEClient |
getInstance()
Obtain an instance of the client object. |
void |
removeDDEEventListener(DDEEventListener l)
Remove event handler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static DDEClient getInstance()
connect method.
public Conversation connect(java.lang.String service,
java.lang.String topic)
throws DDEException
service - name of the DDE service (for example "Excel")topic - name of the DDE topic (for example "Sheet1")
DDEException - if client is unable to establish a connection.public void close()
public void addDDEEventListener(DDEEventListener l)
l - event handler to addpublic void removeDDEEventListener(DDEEventListener l)
l - event handler to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||