Package cl.obcom.desktopfx.dde
Class DdeTopic
java.lang.Object
cl.obcom.desktopfx.dde.DdeTopic
Implements the topic level defined by the DDE protocol.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDdeListener
(DdeListener listener) Adds a listener to the list of listeners of this DDE Topic.void
Copies a DDE data item link to the clipboard.getName()
Returns the name of this DDE Topic.void
Notifies that one or more data items have changed.void
release()
Release all resource of this DDE Topic.void
removeDdeListener
(DdeListener listener) Removes a listener from the list of listeners of this DDE Topic.
-
Method Details
-
getName
Returns the name of this DDE Topic.- Returns:
- the name of this DDE Topic.
-
release
public void release()Release all resource of this DDE Topic. -
addDdeListener
Adds a listener to the list of listeners of this DDE Topic.- Parameters:
listener
- the DDE event listener.- Throws:
NullPointerException
- iflistener
isnull
.
-
removeDdeListener
Removes a listener from the list of listeners of this DDE Topic.- Parameters:
listener
- the DDE event listener.- Throws:
NullPointerException
- iflistener
isnull
.
-
copyLink
Copies a DDE data item link to the clipboard.- Parameters:
itemName
- the name of the data item.- Throws:
NullPointerException
- ifitemName
isnull
.
-
notifyChange
public void notifyChange()Notifies that one or more data items have changed.
-