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 |
|
import org.kuali.student.common.ui.client.util.DebugIdUtils; |
19 |
|
import org.kuali.student.common.ui.client.widgets.impl.KSButtonImpl; |
20 |
|
|
21 |
|
import com.google.gwt.core.client.GWT; |
22 |
|
import com.google.gwt.event.dom.client.ClickHandler; |
23 |
|
import com.google.gwt.event.dom.client.MouseOutHandler; |
24 |
|
import com.google.gwt.event.dom.client.MouseOverHandler; |
25 |
|
import com.google.gwt.event.shared.HandlerRegistration; |
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
@author |
34 |
|
|
35 |
|
|
|
|
| 0% |
Uncovered Elements: 49 (49) |
Complexity: 20 |
Complexity Density: 0.69 |
|
36 |
|
public class KSButton extends KSButtonAbstract { |
37 |
|
|
38 |
|
KSButtonAbstract button = GWT.create(KSButtonImpl.class); |
39 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
40 |
0
|
public boolean isEnabled() {... |
41 |
0
|
return button.isEnabled(); |
42 |
|
} |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0
|
public void setEnabled(boolean enabled) {... |
45 |
0
|
button.setEnabled(enabled); |
46 |
|
} |
47 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
48 |
0
|
public KSButton() {... |
49 |
0
|
this.init(); |
50 |
0
|
this.initWidget(button); |
51 |
|
} |
52 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
53 |
0
|
public KSButton(String text, ClickHandler handler) {... |
54 |
0
|
this.init(text, handler); |
55 |
0
|
this.initWidget(button); |
56 |
0
|
button.ensureDebugId(DebugIdUtils.createWebDriverSafeDebugId(text)); |
57 |
|
} |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
59 |
0
|
public KSButton(String text) {... |
60 |
0
|
this.init(text); |
61 |
0
|
this.initWidget(button); |
62 |
0
|
button.ensureDebugId(DebugIdUtils.createWebDriverSafeDebugId(text)); |
63 |
|
} |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
65 |
0
|
public KSButton(String text, ButtonStyle style) {... |
66 |
0
|
this.init(text, style); |
67 |
0
|
this.initWidget(button); |
68 |
0
|
button.ensureDebugId(DebugIdUtils.createWebDriverSafeDebugId(text)); |
69 |
|
} |
70 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
71 |
0
|
public KSButton(String text, ButtonStyle style, ClickHandler handler) {... |
72 |
0
|
this.init(text, style, handler); |
73 |
0
|
this.initWidget(button); |
74 |
0
|
button.ensureDebugId(DebugIdUtils.createWebDriverSafeDebugId(text)); |
75 |
|
} |
76 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
0
|
public void setText(String text) {... |
78 |
0
|
button.setText(text); |
79 |
|
} |
80 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
0
|
@Override... |
82 |
|
public HandlerRegistration addClickHandler(ClickHandler handler) { |
83 |
0
|
return button.addClickHandler(handler); |
84 |
|
} |
85 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
86 |
0
|
@Override... |
87 |
|
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) { |
88 |
0
|
return button.addMouseOverHandler(handler); |
89 |
|
} |
90 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
0
|
@Override... |
92 |
|
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { |
93 |
0
|
return button.addMouseOutHandler(handler); |
94 |
|
} |
95 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
96 |
0
|
@Override... |
97 |
|
public void init() { |
98 |
0
|
button.init(); |
99 |
|
} |
100 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
101 |
0
|
@Override... |
102 |
|
public void init(String text) { |
103 |
0
|
button.init(text); |
104 |
|
} |
105 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
106 |
0
|
@Override... |
107 |
|
public void init(String text, ButtonStyle style) { |
108 |
0
|
button.init(text, style); |
109 |
|
} |
110 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
0
|
public void init(String text, ButtonStyle style, ClickHandler handler) {... |
112 |
0
|
button.init(text, style, handler); |
113 |
|
} |
114 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
0
|
@Override... |
116 |
|
public void init(String text, ClickHandler handler) { |
117 |
0
|
button.init(text, handler); |
118 |
|
} |
119 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
120 |
0
|
@Override... |
121 |
|
public void addStyleName(String style) { |
122 |
0
|
button.addStyleName(style); |
123 |
|
} |
124 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
125 |
0
|
@Override... |
126 |
|
public void removeStyleName(String style) { |
127 |
0
|
button.removeStyleName(style); |
128 |
|
} |
129 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
130 |
0
|
@Override... |
131 |
|
public void setStyleName(String style) { |
132 |
0
|
button.setStyleName(style); |
133 |
|
} |
134 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
135 |
0
|
@Override... |
136 |
|
protected void onEnsureDebugId(String baseID) { |
137 |
0
|
button.ensureDebugId(baseID); |
138 |
|
} |
139 |
|
|
140 |
|
|
141 |
|
|
142 |
|
} |