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); }
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; }