1 19 20 package za.org.coefficient.modules.category; 21 22 import za.org.coefficient.core.Category; 23 24 import java.util.ArrayList ; 25 import java.util.List ; 26 27 30 public class CategoryDisplayData implements java.io.Serializable { 31 33 List children; 34 Long id; 35 Long parentId; 36 String description; 37 String name; 38 boolean open; 39 int projectCount; 40 41 43 public CategoryDisplayData() { 44 children = new ArrayList (); 45 } 46 47 49 public void setChildren(List argChildren) { 50 children = argChildren; 51 } 52 53 public List getChildren() { 54 return children; 55 } 56 57 public boolean isClosed() { 58 return !open; 59 } 60 61 public void setDescription(String argDescription) { 62 description = argDescription; 63 } 64 65 public String getDescription() { 66 return description; 67 } 68 69 public void setId(Long argId) { 70 id = argId; 71 } 72 73 public Long getId() { 74 return id; 75 } 76 77 public void setName(String argName) { 78 name = argName; 79 } 80 81 public String getName() { 82 return name; 83 } 84 85 public void setOpen(boolean o) { 86 open = o; 87 } 88 89 public boolean getOpen() { 90 return open; 91 } 92 93 public boolean isOpen() { 94 return open; 95 } 96 97 public void setParentId(Long argId) { 98 parentId = argId; 99 } 100 101 public Long getParentId() { 102 return parentId; 103 } 104 105 public void setProjectCount(int cnt) { 106 projectCount = cnt; 107 } 108 109 public int getProjectCount() { 110 return projectCount; 111 } 112 113 public void addChild(Category child) { 114 children.add(child); 115 } 116 117 public boolean areThereChildren() { 118 return !children.isEmpty(); 119 } 120 } 121 | Popular Tags |