fireTreeStructureChanged(node.getPath()); event = new TreeModelEvent(this, node.getPath(), indexes, childs); for(int i=0; i<alisteners.length; i++) event = new TreeModelEvent(this, node.getPath(), insertedIndexes, insertedChilds); for(int i=0; i<alisteners.length; i++) fireTreeStructureChanged((Object[]) SUtil.joinArrays(node.getPath(), new Object[]{oldchildren.get(0)})); event = new TreeModelEvent(this, node.getPath(), new int[]{0}, new Object[]{oldchildren.get(0)});
/** * Get the path of this node (inclusive) starting from the root node. */ public Object[] getPath() { if(path==null) { if (parent != null) { if(parent instanceof ObjectInspectorAttributeNode) { path = (Object[])SUtil.joinArrays(((ObjectInspectorAttributeNode)parent).getPath(), new Object[]{this}); } else { path = new Object[]{parent, this}; } } else { path = new Object[]{this}; } } return path; }