1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.common.ui.client.widgets.list; |
17 | |
|
18 | |
import java.util.List; |
19 | |
|
20 | |
import org.kuali.student.common.ui.client.mvc.Callback; |
21 | |
import org.kuali.student.common.ui.client.widgets.list.impl.KSLabelListImpl; |
22 | |
|
23 | |
import com.google.gwt.core.client.GWT; |
24 | |
import com.google.gwt.event.dom.client.BlurHandler; |
25 | |
import com.google.gwt.event.dom.client.FocusHandler; |
26 | |
import com.google.gwt.event.shared.HandlerRegistration; |
27 | |
import com.google.gwt.user.client.ui.Widget; |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
public class KSLabelList extends KSSelectItemWidgetAbstract { |
37 | 0 | private KSSelectItemWidgetAbstract selectItemWidget = GWT.create(KSLabelListImpl.class); |
38 | |
|
39 | |
|
40 | 0 | public KSLabelList(String name) { |
41 | 0 | initWidget(selectItemWidget); |
42 | 0 | selectItemWidget.setName(name); |
43 | 0 | } |
44 | |
|
45 | 0 | public KSLabelList() { |
46 | 0 | initWidget(selectItemWidget); |
47 | 0 | } |
48 | |
|
49 | 0 | public KSLabelList(boolean initialzed) { |
50 | 0 | initWidget(selectItemWidget); |
51 | 0 | selectItemWidget.setInitialized(initialzed); |
52 | 0 | } |
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
public void deSelectItem(String id) { |
58 | 0 | selectItemWidget.deSelectItem(id); |
59 | 0 | } |
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
public List<String> getSelectedItems() { |
65 | 0 | return selectItemWidget.getSelectedItems(); |
66 | |
} |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
public void selectItem(String id) { |
72 | 0 | selectItemWidget.selectItem(id); |
73 | 0 | } |
74 | |
|
75 | |
public void setListItems(ListItems listItems) { |
76 | 0 | selectItemWidget.setListItems(listItems); |
77 | 0 | } |
78 | |
|
79 | |
|
80 | |
|
81 | |
|
82 | |
|
83 | |
public void setColumnSize(int cols){ |
84 | 0 | selectItemWidget.setColumnSize(cols); |
85 | 0 | } |
86 | |
|
87 | 0 | public void setMultipleSelect(boolean isMultipleSelect) {} |
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
@Override |
95 | 0 | public void onLoad() {} |
96 | |
|
97 | |
public HandlerRegistration addSelectionChangeHandler(SelectionChangeHandler handler) { |
98 | 0 | return selectItemWidget.addSelectionChangeHandler(handler); |
99 | |
} |
100 | |
|
101 | |
public ListItems getListItems() { |
102 | 0 | return selectItemWidget.getListItems(); |
103 | |
} |
104 | |
|
105 | |
public String getName() { |
106 | 0 | return selectItemWidget.getName(); |
107 | |
} |
108 | |
|
109 | |
public void setName(String name) { |
110 | 0 | selectItemWidget.setName(name); |
111 | 0 | } |
112 | |
|
113 | |
@Override |
114 | |
public void setEnabled(boolean b) { |
115 | 0 | selectItemWidget.setEnabled(b); |
116 | 0 | } |
117 | |
|
118 | |
@Override |
119 | |
public boolean isEnabled() { |
120 | 0 | return selectItemWidget.isEnabled(); |
121 | |
} |
122 | |
|
123 | |
@Override |
124 | |
public boolean isMultipleSelect() { |
125 | 0 | return selectItemWidget.isMultipleSelect(); |
126 | |
} |
127 | |
|
128 | |
@Override |
129 | |
public void redraw() { |
130 | 0 | selectItemWidget.redraw(); |
131 | 0 | } |
132 | |
|
133 | |
@Override |
134 | |
public void clear() { |
135 | 0 | selectItemWidget.clear(); |
136 | 0 | } |
137 | |
|
138 | |
@Override |
139 | |
public HandlerRegistration addFocusHandler(FocusHandler handler) { |
140 | 0 | return selectItemWidget.addFocusHandler(handler); |
141 | |
} |
142 | |
|
143 | |
@Override |
144 | |
public HandlerRegistration addBlurHandler(BlurHandler handler) { |
145 | 0 | return selectItemWidget.addBlurHandler(handler); |
146 | |
} |
147 | |
|
148 | |
public void addWidgetReadyCallback(Callback<Widget> callback) { |
149 | 0 | selectItemWidget.addWidgetReadyCallback(callback); |
150 | 0 | } |
151 | |
|
152 | |
public boolean isInitialized() { |
153 | 0 | return selectItemWidget.isInitialized(); |
154 | |
} |
155 | |
|
156 | |
public void setInitialized(boolean initialized) { |
157 | 0 | selectItemWidget.setInitialized(initialized); |
158 | 0 | } |
159 | |
|
160 | |
|
161 | |
} |
162 | |
|
163 | |
|