1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.client.widgets;
17
18
19 import java.util.Date;
20
21 import org.kuali.student.common.ui.client.widgets.impl.KSDatePickerImpl;
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.logical.shared.ValueChangeHandler;
27 import com.google.gwt.event.shared.HandlerRegistration;
28
29
30
31
32
33
34
35
36
37
38
39 public class KSDatePicker extends KSDatePickerAbstract implements HasWatermark {
40 KSDatePickerAbstract datePicker = GWT.create(KSDatePickerImpl.class);
41
42
43
44
45
46 public KSDatePicker() {
47 this.initWidget(datePicker);
48
49 }
50
51
52
53
54
55
56 @Override
57 public Date getValue() {
58 return datePicker.getValue();
59 }
60
61
62
63
64
65
66 @Override
67 public void setValue(Date date) {
68 datePicker.setValue(date);
69 }
70
71
72
73
74 @Override
75 public void setValue(Date date, boolean fireEvents) {
76 datePicker.setValue(date, fireEvents);
77 }
78
79
80
81
82 @Override
83 public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Date> handler) {
84 return datePicker.addValueChangeHandler(handler);
85 }
86
87 @Override
88 public HandlerRegistration addFocusHandler(FocusHandler handler) {
89 return datePicker.addFocusHandler(handler);
90 }
91
92 @Override
93 public HandlerRegistration addBlurHandler(BlurHandler handler) {
94 return datePicker.addBlurHandler(handler);
95 }
96
97 @Override
98 public boolean hasWatermark() {
99 return datePicker.hasWatermark();
100 }
101
102 @Override
103 public void setWatermarkText(String waterMark) {
104 datePicker.setWatermarkText(waterMark);
105 }
106
107 @Override
108 public boolean watermarkShowing() {
109 return datePicker.watermarkShowing();
110 }
111
112
113 }