Package org.itsnat.impl.core.domutil

Examples of org.itsnat.impl.core.domutil.ElementTreeNodeListImpl


        return getElementTreeNodeFromRow(getDefaultRowMapper().getRowForPath(path));
    }

    public ElementTreeNodeImpl getElementTreeNodeFromTreePath(int index,TreePath parentPath)
    {
        ElementTreeNodeListImpl childList = getElementTreeNodeChildList(parentPath);
        return (ElementTreeNodeImpl)childList.getTreeNodeAt(index);
    }
View Full Code Here


    }


    public ElementTreeNodeListImpl getElementTreeNodeChildList(TreePath path)
    {
        ElementTreeNodeListImpl treeNodeList;
        if ((path.getParentPath() == null) && isRootless()) // es el root y el �rbol no tiene root con markup
        {
            return elementTree.getChildListRootless();
        }
        else
View Full Code Here

     * @param parentPath the path of the parent tree node.
     * @see org.itsnat.core.domutil.ElementTreeNodeList#removeTreeNodeAt(int)
     */
    public void removeTreeNodeAt(int index,TreePath parentPath)
    {
        ElementTreeNodeListImpl treeNodeListParent = getElementTreeNodeChildList(parentPath);
        removeElementAt(index,treeNodeListParent);
    }
View Full Code Here

        if (parentPath == null) // Es el caso de eliminar el root
            removeRootNode();
        else
        {
            ElementTreeNode parentTreeNode = getElementTreeNodeFromTreePath(parentPath);
            ElementTreeNodeListImpl treeNodeListParent = (ElementTreeNodeListImpl)parentTreeNode.getChildTreeNodeList();
            int len = treeNodeListParent.getLength();
            for(int i = 0; i < len; i++)
                removeElementAt(0,treeNodeListParent); // Es 0 porque al eliminar cambia la numeraci�n claro
        }
    }
View Full Code Here

        {
            Element treeNodeLabelElem = treeNode.getLabelElement();
            renderer.unrenderTreeCell(getItsNatTree(),treeNode.getRow(),treeNodeLabelElem);
        }
        // Es posible que el padre pueda no tener renderer pero los hijos s�.
        ElementTreeNodeListImpl childList = treeNode.getElementTreeNodeList();
        unrenderTreeNode(childList);
    }
View Full Code Here

TOP

Related Classes of org.itsnat.impl.core.domutil.ElementTreeNodeListImpl

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.