Пример #1
0
    public void onSubmit() {

      termMoveObj.setNewConceptURI((String) destConcept.getValue());
      termMoveObj.setOldConceptURI(conceptObject.getUri());
      termMoveObj.setTermObj(tObj);

      AsyncCallback<TermMoveObject> callback =
          new AsyncCallback<TermMoveObject>() {
            public void onSuccess(TermMoveObject results) {
              panel.clear();
              panel.add(getTable(results));
            }

            public void onFailure(Throwable caught) {
              ExceptionManager.showException(caught, constants.conceptDeleteTermFail());
            }
          };

      OwlStatus status = (OwlStatus) initData.getActionStatus().get(ConceptActionKey.termDelete);
      int actionId =
          Integer.parseInt((String) initData.getActionMap().get(ConceptActionKey.termDelete));

      Service.conceptService.moveTerm(
          MainApp.userOntology, actionId, status, MainApp.userId, tObj, termMoveObj, callback);
    }
Пример #2
0
    public boolean passCheckInput() {
      boolean pass = false;
      if (destConcept == null) {
        pass = false;
      } else {
        String dObj = (String) destConcept.getValue();
        if (dObj == null) {
          pass = false;
        } else {

          if ((((String) dObj).length() == 0)) {
            pass = false;
          } else {
            pass = true;
          }
        }
      }
      return pass;
    }