Lines Matching refs:node

75      * This method removes the node from its parent
84 * This method adds the child to the specified parent node
97 * This method adds the child to the specified parent node.
99 * child node being Comparable or not. If the child node is
117 // expr1: child node must be inserted after metadata nodes
151 // unregistered notification). Deletes the tree node associated
152 // with the given MBean and recursively all the node parents
155 DefaultMutableTreeNode node = null;
161 node = nodes.get(hashKey);
162 if ((node != null) && (!node.isRoot())) {
163 if (hasNonMetadataNodes(node)) {
164 removeMetadataNodes(node);
169 changeNodeValue(node, userObject);
172 (DefaultMutableTreeNode) node.getParent();
173 model.removeNodeFromParent(node);
182 * Returns true if any of the children nodes is a non MBean metadata node.
184 private boolean hasNonMetadataNodes(DefaultMutableTreeNode node) {
185 for (Enumeration<?> e = node.children(); e.hasMoreElements();) {
205 * Returns true if any of the children nodes is an MBean metadata node.
207 public boolean hasMetadataNodes(DefaultMutableTreeNode node) {
208 for (Enumeration<?> e = node.children(); e.hasMoreElements();) {
228 * Returns true if the given node is an MBean metadata node.
230 public boolean isMetadataNode(DefaultMutableTreeNode node) {
231 Object uo = node.getUserObject();
247 * Remove the metadata nodes associated with a given MBean node.
250 private void removeMetadataNodes(DefaultMutableTreeNode node) {
254 for (Enumeration<?> e = node.children(); e.hasMoreElements();) {
280 Dn dn, int index, DefaultMutableTreeNode node) {
281 if ((!node.isRoot()) && node.isLeaf() &&
282 (!(((XNodeInfo) node.getUserObject()).getType().equals(Type.MBEAN)))) {
284 (DefaultMutableTreeNode) node.getParent();
285 removeChildNode(node);
290 return node;
327 // Add the node or replace its user object if already added
332 // Found existing node previously created when adding another node
335 // Replace user object to reflect that this node is an MBean
345 // Create new leaf node
356 // Intermediate node already present, add new node as child
362 // Create new intermediate node
381 DefaultMutableTreeNode node, XNodeInfo nodeValue) {
382 if (node instanceof ComparableDefaultMutableTreeNode) {
385 (DefaultMutableTreeNode) node.clone();
387 if (((ComparableDefaultMutableTreeNode) node).compareTo(clone) == 0) {
389 node.setUserObject(nodeValue);
391 model.nodeChanged(node);
393 // delete the node and re-order it in case the
394 // node value modifies the order in the tree
396 (DefaultMutableTreeNode) node.getParent();
397 removeChildNode(node);
398 node.setUserObject(nodeValue);
399 addChildNode(parent, node);
403 node.setUserObject(nodeValue);
405 model.nodeChanged(node);
409 removeMetadataNodes(node);
410 TreeNode[] treeNodes = node.getPath();
413 addMetadataNodes(node);
418 if (node == getLastSelectedPathComponent()) {
426 * Creates the domain node.
429 DefaultMutableTreeNode node = new ComparableDefaultMutableTreeNode();
433 node.setUserObject(userObject);
434 return node;
438 * Creates the node corresponding to the whole Dn, i.e. an MBean.
442 DefaultMutableTreeNode node = new ComparableDefaultMutableTreeNode();
447 node.setUserObject(userObject);
448 return node;
452 * Creates the node corresponding to a subDn, i.e. a non-MBean
453 * intermediate node.
456 DefaultMutableTreeNode node = new ComparableDefaultMutableTreeNode();
460 node.setUserObject(userObject);
461 return node;
525 public void addMetadataNodes(DefaultMutableTreeNode node) {
526 XMBean mbean = (XMBean) ((XNodeInfo) node.getUserObject()).getData();
529 new MBeanInfoNodesSwingWorker(model, node, mbean);
539 private final DefaultMutableTreeNode node;
544 DefaultMutableTreeNode node,
547 this.node = node;
569 addMBeanInfoNodes(model, node, mbean, mbeanInfo, isBroadcaster);
581 DefaultTreeModel tree, DefaultMutableTreeNode node,
588 // the three first children of this MBean node. This is only useful
589 // when this MBean node denotes an MBean but it's not a leaf in the
594 // MBeanAttributeInfo node
601 node.insert(attributes, childIndex++);
611 // MBeanOperationInfo node
618 node.insert(operations, childIndex++);
634 // Create operation node
644 // MBeanNotificationInfo node
651 node.insert(notifications, childIndex++);
666 model.reload(node);
703 public int compareTo(DefaultMutableTreeNode node) {
704 return (this.toString().compareTo(node.toString()));