litesoft
Diff Revisions
629
vs
630
for /trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/WrappingLabel.java
|
@@ -1,13 +1,16 @@ |
1 |
1 |
|
package com.temp.client.foundation.widget; |
2 |
2 |
|
|
3 |
3 |
|
import com.temp.client.foundation.widget.input.support.*; |
|
4 |
+ |
import com.temp.shared.utils.SafeHtmlizer; |
4 |
5 |
|
|
5 |
6 |
|
/** |
6 |
7 |
|
* This Widget is a wrapper around a GWT HTML (Label). |
7 |
8 |
|
* |
8 |
9 |
|
* Its key features are: |
9 |
|
- |
* TODO: XXX |
10 |
|
- |
* <li></li> |
|
10 |
+ |
* <ul> |
|
11 |
+ |
* <li>Leading and trailing whitespace is removed</li> |
|
12 |
+ |
* <li>Text can wrap because embedded spaces are left as spaces (ig the next character is not a space)</li> |
|
13 |
+ |
* </ul> |
11 |
14 |
|
*/ |
12 |
15 |
|
public class WrappingLabel extends TextLabel |
13 |
16 |
|
{ |
|
@@ -31,6 +34,6 @@ |
31 |
34 |
|
@Override |
32 |
35 |
|
protected String normalizeHTML( String text ) |
33 |
36 |
|
{ |
34 |
|
- |
return text; // TODO: XXX |
|
37 |
+ |
return SafeHtmlizer.getInstance().noEmptyLeaveSomeSpaces(text); |
35 |
38 |
|
} |
36 |
39 |
|
} |