public void prepareView() { Messages messages = presenter.getBrowserFactory().getMessages(); setCreateRequestTitle(messages.createRequestTitle()); setToLabel(messages.to()); setRequestTitleLabel(messages.requestTitle()); setRequestDescriptionLabel(messages.requestDescription()); setExpectsAnswerLabel(messages.expectsAnswer()); setPublishRequestButtonText(messages.publishRequest()); setCancelButtonText(messages.cancel()); requestTitleContainer.setText(""); requestDescriptionContainer.setText(""); toContainer.setText(""); expectsAnswerContainer.setValue(false); }
@UiHandler("cancelAction") public void onCancelAction(ClickEvent clickEvent) { presenter.onCancelAction(); }
@UiHandler("publishRequestAction") public void onPublishRequestAction(ClickEvent clickEvent) { presenter.onPublishRequestAction(); }