/** * Returns the event router for this binder. * * @return the event router, not null */ protected EventRouter getEventRouter() { if (eventRouter == null) { eventRouter = new EventRouter(); } return eventRouter; }
/** * Registers a new listener with the specified activation method to listen * events generated by this component. If the activation method does not * have any arguments the event object will not be passed to it when it's * called. * * @param eventType * the type of the listened event. Events of this type or its * subclasses activate the listener. * @param listener * the object instance who owns the activation method. * @param method * the activation method. * @return a registration for the listener */ protected Registration addListener(Class<?> eventType, DataProviderListener<T> listener, Method method) { if (eventRouter == null) { eventRouter = new EventRouter(); } return eventRouter.addListener(eventType, listener, method); }
/** * Registers a new listener with the specified activation method to listen * events generated by this component. If the activation method does not * have any arguments the event object will not be passed to it when it's * called. * * <p> * For more information on the inheritable event mechanism see the * {@link com.vaadin.event com.vaadin.event package documentation}. * </p> * * @param eventType * the type of the listened event. Events of this type or its * subclasses activate the listener. * @param target * the object instance who owns the activation method. * @param method * the activation method. * @return a registration object for removing the listener */ @Override public Registration addListener(Class<?> eventType, Object target, Method method) { if (eventRouter == null) { eventRouter = new EventRouter(); } return eventRouter.addListener(eventType, target, method); }
private Registration addListener(Class<?> eventType, Object target, Method method) { if (!hasEventRouter()) { eventRouter = new EventRouter(); } return eventRouter.addListener(eventType, target, method); }
String methodName) { if (eventRouter == null) { eventRouter = new EventRouter();
Class<?> eventType, Object target, Method method) { if (eventRouter == null) { eventRouter = new EventRouter();
protected EventRouter getEventRouter() { if (eventRouter == null) { eventRouter = new EventRouter(); } return eventRouter; } }
private EventRouter getEventRouter() { if (eventRouter == null) { eventRouter = new EventRouter(); } return eventRouter; }
private EventRouter getEventRouter() { if (eventRouter == null) { eventRouter = new EventRouter(); } return eventRouter; }
private EventRouter getEventRouter() { if (eventRouter == null) { eventRouter = new EventRouter(); } return eventRouter; } }