|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.zion.jbuddy.bots.BotEventHandler
public class BotEventHandler
An event handler.
Event handlers are similar to targets, except that they are triggered in
response to various events, not user commands. Like targets, they may
contain various calls
.
Constructor Summary | |
---|---|
BotEventHandler(BotEventType type)
Creates an event handler. |
Method Summary | |
---|---|
Object |
clone()
Returns an exact copy of this event handler. |
BotCallSet |
getCalls()
Returns the calls executed by this event handler. |
BotFilterSet |
getFilters()
Returns this event handler's filters. |
String |
getID()
Returns this event handler's identifier. |
BotRouteSet |
getRoutes()
Returns this event handler's routes. |
BotEventType |
getType()
Returns the type of event that triggers this event handler. |
boolean |
isConsume()
Returns whether this event handler consumes events. |
void |
setConsume(boolean consume)
Sets whether this event handler consumes events. |
void |
setID(String id)
Sets this event handler's identifier, which can be used by other event handlers to reference this event handler (with the ref
attribute). |
void |
setType(BotEventType type)
Sets the type of event that triggers this event handler. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BotEventHandler(BotEventType type)
type
- the type of event that triggers the event handlerMethod Detail |
---|
public BotEventType getType()
public void setType(BotEventType type)
public String getID()
public void setID(String id)
ref
attribute).
public boolean isConsume()
public void setConsume(boolean consume)
If true
, the engine will ignore further event handlers for
an event after triggering this one.
public BotFilterSet getFilters()
An event may only trigger this event handler if the filters allow it.
public BotRouteSet getRoutes()
This event handler's calls are processed for each specified route.
public BotCallSet getCalls()
public Object clone()
clone
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |