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 |
|
@author |
39 |
|
|
40 |
|
|
|
|
| 0% |
Uncovered Elements: 20 (20) |
Complexity: 10 |
Complexity Density: 1 |
|
41 |
|
public class KSDatePicker extends KSDatePickerAbstract implements HasWatermark { |
42 |
|
KSDatePickerAbstract datePicker = GWT.create(KSDatePickerImpl.class); |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
0
|
public KSDatePicker() {... |
49 |
0
|
this.initWidget(datePicker); |
50 |
|
|
51 |
|
} |
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
@return |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
0
|
@Override... |
59 |
|
public Date getValue() { |
60 |
0
|
return datePicker.getValue(); |
61 |
|
} |
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
@param |
67 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
0
|
@Override... |
69 |
|
public void setValue(Date date) { |
70 |
0
|
datePicker.setValue(date); |
71 |
|
} |
72 |
|
|
73 |
|
|
74 |
|
@see |
75 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
0
|
@Override... |
77 |
|
public void setValue(Date date, boolean fireEvents) { |
78 |
0
|
datePicker.setValue(date, fireEvents); |
79 |
|
} |
80 |
|
|
81 |
|
|
82 |
|
@see |
83 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
0
|
@Override... |
85 |
|
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Date> handler) { |
86 |
0
|
return datePicker.addValueChangeHandler(handler); |
87 |
|
} |
88 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
89 |
0
|
@Override... |
90 |
|
public HandlerRegistration addFocusHandler(FocusHandler handler) { |
91 |
0
|
return datePicker.addFocusHandler(handler); |
92 |
|
} |
93 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
0
|
@Override... |
95 |
|
public HandlerRegistration addBlurHandler(BlurHandler handler) { |
96 |
0
|
return datePicker.addBlurHandler(handler); |
97 |
|
} |
98 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
0
|
@Override... |
100 |
|
public boolean hasWatermark() { |
101 |
0
|
return datePicker.hasWatermark(); |
102 |
|
} |
103 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
104 |
0
|
@Override... |
105 |
|
public void setWatermarkText(String waterMark) { |
106 |
0
|
datePicker.setWatermarkText(waterMark); |
107 |
|
} |
108 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
109 |
0
|
@Override... |
110 |
|
public boolean watermarkShowing() { |
111 |
0
|
return datePicker.watermarkShowing(); |
112 |
|
} |
113 |
|
|
114 |
|
|
115 |
|
} |