Package org.zkoss.zul

Examples of org.zkoss.zul.SimpleTreeModel


        sess = null;

        logger.debug("record list size:" + objList.size());


        treeModel = new SimpleTreeModel(
                prepareRootNode(objList));

        objTree.setModel(treeModel);
        objTree.setTreeitemRenderer(objListRenderer);
    }
View Full Code Here




        Tree orgObjTree = (Tree) getFellow("orgObjTree");

        SimpleTreeModel treeModel = new SimpleTreeModel(
                prepareOrgRootNode(orgObjList));

        orgObjTree.setModel(treeModel);
        orgObjTree.setTreeitemRenderer(orgObjTreeRenderer);
        orgObjTree.addEventListener(Events.ON_SELECT, new MyTreeSelectionListener(orgObjTree));


        Tree dataAuthObjTree = (Tree) getFellow("dataAuthObjTree");

        SimpleTreeModel dataAuthTreeModel = new SimpleTreeModel(
                prepareDataAuthRootNode(dataAuthObjList));

        dataAuthObjTree.setModel(dataAuthTreeModel);
        dataAuthObjTree.setTreeitemRenderer(dataAuthObjTreeRenderer);
        dataAuthObjTree.addEventListener(Events.ON_SELECT, new MyTreeSelectionListener(orgObjTree));
View Full Code Here

            }
        }

        Tree funObjTree = (Tree) getFellow("funObjTree");

        SimpleTreeModel treeModel = new SimpleTreeModel(
                prepareRootNode(funObjList));

        funObjTree.setModel(treeModel);
        funObjTree.setTreeitemRenderer(funObjTreeRenderer);
        funObjTree.addEventListener(Events.ON_SELECT, new MyTreeSelectionListener(funObjTree));


        Tree funAuthObjTree = (Tree) getFellow("funAuthObjTree");

        SimpleTreeModel funAuthTreeModel = new SimpleTreeModel(
                prepareFunAuthRootNode(funAuthObjList));

        funAuthObjTree.setModel(funAuthTreeModel);
        funAuthObjTree.setTreeitemRenderer(funAuthObjTreeRenderer);
        funAuthObjTree.addEventListener(Events.ON_SELECT, new MyTreeSelectionListener(funAuthObjTree));
View Full Code Here

        sess = null;

        // show the function
        Tree objTree = (Tree) getFellow("objTree");

        SimpleTreeModel treeModel = new SimpleTreeModel(
                prepareRootNode(funList));

        objTree.setModel(treeModel);
        objTree.setTreeitemRenderer(objTreeRenderer);
View Full Code Here

        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        objList = sess.selectList("Fun.getAll");
        sess = null;

        treeModel = new SimpleTreeModel(prepareRootNode(objList));

        objTree.setModel(treeModel);
        objTree.setTreeitemRenderer(objTreeRenderer);

    }
View Full Code Here

        logger.debug("funFormList size: " + funFormList.size() + " has saved to session");

        // show the function
        Tree funTree = (Tree) getFellow("funTree");

        SimpleTreeModel treeModel = new SimpleTreeModel(
                prepareRootNode(funFormList));

        funTree.setModel(treeModel);
        funTree.setTreeitemRenderer(this);
View Full Code Here

        objList = sess.selectList("Org.getAll");
        sess = null;

        logger.debug("record list size:" + objList.size());

        treeModel = new SimpleTreeModel(
                prepareRootNode(objList));

        objTree.setModel(treeModel);
        objTree.setTreeitemRenderer(this);
View Full Code Here

        List<CriterionTreeNode> rootList = new ArrayList<CriterionTreeNode>();
        for (Entry<CriterionType, Set<Criterion>> entry : criterions.entrySet()) {
            rootList.add(asNode(entry.getKey(), entry.getValue()));
        }
        CriterionTreeNode root = new CriterionTreeNode("Root", rootList);
        return new SimpleTreeModel(root);
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.SimpleTreeModel

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.