RSS
热门关键字:  java  Ajax  JSP  JSF  Struts
当前位置 : 首页>Java>列表

Swt/Jface treeViewer的使用

来源: 作者: 时间:2007-08-14 点击:
{
            Itree node 
= (Itree)parentElement;
            List list 
= node.getChildren();
            
if(list == null){
                
return new Object[0];
            }

            
return list.toArray();
        }

        
        
public boolean hasChildren(Object element) {
            Itree node 
= (Itree)element;
            List list 
= node.getChildren();
            
return !(list == null || list.isEmpty());
        }

        
//以下三个函数根据需要填充
        public Object getParent(Object element) {
            
return null;
        }

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
Google Adsense
相关文章