TreeNode动态邦定事件

1. 显示不能用TextField,应该用StaticText

2.

    public void SetNodesAction(Tree t, String methodbind){

        ArrayList list = tree_operate.getTreeOffspring(treex);

        for(int i=0; i<list.size(); i++){

            ((TreeNode)list.get(i)).setAction(this.getApplication().createMethodBinding(methodbind, null));

        }

    }

    public void NodesActionMethod(){

      

       //方法内容

      

    }

 

原文链接:http://user.qzone.qq.com/372806800/blog/1336200253

posted @ 2016-12-23 13:59  风来风往风伤(TiAmo)  阅读(210)  评论(0编辑  收藏  举报