/** * Unregister the list handler and destroy all child nodes. * * @param destroy true to destroy this node */ protected void cleanup(boolean destroy) { // Unregister the list handler. if (listView != null) { listView.cleanup(); nodeInfo.unsetDataDisplay(); listView = null; } // Recursively destroy children. if (children != null) { for (CellTreeNodeView<?> child : children) { child.cleanup(true); } children = null; } // Destroy this node. if (destroy) { isDestroyed = true; // If this is the keyboard selected node, select the parent. The children // have already been cleaned, so the selected node cannot be under this // node. if (this == tree.getKeyboardSelectedNode()) { tree.keyboardSelect(parentNode, false); } } }
/** * Unregister the list handler and destroy all child nodes. * * @param destroy true to destroy this node */ protected void cleanup(boolean destroy) { // Unregister the list handler. if (listView != null) { listView.cleanup(); nodeInfo.unsetDataDisplay(); listView = null; } // Recursively destroy children. if (children != null) { for (CellTreeNodeView<?> child : children) { child.cleanup(true); } children = null; } // Destroy this node. if (destroy) { isDestroyed = true; // If this is the keyboard selected node, select the parent. The children // have already been cleaned, so the selected node cannot be under this // node. if (this == tree.getKeyboardSelectedNode()) { tree.keyboardSelect(parentNode, false); } } }
/** * Unregister the list view and remove it from the widget. */ private void destroy() { display.isDestroyed = true; valueChangeHandler.removeHandler(); display.deselectValue(); display.setSelectionModel(null); nodeInfo.unsetDataDisplay(); getSplitLayoutPanel().remove(widget); nodeInfo = null; }
/** * Unregister the list view and remove it from the widget. */ private void destroy() { display.isDestroyed = true; valueChangeHandler.removeHandler(); display.deselectValue(); display.setSelectionModel(null); nodeInfo.unsetDataDisplay(); getSplitLayoutPanel().remove(widget); nodeInfo = null; }
/** * Unregister the list handler and destroy all child nodes. * * @param destroy true to destroy this node */ protected void cleanup(boolean destroy) { // Unregister the list handler. if (listView != null) { listView.cleanup(); nodeInfo.unsetDataDisplay(); listView = null; } // Recursively destroy children. if (children != null) { for (CellTreeNodeView<?> child : children) { child.cleanup(true); } children = null; } // Destroy this node. if (destroy) { isDestroyed = true; // If this is the keyboard selected node, select the parent. The children // have already been cleaned, so the selected node cannot be under this // node. if (this == tree.getKeyboardSelectedNode()) { tree.keyboardSelect(parentNode, false); } } }
/** * Unregister the list view and remove it from the widget. */ private void destroy() { display.isDestroyed = true; valueChangeHandler.removeHandler(); display.deselectValue(); display.setSelectionModel(null); nodeInfo.unsetDataDisplay(); getSplitLayoutPanel().remove(widget); nodeInfo = null; }