Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/NonWrappingLabel.java

Diff revisions: vs.
  @@ -1,7 +1,7 @@
1 1 package com.temp.client.foundation.widget;
2 2
3 - import com.temp.client.foundation.widget.input.support.TextLabel;
4 - import com.temp.shared.utils.SafeHtmlizer;
3 + import com.temp.client.foundation.widget.input.support.*;
4 + import com.temp.shared.utils.*;
5 5
6 6 /**
7 7 * This Widget is a wrapper around a GWT HTML (Label).
  @@ -14,26 +14,27 @@
14 14 */
15 15 public class NonWrappingLabel extends TextLabel {
16 16 public NonWrappingLabel() {
17 - initWidget(htmlWidget);
17 + initWidget( htmlWidget );
18 18 }
19 19
20 - public NonWrappingLabel(String text, boolean preserveLeadingAndTrailingWhiteSpace) {
20 + public NonWrappingLabel( String text, boolean preserveLeadingAndTrailingWhiteSpace ) {
21 21 this();
22 - if (preserveLeadingAndTrailingWhiteSpace)
23 - setTextNoTrim(text);
24 - else
25 - setText(text);
22 + if ( preserveLeadingAndTrailingWhiteSpace ) {
23 + setTextNoTrim( text );
24 + } else {
25 + setText( text );
26 + }
26 27 }
27 28
28 - public NonWrappingLabel(String text) {
29 - this(text, false);
29 + public NonWrappingLabel( String text ) {
30 + this( text, false );
30 31 }
31 32
32 33 /**
33 34 * @param text will NOT be null but MAT have leading/trailing whitespace
34 35 */
35 36 @Override
36 - protected String normalizeHTML(String text) {
37 - return SafeHtmlizer.getInstance().noEmpty(text);
37 + protected String normalizeHTML( String text ) {
38 + return SafeHtmlizer.getInstance().noEmpty( text );
38 39 }
39 40 }