示例#1
0
    @Override
    public void handleEvent(final BaseEvent be) {
      //	final Dialog simple = new Dialog();
      // simple.setHeading(");
      try {
        final MessageBox box = new MessageBox();
        box.setButtons(MessageBox.YESNOCANCEL);
        box.setIcon(MessageBox.QUESTION);
        box.setTitle("Connection request approval");
        box.addCallback(
            new ApproveConnectionMessageBoxEventListener(r, scrollMenu, m, connectionRequest));

        box.setMessage(
            "The owner of the email address: '"
                + r.getRequestorEmail().getValue()
                + "' would like to connect with you. You will have read only access to each others data points. Is that OK?");

        box.show();
      } catch (NimbitsException e) {
        FeedbackHelper.showError(e);
      }
    }