Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/sliderbar/client/solution/iph/IpSliderBar51.java

Diff revisions: vs.
  @@ -1,36 +1,36 @@
1 1 package org.litesoft.GWT.client.widgets.sliderbar.client.solution.iph;
2 2
3 - import com.google.gwt.core.client.GWT;
4 - import com.google.gwt.resources.client.ClientBundle;
5 - import com.google.gwt.resources.client.DataResource;
6 - import com.google.gwt.resources.client.ImageResource;
7 - import com.google.gwt.user.client.ui.Image;
8 - import org.litesoft.GWT.client.widgets.sliderbar.client.view.SliderBarHorizontal;
3 + import org.litesoft.GWT.client.widgets.sliderbar.client.view.*;
4 +
5 + import com.google.gwt.core.client.*;
6 + import com.google.gwt.resources.client.*;
7 + import com.google.gwt.user.client.ui.*;
9 8
10 9 public class IpSliderBar51 extends SliderBarHorizontal {
11 10
12 - ImagesIpSliderBar51 images = GWT.create(ImagesIpSliderBar51.class);
11 + ImagesIpSliderBar51 images = GWT.create( ImagesIpSliderBar51.class );
13 12
14 - public IpSliderBar51(String leftTxt, String rightTxt){
15 - IScale iScale = new IScale(leftTxt, rightTxt, 51, 27);
16 - iScale.setBackGroundImage(new Image(images.scale().getUrl()));
17 - this.setLessWidget(new Image(images.moreLess()));
18 - setScaleWidget(iScale, 27);
19 - this.setLessWidget(new Image(images.moreLess()));
20 - this.setDragWidget(new Image(images.drag()));
21 - iScale.addLeftStyleName("ip51darlabelsmall");
22 - iScale.addRightStyleName("ip51darlabelsmall");
23 - this.setWidth("53px");
24 - this.setMaxValue(1);
13 + public IpSliderBar51( String leftTxt, String rightTxt ) {
14 + IScale iScale = new IScale( leftTxt, rightTxt, 51, 27 );
15 + iScale.setBackGroundImage( new Image( images.scale().getUrl() ) );
16 + this.setLessWidget( new Image( images.moreLess() ) );
17 + setScaleWidget( iScale, 27 );
18 + this.setLessWidget( new Image( images.moreLess() ) );
19 + this.setDragWidget( new Image( images.drag() ) );
20 + iScale.addLeftStyleName( "ip51darlabelsmall" );
21 + iScale.addRightStyleName( "ip51darlabelsmall" );
22 + this.setWidth( "53px" );
23 + this.setMaxValue( 1 );
25 24 }
26 25
27 26 interface ImagesIpSliderBar51 extends ClientBundle {
28 27 @Source("ifml.png")
29 28 ImageResource moreLess();
29 +
30 30 @Source("ionoffdrag.png")
31 31 ImageResource drag();
32 +
32 33 @Source("ionoffscl.png")
33 34 DataResource scale();
34 35 }
35 -
36 36 }