Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/OurLabel.java

Diff revisions: vs.
  @@ -7,49 +7,38 @@
7 7 import com.google.gwt.user.client.*;
8 8 import com.google.gwt.user.client.ui.*;
9 9
10 - public class OurLabel extends Label
11 - {
12 - public OurLabel( String text )
13 - {
10 + public class OurLabel extends Label {
11 + public OurLabel( String text ) {
14 12 super( text );
15 13 }
16 14
17 - public OurLabel( String text, boolean wordWrap )
18 - {
15 + public OurLabel( String text, boolean wordWrap ) {
19 16 super( text, wordWrap );
20 17 }
21 18
22 - public OurLabel( boolean wordWrap )
23 - {
19 + public OurLabel( boolean wordWrap ) {
24 20 super( "", wordWrap );
25 21 }
26 22
27 - public OurLabel style( String pStyle )
28 - {
23 + public OurLabel style( String pStyle ) {
29 24 setStyleName( pStyle );
30 25 return this;
31 26 }
32 27
33 28 @Override
34 - public void setText( String text )
35 - {
29 + public void setText( String text ) {
36 30 setText( text, false );
37 31 }
38 32
39 - public void setText( String pLabelText, boolean pAsHTML )
40 - {
33 + public void setText( String pLabelText, boolean pAsHTML ) {
41 34 pLabelText = Strings.deNull( pLabelText );
42 - if ( pLabelText.length() == 0 )
43 - {
35 + if ( pLabelText.length() == 0 ) {
44 36 pLabelText = HTMLConstants.NBSP;
45 37 pAsHTML = true;
46 38 }
47 - if ( pAsHTML )
48 - {
39 + if ( pAsHTML ) {
49 40 DOM.setInnerHTML( getElement(), pLabelText );
50 - }
51 - else
52 - {
41 + } else {
53 42 DOM.setInnerText( getElement(), pLabelText );
54 43 }
55 44 }