|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.sun.media.jsdt.event.TokenEvent
The Token event. Token events are created for the following actions:
- when a Token has been given from one Client to another. - when a Client has grabbed a Token. - when a Client has inhibited a Token. - when a Client has joined a Token. - when a Client has left a Token. - when a Client has released itself from a Token. - when a Client has requested a Token. - when a Client has been invited to join a Token. - when a Client has been expelled from a Token.
Field Summary | |
static int |
EXPELLED
The Token expelled event type. |
static int |
GIVEN
The Token given event type. |
static int |
GRABBED
The Token grabbed event type. |
static int |
INHIBITED
The Token inhibited event type. |
static int |
INVITED
The Token invited event type. |
static int |
JOINED
The Token joined event type. |
static int |
LEFT
The Token left event type. |
static int |
RELEASED
The Token released event type. |
static int |
REQUESTED
The Token requested event type. |
protected Token |
token
The token this event occured on. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
TokenEvent(Session session,
java.lang.String clientName,
Token token,
int type)
constructor for the TokenEvent class. |
Method Summary | |
java.lang.String |
getClientName()
get the name of the Client that generated this event. |
Session |
getSession()
get the Session associated with this event. |
Token |
getToken()
get the name of the token for this event. |
java.lang.String |
toString()
toString print a short description of this Token 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 |
Field Detail |
public static final int GIVEN
public static final int GRABBED
public static final int INHIBITED
public static final int JOINED
public static final int LEFT
public static final int RELEASED
public static final int REQUESTED
public static final int INVITED
public static final int EXPELLED
protected Token token
Constructor Detail |
public TokenEvent(Session session, java.lang.String clientName, Token token, int type)
session
- the session this channel belongs to.clientName
- the name of the client.token
- the token.type
- the type of event.Method Detail |
public Session getSession()
public java.lang.String getClientName()
public Token getToken()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |