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.BlurEvent;
25 import com.google.gwt.event.dom.client.BlurHandler;
26 import com.google.gwt.event.dom.client.FocusEvent;
27 import com.google.gwt.event.dom.client.FocusHandler;
28 import com.google.gwt.event.logical.shared.ValueChangeHandler;
29 import com.google.gwt.event.shared.HandlerRegistration;
30
31
32
33
34
35
36
37
38
39
40
41 public class KSDatePicker extends KSDatePickerAbstract implements HasWatermark {
42 KSDatePickerAbstract datePicker = GWT.create(KSDatePickerImpl.class);
43
44
45
46
47
48 public KSDatePicker() {
49 this.initWidget(datePicker);
50
51 }
52
53
54
55
56
57
58 @Override
59 public Date getValue() {
60 return datePicker.getValue();
61 }
62
63
64
65
66
67
68 @Override
69 public void setValue(Date date) {
70 datePicker.setValue(date);
71 }
72
73
74
75
76 @Override
77 public void setValue(Date date, boolean fireEvents) {
78 datePicker.setValue(date, fireEvents);
79 }
80
81
82
83
84 @Override
85 public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Date> handler) {
86 return datePicker.addValueChangeHandler(handler);
87 }
88
89 @Override
90 public HandlerRegistration addFocusHandler(FocusHandler handler) {
91 return datePicker.addFocusHandler(handler);
92 }
93
94 @Override
95 public HandlerRegistration addBlurHandler(BlurHandler handler) {
96 return datePicker.addBlurHandler(handler);
97 }
98
99 @Override
100 public boolean hasWatermark() {
101 return datePicker.hasWatermark();
102 }
103
104 @Override
105 public void setWatermarkText(String waterMark) {
106 datePicker.setWatermarkText(waterMark);
107 }
108
109 @Override
110 public boolean watermarkShowing() {
111 return datePicker.watermarkShowing();
112 }
113
114
115 }