
org.ioc.commons.impl.gwt.client.globalflowcontroller.GwtGlobalOperationManagerImpl 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.common.BindRegistration;
import org.ioc.commons.flowcontrol.globalflowcontroller.GlobalFlowController.GlobalOperationManager;
import org.ioc.commons.flowcontrol.operationmanager.IsOperation;
import org.ioc.commons.flowcontrol.operationmanager.OperationHandler;
import org.ioc.commons.impl.gwt.client.flowcontrol.operationmanager.GwtOperationManagerImpl;
import org.ioc.commons.ui.IsWidget;
import com.google.web.bindery.event.shared.EventBus;
/**
* GWT implementation for {@link GlobalOperationManager}
*
* @author Jesús Lunar Pérez
*
* @param
* Operation type
*/
class GwtGlobalOperationManagerImpl> extends GwtOperationManagerImpl implements
GlobalOperationManager {
public GwtGlobalOperationManagerImpl(EventBus eventBus, Object owner) {
super(eventBus, owner);
}
@Override
public BindRegistration bindOperation(IsWidget whileDisplayIsActive, O operation, OperationHandler handler) {
BindRegistration registration = this.bindOperation(operation, handler);
GwtGlobalFlowController.unbindWhenDetach(registration, whileDisplayIsActive);
return registration;
}
@Override
public BindRegistration bindOperationOnce(IsWidget whileDisplayIsActive, O operation, OperationHandler handler) {
BindRegistration registration = this.bindOperationOnce(operation, handler);
GwtGlobalFlowController.unbindWhenDetach(registration, whileDisplayIsActive);
return registration;
}
@Override
public BindRegistration bindOperationsRunning(IsWidget whileDisplayIsActive, OperationHandler handler) {
BindRegistration registration = this.bindOperationsRunning(handler);
GwtGlobalFlowController.unbindWhenDetach(registration, whileDisplayIsActive);
return registration;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy