Subversion Repository Public Repository

litesoft

Diff Revisions 23 vs 44 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/SizeableLabel.java

Diff revisions: vs.
  @@ -1,16 +1,16 @@
1 1 package org.litesoft.GWT.client.widgets;
2 2
3 - import com.google.gwt.user.client.*;
4 - import com.google.gwt.user.client.ui.*;
5 3 import org.litesoft.GWT.client.widgets.nonpublic.*;
6 4
5 + import com.google.gwt.user.client.ui.*;
6 +
7 7 public class SizeableLabel extends AbstractSizeableComposite implements SourcesClickEvents
8 8 {
9 - protected Label mLabel = new Label( "", false );
9 + protected OurLabel mLabel = new OurLabel( false );
10 10
11 11 public SizeableLabel( String pLabelText, boolean pAsHTML )
12 12 {
13 - LLsetText( pLabelText, pAsHTML );
13 + mLabel.setText( pLabelText, pAsHTML );
14 14 initWidget( new ConstrainingSizeableOuterLayers( mLabel, "LayoutSizeableLabel" ) );
15 15 }
16 16
  @@ -26,22 +26,10 @@
26 26
27 27 public void setText( String pLabelText, boolean pAsHTML )
28 28 {
29 - LLsetText( pLabelText, pAsHTML );
29 + mLabel.setText( pLabelText, pAsHTML );
30 30 relayout();
31 31 }
32 32
33 - private void LLsetText( String pLabelText, boolean pAsHTML )
34 - {
35 - if ( pAsHTML )
36 - {
37 - DOM.setInnerHTML( mLabel.getElement(), pLabelText );
38 - }
39 - else
40 - {
41 - DOM.setInnerText( mLabel.getElement(), pLabelText );
42 - }
43 - }
44 -
45 33 public SizeableLabel style( String pName )
46 34 {
47 35 addStyleName( pName );