public class Event extends Object
match(Text)
is called the requested action is selected for execution when this event will
be detected.| Constructor and Description |
|---|
Event(Text eventName)
Constructs new event name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(EventAction action)
Adds handlers for this event.
|
void |
fire(Signal s,
Text options)
Executes action associated with this event
|
Text |
getName()
Gets the name of this event.
|
boolean |
isActive()
Is this event requested or not.
|
boolean |
matches(Text eventDescriptor)
Checks that this event objects matches to the specified event descriptor.
|
void |
reset() |
public Event(Text eventName)
eventName - public Text getName()
public void add(EventAction action)
action - the event handler.public boolean matches(Text eventDescriptor)
event - the event descriptor which includes the event name and
requested action.public boolean isActive()
public void reset()
Copyright © 2014 TeleStax, Inc.. All Rights Reserved.