|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.client.events.Event<T>
T
- The type of the event.public class Event<T>
An client event that can be handled on an event bus.
Constructor Summary | |
---|---|
Event(T type)
Constructor. |
Method Summary | ||
---|---|---|
Event<T> |
addProperty(java.lang.String key,
java.lang.Object value)
Add a property for this event. |
|
|
getProperty(java.lang.String key)
Retrieve a property for this event. |
|
T |
getType()
Accessor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Event(T type)
type
- The type of the event.Method Detail |
---|
public T getType()
public <S> S getProperty(java.lang.String key)
S
- The type of the property.key
- The key for the property.
public Event<T> addProperty(java.lang.String key, java.lang.Object value)
key
- The key the property will be stored under.value
- The value of the property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |