litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/sliderbar/client/solution/speedajuster/SpeedAjuster.java
|
@@ -1,36 +1,36 @@ |
1 |
|
- |
package org.litesoft.GWT.client.widgets.sliderbar.client.solution.speedajuster; |
2 |
|
- |
|
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 SpeedAjuster extends SliderBarHorizontal { |
10 |
|
- |
|
11 |
|
- |
ImagesSpeedAjuster images = GWT.create( ImagesSpeedAjuster.class ); |
12 |
|
- |
|
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" ); |
20 |
|
- |
} |
21 |
|
- |
|
22 |
|
- |
interface ImagesSpeedAjuster extends ClientBundle { |
23 |
|
- |
|
24 |
|
- |
@Source("snail.png") |
25 |
|
- |
ImageResource less(); |
26 |
|
- |
|
27 |
|
- |
@Source("runner.png") |
28 |
|
- |
ImageResource more(); |
29 |
|
- |
|
30 |
|
- |
@Source("drag.png") |
31 |
|
- |
ImageResource drag(); |
32 |
|
- |
|
33 |
|
- |
@Source("scale.png") |
34 |
|
- |
DataResource scale(); |
35 |
|
- |
} |
36 |
|
- |
} |
|
1 |
+ |
package org.litesoft.GWT.client.widgets.sliderbar.client.solution.speedajuster; |
|
2 |
+ |
|
|
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 SpeedAjuster extends SliderBarHorizontal { |
|
10 |
+ |
|
|
11 |
+ |
ImagesSpeedAjuster images = GWT.create( ImagesSpeedAjuster.class ); |
|
12 |
+ |
|
|
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" ); |
|
20 |
+ |
} |
|
21 |
+ |
|
|
22 |
+ |
interface ImagesSpeedAjuster extends ClientBundle { |
|
23 |
+ |
|
|
24 |
+ |
@Source("snail.png") |
|
25 |
+ |
ImageResource less(); |
|
26 |
+ |
|
|
27 |
+ |
@Source("runner.png") |
|
28 |
+ |
ImageResource more(); |
|
29 |
+ |
|
|
30 |
+ |
@Source("drag.png") |
|
31 |
+ |
ImageResource drag(); |
|
32 |
+ |
|
|
33 |
+ |
@Source("scale.png") |
|
34 |
+ |
DataResource scale(); |
|
35 |
+ |
} |
|
36 |
+ |
} |