@Inject public DeriveVariableView(EventBus eventBus) { super(eventBus); dialog = uiBinder.createAndBindUi(this); dialog.setMinHeight(HEIGHT); dialog.setMinWidth(WIDTH); }
@Override public void clearErrors() { dialog.closeAlerts(); }
@Override public HandlerRegistration addCloseClickHandler(ClickHandler handler) { return dialog.addCloseClickHandler(handler); }
@Override public void setScriptEvaluationSuccess(boolean success, boolean hasNextStep) { dialog.setNextEnabled(hasNextStep && success); dialog.setFinishEnabled(!hasNextStep && success); }
@Override public void showError(String errorMessage) { dialog.addAlert(errorMessage, AlertType.ERROR); }