Subversion Repository Public Repository

litesoft

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.sizeajuster;

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 SizeAjuster extends SliderBarHorizontal {

    ImagesSizeAjuster images = GWT.create( ImagesSizeAjuster.class );

    public SizeAjuster() {
        this.setLessWidget( new Image( images.less() ) );
        this.setScaleWidget( new Image( images.scale().getUrl() ), 4 );
        this.setMoreWidget( new Image( images.more() ) );
        this.setDragWidget( new Image( images.drag() ) );
        this.setMaxValue( 4 );
        this.setWidth( "148px" );
    }

    interface ImagesSizeAjuster extends ClientBundle {

        @Source("portraitless.png")
        ImageResource less();

        @Source("portraitmore.png")
        ImageResource more();

        @Source("drag.png")
        ImageResource drag();

        @Source("scale.png")
        DataResource scale();
    }
}

Commits for litesoft/trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/sliderbar/client/solution/sizeajuster/SizeAjuster.java

Diff revisions: vs.
Revision Author Commited Message
950 Diff Diff GeorgeS picture GeorgeS Thu 19 Jun, 2014 17:57:04 +0000

New Lines

948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

917 GeorgeS picture GeorgeS Sun 08 Dec, 2013 20:49:56 +0000

1.7 prep & VersionedStaticContentFilter upgrade to new “/ver” model!