@Override public void onSuccess(List<JcrNode> result) { List<JcrNode> jcrNodeList = result; JcrTreeNode[] jcrTreeNodes = new JcrTreeNode[jcrNodeList.size()]; int x = 0; for (JcrNode jcrNode : jcrNodeList) { jcrTreeNodes[x] = new JcrTreeNode( jcrNode.getName(), jcrNode.getPath(), jcrNode.getPrimaryNodeType(), jcrNode.getMixinTypes(), jcrNode.getProperties()); JcrExplorer.setCustomTreeIcon(jcrTreeNodes[x], jcrNode.getPrimaryNodeType()); x++; } JcrTreeNode parentAnimateTreeNode; if (parentPath != null) { parentAnimateTreeNode = (JcrTreeNode) jackrabbitExplorer.jcrTree.find("/root" + parentPath); jackrabbitExplorer.jcrTreeGrid.setData(jackrabbitExplorer.jcrTree); } else { parentAnimateTreeNode = (JcrTreeNode) jackrabbitExplorer.jcrTreeGrid.getSelectedRecord(); } jackrabbitExplorer.jcrTree.addList(jcrTreeNodes, parentAnimateTreeNode); jackrabbitExplorer.jcrTreeGrid.setData(jackrabbitExplorer.jcrTree); JcrExplorer.hideLoadingImg(); }
public void onSubmitValues(com.smartgwt.client.widgets.form.events.SubmitValuesEvent event) { if (searchFullTextForm.validate()) { JcrExplorer.showLoadingImg(); JcrExplorer.service.fullTextSearch( searchFullTxt.getValue().toString(), new SearchServiceCallback(jackrabbitExplorer)); } }
@Override public void onFailure(Throwable caught) { SC.warn(caught.toString(), new NewBooleanCallback()); JcrExplorer.hideLoadingImg(); }