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 |
|
|
20 |
|
import org.kuali.student.common.ui.client.widgets.impl.KSRichEditorImpl; |
21 |
|
|
22 |
|
import com.google.gwt.core.client.GWT; |
23 |
|
import com.google.gwt.event.dom.client.BlurHandler; |
24 |
|
import com.google.gwt.event.dom.client.FocusHandler; |
25 |
|
import com.google.gwt.event.shared.HandlerRegistration; |
26 |
|
import com.google.gwt.user.client.ui.HasText; |
27 |
|
import com.google.gwt.user.client.ui.RichTextArea; |
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
|
|
| 0% |
Uncovered Elements: 20 (20) |
Complexity: 10 |
Complexity Density: 1 |
|
37 |
|
public class KSRichEditor extends KSRichEditorAbstract implements HasText{ |
38 |
|
private KSRichEditorAbstract richEditor = GWT.create(KSRichEditorImpl.class); |
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0
|
public KSRichEditor(){... |
45 |
0
|
initWidget(richEditor); |
46 |
|
} |
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
@return |
52 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
0
|
public RichTextArea getRichTextArea(){... |
54 |
0
|
return richEditor.getRichTextArea(); |
55 |
|
} |
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
@return |
61 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
0
|
public String getHTML() {... |
63 |
0
|
return richEditor.getHTML(); |
64 |
|
} |
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
@return |
70 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
0
|
public String getText() {... |
72 |
0
|
return richEditor.getText(); |
73 |
|
} |
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
@param |
79 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
0
|
public void setHTML(String html) {... |
81 |
0
|
richEditor.setHTML(html); |
82 |
|
} |
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
@param |
88 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
89 |
0
|
public void setText(String text) {... |
90 |
0
|
richEditor.setText(text); |
91 |
|
} |
92 |
|
|
93 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
0
|
@Override... |
95 |
|
public void setStyleName(String text) { |
96 |
0
|
richEditor.setStyleName(text); |
97 |
|
} |
98 |
|
|
99 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
0
|
@Override... |
101 |
|
public HandlerRegistration addBlurHandler(BlurHandler handler) { |
102 |
0
|
return richEditor.addBlurHandler(handler); |
103 |
|
} |
104 |
|
|
105 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
106 |
0
|
@Override... |
107 |
|
public HandlerRegistration addFocusHandler(FocusHandler handler) { |
108 |
0
|
return richEditor.addFocusHandler(handler); |
109 |
|
} |
110 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
0
|
@Override... |
112 |
|
protected void init() { |
113 |
0
|
richEditor.init(); |
114 |
|
|
115 |
|
} |
116 |
|
} |