eu.future.earth.gwt.client.date.UpdateCallBackHandler Maven / Gradle / Ivy
The newest version!
package eu.future.earth.gwt.client.date;
import eu.future.earth.gwt.client.date.DateEvent.DateEventActions;
public class UpdateCallBackHandler extends EeEventCallBackHandler {
public UpdateCallBackHandler(DatePanel view, T dataBeingEdited) {
super(view, dataBeingEdited);
}
public void onFailure(Throwable caught) {
sendNotificationEvent(DateEventActions.UPDATE_FAILED, true);
}
public void onSuccess(Void result) {
succes();
}
public void succes() {
super.sendNotificationEvent(DateEventActions.UPDATE_DONE, false);
}
}