| java.lang.Object | |
| ↳ | com.neomades.event.Event |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Event object.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Event(Object value, Object sender, String type)
Creates an event from source with value and type
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | getPriority() | ||||||||||
| Object |
getSource()
Gets the object broadcasting the event.
| ||||||||||
| String |
getType()
Gets the event's type
| ||||||||||
| Object |
getValue()
Gets the value contained into event
| ||||||||||
| boolean |
hasType(String type)
Checks whether this event has this type.
| ||||||||||
| void |
setPriority(int priority)
Sets the priority of event.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates an event from source with value and type
| value | value to be transported |
|---|---|
| sender | the object which triggers this event |
| type | the type of this event |
Checks whether this event has this type.
| type | the type to compare |
|---|
true is this event has this type.