/** * Iterating through all the child nodes and setting the isOpen boolean to false. * * @param node the new open to false */ private void setOpenToFalse(CellTreeNode node) { if (node.hasChildren()) { for (CellTreeNode child : node.getChilds()) { child.setOpen(false); setOpenToFalse(child); } } }
/* (non-Javadoc) * @see com.google.gwt.view.client.TreeViewModel#isLeaf(java.lang.Object) */ @Override public boolean isLeaf(Object value) { if (value instanceof CellTreeNode) { CellTreeNode t = (CellTreeNode) value; if (!t.hasChildren()) { return true; } } return false; }