All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ioc.commons.impl.gwt.client.globalflowcontroller.GwtGlobalActionControllerImpl Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package org.ioc.commons.impl.gwt.client.globalflowcontroller;

import org.ioc.commons.flowcontrol.actioncontroller.ActionHandler;
import org.ioc.commons.flowcontrol.actioncontroller.IsExternalAction;
import org.ioc.commons.flowcontrol.common.BindRegistration;
import org.ioc.commons.flowcontrol.globalflowcontroller.GlobalFlowController.GlobalActionController;
import org.ioc.commons.impl.gwt.client.flowcontrol.actioncontroller.GwtActionControllerImpl;
import org.ioc.commons.ui.IsWidget;

import com.google.web.bindery.event.shared.EventBus;

/**
 * GWT implementation for {@link GlobalActionController}
 * 
 * @author Jesús Lunar Pérez
 * 
 * @param 
 *            External action type
 */
class GwtGlobalActionControllerImpl> extends GwtActionControllerImpl
		implements GlobalActionController {

	public GwtGlobalActionControllerImpl(EventBus eventBus, Object owner) {
		super(eventBus, owner);
	}

	@Override
	public BindRegistration bindAction(IsWidget whileDisplayIsActive, A action, ActionHandler handler) {

		BindRegistration registration = this.bindAction(action, handler);

		GwtGlobalFlowController.unbindWhenDetach(registration, whileDisplayIsActive);

		return registration;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy