litesoft
@ 950
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
package org.litesoft.GWT.client.widgets.sliderbar.client.solution.iph; import org.litesoft.GWT.client.widgets.sliderbar.client.view.*; import com.google.gwt.core.client.*; import com.google.gwt.resources.client.*; import com.google.gwt.user.client.ui.*; public class IpSliderBar51 extends SliderBarHorizontal { ImagesIpSliderBar51 images = GWT.create( ImagesIpSliderBar51.class ); public IpSliderBar51( String leftTxt, String rightTxt ) { IScale iScale = new IScale( leftTxt, rightTxt, 51, 27 ); iScale.setBackGroundImage( new Image( images.scale().getUrl() ) ); this.setLessWidget( new Image( images.moreLess() ) ); setScaleWidget( iScale, 27 ); this.setLessWidget( new Image( images.moreLess() ) ); this.setDragWidget( new Image( images.drag() ) ); iScale.addLeftStyleName( "ip51darlabelsmall" ); iScale.addRightStyleName( "ip51darlabelsmall" ); this.setWidth( "53px" ); this.setMaxValue( 1 ); } interface ImagesIpSliderBar51 extends ClientBundle { @Source("ifml.png") ImageResource moreLess(); @Source("ionoffdrag.png") ImageResource drag(); @Source("ionoffscl.png") DataResource scale(); } } |