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

com.jpattern.gwt.client.event.APostDiplayEventCallBack Maven / Gradle / Ivy

package com.jpattern.gwt.client.event;

import com.jpattern.gwt.client.presenter.APresenter;
import com.jpattern.gwt.client.view.IView;

/**
 * A specific IEventCallBack for the PostDisplay method of an APresenter.
 * This calls the endLoading() method of the presenter after its execution.
 * @author cinafr
 *
 */
public abstract class APostDiplayEventCallBack implements IEventCallback {

	private final APresenter presenter;

	public APostDiplayEventCallBack(APresenter presenter) {
		this.presenter = presenter;
	}
	
	@Override
	public void callback(IEventResult webResult) {
		if (webResult.getErrorMessages().isEmpty()) {
			postDisplayCallBack( webResult.getReturnedObject() );
		}
		presenter.render();
	}
	
	public abstract void postDisplayCallBack(T result);
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy