|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.cscc.DataEvent
This class encapsulates the data which is associated with a specific data event that occurred.
2003-05-09 SM First Version 2003-05-14 SM working on additional methods and events, correction of some comments. 2003-05-21 SM Added methods for retrieving the client id if the data event was received by a server. 2006-11-02 SM Comments revised.
Field Summary | |
protected java.lang.Object |
clientId
This variable refers to the object identifying the sender client uniquely. |
protected java.lang.Object |
data
This field refers to the data which is encapsulated in this DataEvent. |
protected java.lang.Object |
eventKey
This variable stores a key which identifies the event uniquely. |
Constructor Summary | |
DataEvent(java.lang.Object key,
java.lang.Object data)
Constructor initializes the object. |
Method Summary | |
java.lang.Object |
getClientId()
This method returns the client id which is represented as an object. |
java.lang.Object |
getData()
This method returns the encapsulated event data. |
java.lang.Object |
getEventKey()
This method returns the event key. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.Object eventKey
protected java.lang.Object data
protected java.lang.Object clientId
Constructor Detail |
public DataEvent(java.lang.Object key, java.lang.Object data)
key
- Key which identifies the type of the event which occurred.
The content of this key can be used to determine which type
of data is transmitteddata
- The data which should be transmitted. The class of this
object must implement the interface Serializable
.
All of the directly or indirectly intransiently referenced
data objects must implement this interface.
Method Detail |
public java.lang.Object getData()
getEventKey()
.
public java.lang.Object getEventKey()
public java.lang.Object getClientId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |