Package org.apache.tools.ant.gui.acs

Examples of org.apache.tools.ant.gui.acs.ACSTreeNodeElement


        /**
         * Append the object to the end of the parent's child list.
         */
        public Object appendChild(Object parent, Object newChild) {
           
            ACSTreeNodeElement parentNode =
                (ACSTreeNodeElement) parent;
            ACSTreeNodeElement newChildNode =
                (ACSTreeNodeElement) newChild;
            ACSTreeNodeElement clone =
                (ACSTreeNodeElement) newChildNode.cloneNode(true);
            parentNode.appendChild(clone);
           
            ElementTreeModel model = (ElementTreeModel)_tree.getModel();
            model.fireNodeChanged(parentNode);
View Full Code Here


        /**
         * Append the object to the end of the parent's child list.
         */
        public Object insertBefore(Object parent, Object index, Object newChild) {
           
            ACSTreeNodeElement parentNode =
                (ACSTreeNodeElement) parent;
            ACSTreeNodeElement indexNode =
                (ACSTreeNodeElement) index;
            ACSTreeNodeElement newChildNode =
                (ACSTreeNodeElement) newChild;
            ACSTreeNodeElement clone =
                (ACSTreeNodeElement) newChildNode.cloneNode(true);
            parentNode.insertBefore(clone, indexNode);
           
            ElementTreeModel model = (ElementTreeModel)_tree.getModel();
            model.fireNodeChanged(parentNode);
View Full Code Here

        /**
         * Append the object to the end of the parent's child list.
         */
        public void removeChild(Object child) {
           
            ACSTreeNodeElement childNode =
                (ACSTreeNodeElement) child;
            ACSTreeNodeElement parentNode =
                (ACSTreeNodeElement) childNode.getParentNode();
            parentNode.removeChild(childNode);
           
            ElementTreeModel model = (ElementTreeModel)_tree.getModel();
            model.fireNodeChanged(childNode);
        }
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.gui.acs.ACSTreeNodeElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.