Examples of XTreeNode


Examples of com.sun.star.awt.tree.XTreeNode

        tEnv.addObjRelation("Comparer",
                            new Comparator() {
            public int compare(Object o1, Object o2) {
                XMutableTreeNode xNode1 = (XMutableTreeNode) UnoRuntime.queryInterface(
                                        XMutableTreeNode.class, o1);
                XTreeNode xNode2a = null;
                try {
                    xNode2a = (XTreeNode) AnyConverter.toObject(new Type(XTreeNode.class), o2);
                } catch (com.sun.star.lang.IllegalArgumentException ex) {
                    ex.printStackTrace();
                }
View Full Code Here

Examples of com.sun.star.awt.tree.XTreeNode

    public void _getChildAt(){
        this.requiredMethod("getChildCount()");
        boolean bOK = true;
       
        for (int i=0; i < mCount ; i++){
            XTreeNode xNode = null;
            try {
                xNode = oObj.getChildAt(i);
            } catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
                log.println("ERROR: getChildAt(" + i + "): " + ex.toString());
            }
View Full Code Here

Examples of com.sun.star.awt.tree.XTreeNode

   
    public void _getParent(){
        this.requiredMethod("getChildAt()");
       
        boolean bOK = true;
        XTreeNode xNode = null;
        try {
            log.println("try to getChildAt(0)");
            xNode = oObj.getChildAt(0);
        } catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
            log.println("ERROR: getChildAt(0): " + ex.toString());
        }
       
        log.println("try to get parrent of children");
        XTreeNode xParrent = xNode.getParent();
       
       
        bOK = oObj.equals(xParrent);
        log.println("original object and parrent should be the same: " + bOK);
        tRes.tested("getParent()", bOK);
View Full Code Here

Examples of com.sun.star.awt.tree.XTreeNode

   
    public void _getIndex(){
        this.requiredMethod("getChildAt()");
       
        boolean bOK = true;
        XTreeNode xNode = null;
        try {
            log.println("try to getChildAt(0)");
            xNode = oObj.getChildAt(0);
        } catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
            log.println("ERROR: getChildAt(0): " + ex.toString());
View Full Code Here

Examples of com.sun.star.awt.tree.XTreeNode

     * </ul>
     */
    public void _getRoot() {
       
        boolean bOK = true;
        XTreeNode root = oObj.getRoot();
       
        tRes.tested("getRoot()", bOK);
       
    }
View Full Code Here

Examples of com.sun.star.awt.tree.XTreeNode

    public void _getClosestNodeForLocation(){
       
        boolean bOK = false;
       
        log.println("try to get Node for location 100,100");
        XTreeNode myNode = oObj.getClosestNodeForLocation(100,100);
       
        bOK &= (myNode != null);
       
        tRes.tested("getClosestNodeForLocation()", bOK);
       
View Full Code Here

Examples of com.sun.star.awt.tree.XTreeNode

        tEnv.addObjRelation("Comparer",
                            new Comparator() {
            public int compare(Object o1, Object o2) {
                XMutableTreeNode xNode1 = (XMutableTreeNode) UnoRuntime.queryInterface(
                                        XMutableTreeNode.class, o1);
                XTreeNode xNode2a = null;
                try {
                    xNode2a = (XTreeNode) AnyConverter.toObject(new Type(XTreeNode.class), o2);
                } catch (com.sun.star.lang.IllegalArgumentException ex) {
                    ex.printStackTrace();
                }
View Full Code Here

Examples of com.sun.star.awt.tree.XTreeNode

    public void _getChildAt(){
        this.requiredMethod("getChildCount()");
        boolean bOK = true;
       
        for (int i=0; i < mCount ; i++){
            XTreeNode xNode = null;
            try {
                xNode = oObj.getChildAt(i);
            } catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
                log.println("ERROR: getChildAt(" + i + "): " + ex.toString());
            }
View Full Code Here

Examples of com.sun.star.awt.tree.XTreeNode

   
    public void _getParent(){
        this.requiredMethod("getChildAt()");
       
        boolean bOK = true;
        XTreeNode xNode = null;
        try {
            log.println("try to getChildAt(0)");
            xNode = oObj.getChildAt(0);
        } catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
            log.println("ERROR: getChildAt(0): " + ex.toString());
        }
       
        log.println("try to get parrent of children");
        XTreeNode xParrent = xNode.getParent();
       
       
        bOK = oObj.equals(xParrent);
        log.println("original object and parrent should be the same: " + bOK);
        tRes.tested("getParent()", bOK);
View Full Code Here

Examples of com.sun.star.awt.tree.XTreeNode

   
    public void _getIndex(){
        this.requiredMethod("getChildAt()");
       
        boolean bOK = true;
        XTreeNode xNode = null;
        try {
            log.println("try to getChildAt(0)");
            xNode = oObj.getChildAt(0);
        } catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
            log.println("ERROR: getChildAt(0): " + ex.toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.