Package net.caece.pri.hibernate.vo

Examples of net.caece.pri.hibernate.vo.FunForm


        sess = null;
        return fun;
    }

    public void delete() {
        FunForm var = null;
        objTree = (Tree) getFellow("objTree");
        if (objTree.getSelectedItem() != null) {
            SimpleTreeNode node = (SimpleTreeNode) objTree.getSelectedItem().getValue();
            var = (FunForm) node.getData();
View Full Code Here


        }

    }

    private SimpleTreeNode prepareRootNode(List funData) {
        FunForm root = new net.caece.pri.hibernate.vo.FunForm() {
        };
        root.setFunName("");

        ArrayList mother = new ArrayList();
        Iterator it = funData.iterator();
        while (it.hasNext()) {
            FunForm form = (FunForm) it.next();
            if ("0".equals(form.getLayer().trim())) {

                ArrayList subList = getSubList(form, funData);
                SimpleTreeNode stn = new SimpleTreeNode(form, subList);
                mother.add(stn);
            }
View Full Code Here

    private ArrayList getSubList(FunForm form, List funData) {
        ArrayList subList = new ArrayList();
        Iterator it = funData.iterator();

        while (it.hasNext()) {
            FunForm funForm = (FunForm) it.next();

            if (!funForm.getFunId().equals(form.getFunId())
                    && funForm.getParentFunId().equals(form.getFunId())) {

                SimpleTreeNode stn = new SimpleTreeNode(funForm, getSubList(
                        funForm, funData));
                subList.add(stn);
            }
View Full Code Here

        return subList;
    }

    public void render(Treeitem item, Object data) throws Exception {
        SimpleTreeNode t = (SimpleTreeNode) data;
        FunForm funForm = (FunForm) t.getData();

        // Construct treecells
        Treecell tcFunName = new Treecell(funForm.getFunName());
        Treecell tcFunPath = new Treecell(funForm.getFunPath());
        Treecell tcFunId = new Treecell(funForm.getFunId().toString());
        Treecell tcBootFlag = new Treecell(funForm.getBootFlag());

        /*
         * Since only one treerow is allowed, if treerow is not null, append
         * treecells to it. If treerow is null, contruct a new treerow and
         * attach it to item.
View Full Code Here

TOP

Related Classes of net.caece.pri.hibernate.vo.FunForm

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.