|
@@ -1,36 +1,36 @@ |
1 |
|
- |
package org.litesoft.GWT.client.widgets.sliderbar.client.solution.iph; |
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 IpSliderBar51 extends SliderBarHorizontal { |
10 |
|
- |
|
11 |
|
- |
ImagesIpSliderBar51 images = GWT.create( ImagesIpSliderBar51.class ); |
12 |
|
- |
|
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 ); |
24 |
|
- |
} |
25 |
|
- |
|
26 |
|
- |
interface ImagesIpSliderBar51 extends ClientBundle { |
27 |
|
- |
@Source("ifml.png") |
28 |
|
- |
ImageResource moreLess(); |
29 |
|
- |
|
30 |
|
- |
@Source("ionoffdrag.png") |
31 |
|
- |
ImageResource drag(); |
32 |
|
- |
|
33 |
|
- |
@Source("ionoffscl.png") |
34 |
|
- |
DataResource scale(); |
35 |
|
- |
} |
36 |
|
- |
} |
|
1 |
+ |
package org.litesoft.GWT.client.widgets.sliderbar.client.solution.iph; |
|
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 IpSliderBar51 extends SliderBarHorizontal { |
|
10 |
+ |
|
|
11 |
+ |
ImagesIpSliderBar51 images = GWT.create( ImagesIpSliderBar51.class ); |
|
12 |
+ |
|
|
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 ); |
|
24 |
+ |
} |
|
25 |
+ |
|
|
26 |
+ |
interface ImagesIpSliderBar51 extends ClientBundle { |
|
27 |
+ |
@Source("ifml.png") |
|
28 |
+ |
ImageResource moreLess(); |
|
29 |
+ |
|
|
30 |
+ |
@Source("ionoffdrag.png") |
|
31 |
+ |
ImageResource drag(); |
|
32 |
+ |
|
|
33 |
+ |
@Source("ionoffscl.png") |
|
34 |
+ |
DataResource scale(); |
|
35 |
+ |
} |
|
36 |
+ |
} |