|
@@ -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 IpSliderBar146 extends SliderBarHorizontal { |
11 |
10 |
|
|
12 |
|
- |
ImagesIpSliderBar146 images = GWT.create(ImagesIpSliderBar146.class); |
|
11 |
+ |
ImagesIpSliderBar146 images = GWT.create( ImagesIpSliderBar146.class ); |
13 |
12 |
|
|
14 |
|
- |
public IpSliderBar146(String leftTxt, String rightTxt){ |
15 |
|
- |
IScale iScale = new IScale(leftTxt, rightTxt, 146, 27); |
16 |
|
- |
iScale.addLeftStyleName("ip146whitelabel"); |
17 |
|
- |
iScale.addRightStyleName("ip146dgreylabel"); |
18 |
|
- |
iScale.setBackGroundImage(new Image(images.scale().getUrl())); |
19 |
|
- |
this.setLessWidget(new Image(images.moreLess())); |
20 |
|
- |
setScaleWidget(iScale, 27); |
21 |
|
- |
this.setLessWidget(new Image(images.moreLess())); |
22 |
|
- |
this.setDragWidget(new Image(images.drag())); |
23 |
|
- |
this.setWidth("148px"); |
24 |
|
- |
this.setMaxValue(1); |
|
13 |
+ |
public IpSliderBar146( String leftTxt, String rightTxt ) { |
|
14 |
+ |
IScale iScale = new IScale( leftTxt, rightTxt, 146, 27 ); |
|
15 |
+ |
iScale.addLeftStyleName( "ip146whitelabel" ); |
|
16 |
+ |
iScale.addRightStyleName( "ip146dgreylabel" ); |
|
17 |
+ |
iScale.setBackGroundImage( new Image( images.scale().getUrl() ) ); |
|
18 |
+ |
this.setLessWidget( new Image( images.moreLess() ) ); |
|
19 |
+ |
setScaleWidget( iScale, 27 ); |
|
20 |
+ |
this.setLessWidget( new Image( images.moreLess() ) ); |
|
21 |
+ |
this.setDragWidget( new Image( images.drag() ) ); |
|
22 |
+ |
this.setWidth( "148px" ); |
|
23 |
+ |
this.setMaxValue( 1 ); |
25 |
24 |
|
} |
26 |
25 |
|
|
27 |
26 |
|
interface ImagesIpSliderBar146 extends ClientBundle { |
28 |
27 |
|
@Source("ifml.png") |
29 |
28 |
|
ImageResource moreLess(); |
|
29 |
+ |
|
30 |
30 |
|
@Source("ifmdrag.png") |
31 |
31 |
|
ImageResource drag(); |
|
32 |
+ |
|
32 |
33 |
|
@Source("ifmscl.png") |
33 |
34 |
|
DataResource scale(); |
34 |
35 |
|
} |
35 |
|
- |
|
36 |
36 |
|
} |