コード例 #1
0
 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);
 }
コード例 #2
0
 @UiHandler("cancelAction")
 public void onCancelAction(ClickEvent clickEvent) {
   presenter.onCancelAction();
 }
コード例 #3
0
 @UiHandler("publishRequestAction")
 public void onPublishRequestAction(ClickEvent clickEvent) {
   presenter.onPublishRequestAction();
 }