示例#1
0
    @Override
    public void handleEvent(MessageBoxEvent be) {
      newEntityName = be.getValue();
      if (!Utils.isEmptyString(newEntityName)) {
        final MessageBox box =
            MessageBox.wait(
                "Progress",
                "Creating your data point channel into the cloud",
                "Creating: " + newEntityName);
        box.show();
        EntityServiceAsync service = GWT.create(EntityService.class);

        try {
          Point p = EntityHelper.createPointWithName(newEntityName);

          service.addUpdateEntity(p, new NewPointEntityAsyncCallback(box));
        } catch (NimbitsException caught) {
          FeedbackHelper.showError(caught);
        }
      }
    }