1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.ui.theme.standard.client; |
17 |
|
|
18 |
|
import org.kuali.student.common.ui.client.theme.CommonCss; |
19 |
|
|
20 |
|
import com.google.gwt.resources.client.CssResource; |
21 |
|
import com.google.gwt.resources.client.ResourcePrototype; |
22 |
|
|
23 |
|
|
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 7 |
Complexity Density: 0.88 |
|
24 |
|
public class CommonCssImpl implements CommonCss { |
25 |
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 5 |
Complexity Density: 0.83 |
|
26 |
0
|
@Override... |
27 |
|
public String getCssString() { |
28 |
0
|
String injectString = ""; |
29 |
0
|
for(ResourcePrototype r: KSClientBundle.INSTANCE.getResources()){ |
30 |
0
|
if(r instanceof CssResource){ |
31 |
0
|
if(((CssResource)r).getText() != null && !((CssResource)r).getName().contains("resetCss") && !((CssResource)r).getName().contains("fontCss")){ |
32 |
0
|
injectString = injectString + "\n" + (((CssResource)r).getText()); |
33 |
|
} |
34 |
|
} |
35 |
|
} |
36 |
0
|
return injectString; |
37 |
|
} |
38 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
39 |
0
|
@Override... |
40 |
|
public String getResetCssString() { |
41 |
0
|
return ((CssResource)KSClientBundle.INSTANCE.getResource("resetCss")).getText(); |
42 |
|
} |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0
|
@Override... |
45 |
|
public String getInitializeCssString() { |
46 |
0
|
return ((CssResource)KSClientBundle.INSTANCE.getResource("fontCss")).getText(); |
47 |
|
} |
48 |
|
|
49 |
|
} |