1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.ui.client.widgets.impl; |
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
import org.kuali.student.common.ui.client.widgets.KSRichEditorAbstract; |
21 |
|
|
22 |
|
import com.google.gwt.event.dom.client.BlurHandler; |
23 |
|
import com.google.gwt.event.dom.client.FocusHandler; |
24 |
|
import com.google.gwt.event.shared.HandlerRegistration; |
25 |
|
import com.google.gwt.user.client.ui.RichTextArea; |
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
|
|
| 0% |
Uncovered Elements: 20 (20) |
Complexity: 10 |
Complexity Density: 1 |
|
31 |
|
public class KSRichEditorImpl extends KSRichEditorAbstract { |
32 |
|
private final RichTextArea textArea = new RichTextArea(); |
33 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
34 |
0
|
public KSRichEditorImpl(){... |
35 |
0
|
init(); |
36 |
|
} |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
38 |
0
|
@Override... |
39 |
|
public String getHTML() { |
40 |
0
|
return textArea.getHTML(); |
41 |
|
} |
42 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
43 |
0
|
@Override... |
44 |
|
public RichTextArea getRichTextArea() { |
45 |
0
|
return textArea; |
46 |
|
} |
47 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
0
|
@Override... |
49 |
|
public String getText() { |
50 |
0
|
return textArea.getText(); |
51 |
|
} |
52 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
0
|
@Override... |
54 |
|
protected void init() { |
55 |
0
|
this.initWidget(textArea); |
56 |
|
} |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
0
|
@Override... |
59 |
|
public void setHTML(String html) { |
60 |
0
|
textArea.setHTML(html); |
61 |
|
} |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0
|
@Override... |
64 |
|
public void setStyleName(String style) { |
65 |
0
|
textArea.setStyleName(style); |
66 |
|
|
67 |
|
} |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0
|
@Override... |
70 |
|
public void setText(String text) { |
71 |
0
|
textArea.setText(text); |
72 |
|
} |
73 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
0
|
@Override... |
75 |
|
public HandlerRegistration addBlurHandler(BlurHandler handler) { |
76 |
0
|
return textArea.addBlurHandler(handler); |
77 |
|
} |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
0
|
@Override... |
80 |
|
public HandlerRegistration addFocusHandler(FocusHandler handler) { |
81 |
0
|
return textArea.addFocusHandler(handler); |
82 |
|
} |
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
} |