Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -1,23 +1,22 @@
1 1 package org.litesoft.GWT.client.widgets.sliderbar.client.solution.sizeajuster;
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;
9 -
10 - public class SizeAjuster extends SliderBarHorizontal{
11 -
12 - ImagesSizeAjuster images = GWT.create(ImagesSizeAjuster.class);
13 -
14 - public SizeAjuster(){
15 - this.setLessWidget(new Image(images.less()));
16 - this.setScaleWidget(new Image(images.scale().getUrl()), 4);
17 - this.setMoreWidget(new Image(images.more()));
18 - this.setDragWidget(new Image(images.drag()));
19 - this.setMaxValue(4);
20 - this.setWidth("148px");
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.*;
8 +
9 + public class SizeAjuster extends SliderBarHorizontal {
10 +
11 + ImagesSizeAjuster images = GWT.create( ImagesSizeAjuster.class );
12 +
13 + public SizeAjuster() {
14 + this.setLessWidget( new Image( images.less() ) );
15 + this.setScaleWidget( new Image( images.scale().getUrl() ), 4 );
16 + this.setMoreWidget( new Image( images.more() ) );
17 + this.setDragWidget( new Image( images.drag() ) );
18 + this.setMaxValue( 4 );
19 + this.setWidth( "148px" );
21 20 }
22 21
23 22 interface ImagesSizeAjuster extends ClientBundle {
  @@ -33,8 +32,5 @@
33 32
34 33 @Source("scale.png")
35 34 DataResource scale();
36 -
37 35 }
38 -
39 -
40 36 }