1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.client.configurable.mvc.multiplicity;
17
18 import org.kuali.student.common.ui.client.mvc.Callback;
19
20 import com.google.gwt.user.client.ui.Composite;
21 import com.google.gwt.user.client.ui.Widget;
22
23
24
25
26
27
28
29
30
31
32
33 @Deprecated
34 public abstract class MultiplicityItem extends Composite{
35 private Integer itemKey;
36 private Widget itemWidget;
37 private Callback<MultiplicityItem> removeCallback;
38
39 private boolean isCreated = true;
40 private boolean isDeleted = false;
41
42 public Integer getItemKey() {
43 return itemKey;
44 }
45
46 public void setItemKey(Integer itemKey) {
47 this.itemKey = itemKey;
48 }
49
50 public Widget getItemWidget() {
51 return itemWidget;
52 }
53
54 public void setItemWidget(Widget itemWidget) {
55 this.itemWidget = itemWidget;
56 }
57
58 public void setRemoveCallback(Callback<MultiplicityItem> callback){
59 removeCallback = callback;
60 }
61
62 public Callback<MultiplicityItem> getRemoveCallback(){
63 return removeCallback;
64 }
65
66 public boolean isCreated() {
67 return isCreated;
68 }
69
70 public void setCreated(boolean created) {
71 this.isCreated = created;
72 }
73
74 public boolean isDeleted() {
75 return isDeleted;
76 }
77
78 public void setDeleted(boolean isDeleted) {
79 this.isDeleted = isDeleted;
80 if(isDeleted)
81 this.isCreated = false;
82 }
83
84 public abstract void redraw();
85
86 public abstract void clear();
87
88 }