
org.ioc.commons.impl.gwt.client.globalflowcontroller.GwtGlobalActionControllerImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ioc-commons-gwt-impl Show documentation
Show all versions of ioc-commons-gwt-impl Show documentation
GWT implementation for ioc-commons artifacts.
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