com.sun.media.jsdt.event
Class ByteArrayEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.sun.media.jsdt.event.ByteArrayEvent
- public class ByteArrayEvent
- extends java.util.EventObject
- implements com.sun.media.jsdt.impl.JSDTDebugFlags
The ByteArray event. ByteArray events are created for the following actions:
- when a Client has joined a ByteArray.
- when a Client has left a ByteArray.
- when the value of a ByteArray changes.
- when a Client has been invited to join a ByteArray.
- when a Client has been expelled from a ByteArray.
- Since:
- JSDT 1.0
- Version:
- 1.5 - 7th January 1999
- Author:
- Rich Burridge
- See Also:
- Serialized Form
Field Summary |
static int |
EXPELLED
The ByteArray expelled event type. |
static int |
INVITED
The ByteArray invited event type. |
static int |
JOINED
The ByteArray joined event type. |
static int |
LEFT
The ByteArray left event type. |
static int |
VALUE_CHANGED
The ByteArray value changed event type. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ByteArrayEvent(Session session,
java.lang.String clientName,
ByteArray byteArray,
int type)
constructor for the ByteArrayEvent class. |
Method Summary |
ByteArray |
getByteArray()
get the ByteArray associated with this event. |
java.lang.String |
getClientName()
get the name of the Client that generated this event. |
Session |
getSession()
get the Session associated with this event. |
java.lang.String |
toString()
toString print a short description of this ByteArray event. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
JOINED
public static final int JOINED
- The ByteArray joined event type.
LEFT
public static final int LEFT
- The ByteArray left event type.
VALUE_CHANGED
public static final int VALUE_CHANGED
- The ByteArray value changed event type.
INVITED
public static final int INVITED
- The ByteArray invited event type.
EXPELLED
public static final int EXPELLED
- The ByteArray expelled event type.
ByteArrayEvent
public ByteArrayEvent(Session session,
java.lang.String clientName,
ByteArray byteArray,
int type)
-
constructor for the ByteArrayEvent class. A new byte array event is
generated for a client action associated with the given byte array
within the given session.
- Parameters:
session
- the session associated with this event.clientName
- the name of the client.byteArray
- the byte array associated with this event.type
- the type of event.
getSession
public Session getSession()
-
get the Session associated with this event.
- Returns:
- the Session associated with this event.
getClientName
public java.lang.String getClientName()
-
get the name of the Client that generated this event.
- Returns:
- the name of the Client that generated this event.
getByteArray
public ByteArray getByteArray()
-
get the ByteArray associated with this event.
- Returns:
- the ByteArray associated with this event.
toString
public java.lang.String toString()
-
toString print a short description of this ByteArray event.
- Returns:
- a String containing a description of this ByteArray event.
- Overrides:
- toString in class java.util.EventObject
- Since:
- JSDT 1.3