|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.user1.union.core.event.BaseEvent
net.user1.union.core.event.ClientEvent
public class ClientEvent
ClientEvent is a simple data class used to pass information from a client to registered event-listeners when a client event occurs. The ClientEvent class also defines constants representing the available client events. To register for a client event, use the Client class's addEventListener() method.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_CHANGED
Dispatched when a client attribute changes. |
static java.lang.String |
ATTRIBUTE_REMOVED
Dispatched when a client attribute is removed. |
static java.lang.String |
SHUTDOWN
Dispatched when a client is shutdown. |
| Constructor Summary | |
|---|---|
ClientEvent(Client client)
Constructor. |
|
ClientEvent(Client client,
Attribute attribute)
|
|
| Method Summary | |
|---|---|
Attribute |
getAttribute()
In ATTRIBUTE_CHANGED, and ATTRIBUTE_REMOVED events this returns the attribute involved in the event. |
Client |
getClient()
For all events this returns the client involved in the event. |
| Methods inherited from class net.user1.union.core.event.BaseEvent |
|---|
getProperty, isCanceled, preventDefault |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTRIBUTE_CHANGED
public static final java.lang.String ATTRIBUTE_REMOVED
public static final java.lang.String SHUTDOWN
| Constructor Detail |
|---|
public ClientEvent(Client client)
public ClientEvent(Client client,
Attribute attribute)
| Method Detail |
|---|
public Client getClient()
public Attribute getAttribute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||