1 13 package com.tonbeller.wcf.catedit; 14 15 import java.util.ArrayList ; 16 import java.util.List ; 17 18 23 public class CategorySupport implements Category { 24 List items = new ArrayList (); 25 String name; 26 String icon; 27 boolean orderSignificant; 28 boolean emptyAllowed; 29 30 33 public CategorySupport(String name, String icon) { 34 this.name = name; 35 this.icon = icon; 36 } 37 38 39 43 public String getIcon() { 44 return icon; 45 } 46 47 51 public List getItems() { 52 return items; 53 } 54 55 59 public String getName() { 60 return name; 61 } 62 63 67 public void setIcon(String icon) { 68 this.icon = icon; 69 } 70 71 75 public void setItems(List items) { 76 this.items = items; 77 } 78 79 83 public void setName(String name) { 84 this.name = name; 85 } 86 87 91 public boolean isOrderSignificant() { 92 return orderSignificant; 93 } 94 95 99 public void setOrderSignificant(boolean orderSignificant) { 100 this.orderSignificant = orderSignificant; 101 } 102 103 107 public boolean isEmptyAllowed() { 108 return emptyAllowed; 109 } 110 111 115 public void setEmptyAllowed(boolean emptyAllowed) { 116 this.emptyAllowed = emptyAllowed; 117 } 118 119 122 public void addItem(Item item) { 123 items.add(item); 124 } 125 126 129 public void changeOrder(List items) { 130 this.items = items; 131 } 132 133 136 public void removeItem(Item item) { 137 items.remove(item); 138 } 139 140 } 141 | Popular Tags |