litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/sliderbar/client/solution/speedajuster/SpeedAjuster.java
|
@@ -1,23 +1,22 @@ |
1 |
1 |
|
package org.litesoft.GWT.client.widgets.sliderbar.client.solution.speedajuster; |
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 SpeedAjuster extends SliderBarHorizontal { |
11 |
10 |
|
|
12 |
|
- |
ImagesSpeedAjuster images = GWT.create(ImagesSpeedAjuster.class); |
|
11 |
+ |
ImagesSpeedAjuster images = GWT.create( ImagesSpeedAjuster.class ); |
13 |
12 |
|
|
14 |
|
- |
public SpeedAjuster(){ |
15 |
|
- |
this.setLessWidget(new Image(images.less())); |
16 |
|
- |
this.setScaleWidget(new Image(images.scale().getUrl()), 20); |
17 |
|
- |
this.setMoreWidget(new Image(images.more())); |
18 |
|
- |
this.setDragWidget(new Image(images.drag())); |
19 |
|
- |
this.setMaxValue(6); |
20 |
|
- |
this.setWidth("148px"); |
|
13 |
+ |
public SpeedAjuster() { |
|
14 |
+ |
this.setLessWidget( new Image( images.less() ) ); |
|
15 |
+ |
this.setScaleWidget( new Image( images.scale().getUrl() ), 20 ); |
|
16 |
+ |
this.setMoreWidget( new Image( images.more() ) ); |
|
17 |
+ |
this.setDragWidget( new Image( images.drag() ) ); |
|
18 |
+ |
this.setMaxValue( 6 ); |
|
19 |
+ |
this.setWidth( "148px" ); |
21 |
20 |
|
} |
22 |
21 |
|
|
23 |
22 |
|
interface ImagesSpeedAjuster extends ClientBundle { |
|
@@ -33,8 +32,5 @@ |
33 |
32 |
|
|
34 |
33 |
|
@Source("scale.png") |
35 |
34 |
|
DataResource scale(); |
36 |
|
- |
|
37 |
35 |
|
} |
38 |
|
- |
|
39 |
|
- |
|
40 |
36 |
|
} |