Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
content
The event content.
|
protected EventType |
type
The event type.
|
Constructor and Description |
---|
Event()
Create a new Event.
|
Event(EventType type,
java.lang.Object content)
Create a new event.
|
Event(java.lang.String type,
java.lang.Object content)
Create a new event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getContent()
Get the content.
|
EventType |
getType()
Get the type.
|
void |
setContent(java.lang.Object content)
Set the content.
|
void |
setType(EventType type)
Set the type.
|
java.lang.String |
toString() |
protected EventType type
protected java.lang.Object content
public Event()
public Event(java.lang.String type, java.lang.Object content)
public Event(EventType type, java.lang.Object content)
public EventType getType()
public void setType(EventType type)
type
- The type to set.public java.lang.Object getContent()
getContent
in interface IEvent
public void setContent(java.lang.Object content)
content
- The content to set.public java.lang.String toString()
toString
in class java.lang.Object