public EzyEventHandler getHandler(Object eventType) { EzyEventHandler handler = null; if (handlers.ContainsKey(eventType)) { handler = handlers[eventType]; } return(handler); }
public void addEventHandler <E>(int eventType, EzyEventHandler <E> handler) where E : EzyEvent { if (handler is EzyClientAware) { ((EzyClientAware)handler).setClient(this); } if (handler is EzyRequestDeliverAware) { ((EzyRequestDeliverAware)handler).setRequestDeliver(this); } eventHandlers.addEventHandler <E>(eventType, handler); }
public void handle(EzyEvent evt) { EzyEventType eventType = evt.getType(); if (handlers.ContainsKey(eventType)) { EzyEventHandler hd = handlers[eventType]; hd.handle(evt); } else { logger.warn("has no handler for event type: " + eventType); } }
public void addHandler(Object eventType, EzyEventHandler handler) { this.configHandler(handler); handlers[eventType] = handler; }
public void addEventHandler(Object eventType, EzyEventHandler eventHandler) { eventHandlers.addHandler(eventType, eventHandler); }
public EzySetup addEventHandler(EzyEventType eventType, EzyEventHandler eventHandler) { handlerManager.addEventHandler(eventType, eventHandler); return(this); }