1 19 20 package org.netbeans.modules.tasklist.usertasks.translators; 21 22 import java.util.ArrayList ; 23 import java.util.List ; 24 import org.netbeans.modules.tasklist.usertasks.model.UserTask; 25 import org.netbeans.modules.tasklist.usertasks.util.TreeAbstraction; 26 27 30 final class UserTaskInfo { 31 32 public Object object; 33 34 35 public long[] spentTimes; 36 37 38 public List <UserTaskInfo> children = new ArrayList <UserTaskInfo>(); 39 40 public TreeAbstraction<UserTaskInfo> createTreeInterface() { 41 return new TreeAbstraction<UserTaskInfo>() { 42 public UserTaskInfo getRoot() { 43 return UserTaskInfo.this; 44 } 45 46 public int getChildCount(UserTaskInfo obj) { 47 return obj.children.size(); 48 } 49 50 public UserTaskInfo getChild(UserTaskInfo obj, int index) { 51 return obj.children.get(index); 52 } 53 }; 54 } 55 } 56 57 | Popular Tags |