All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.frameworkset.platform.menu.TestTree Maven / Gradle / Ivy

There is a newer version: 5.6.4
Show newest version
package com.frameworkset.platform.menu;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.frameworkset.common.tag.tree.COMTree;
import com.frameworkset.common.tag.tree.itf.ITreeNode;

/**
 * 

Title:

* *

Description:

* *

Copyright: Copyright (c) 2006

* *

Company: bbossgroups

* * @author biaoping.yin * @version 1.0 */ public class TestTree extends COMTree implements Serializable{ public boolean hasSon(ITreeNode father) { String treeID = father.getId(); if(father.isRoot() || treeID.equals("node1") ) return true; else return false; } public boolean setSon(ITreeNode father, int curLevel) { String treeID = father.getId(); if(father.isRoot()) { for(int i = 0; i < 20;i ++) { this.addNode(father, father.getId() + i, father.getName() + i, "postion", true, curLevel, null, null, (String)null); } } if(treeID.equals("node1")) { Map params = new HashMap(); params.put("key","value"); params.put("key1","value1"); for(int i = 0; i < 100;i ++) { this.addNode(father, father.getId() + i, father.getName() + i, null, true, curLevel, null, null, (String)null,params); } } return true; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy