public class

Event

extends Object
java.lang.Object
   ↳ com.neomades.event.Event
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Event object.

Summary

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

Public Constructors

public Event (Object value, Object sender, String type)

Creates an event from source with value and type

Parameters
value value to be transported
sender the object which triggers this event
type the type of this event

Public Methods

public int getPriority ()

Returns
  • the priority of event

public Object getSource ()

Gets the object broadcasting the event.

public String getType ()

Gets the event's type

public Object getValue ()

Gets the value contained into event

Returns
  • the value object

public boolean hasType (String type)

Checks whether this event has this type.

Parameters
type the type to compare
Returns
  • true is this event has this type.

public void setPriority (int priority)

Sets the priority of event.

See Also