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
37
38
39
40
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt
package org.litesoft.GWT.client.widgets;

import org.litesoft.commonfoundation.typeutils.*;
import org.litesoft.uispecification.*;

public class NextButton implements ButtonFactory
{
    public static final String NAME = "Next";

    public static DefButtonNamedTypedFactory factory( String pText )
    {
        return new DefButtonNamed( NAME ).green().postImageWidth( 12 ).text( pText );
    }

    public static DefButtonNamedTypedFactory factory()
    {
        return factory( (String) null );
    }

    public static DefButtonNamedTypedFactory factory( ViewDef pTarget )
    {
        return justButtonFactory( pTarget ).add( pTarget );
    }

    public static DefButtonNamedTypedFactory factory( ViewDef pTarget, UriFragmentIdParams.ScreenParamsFactory pFactory )
    {
        return justButtonFactory( pTarget ).add( pTarget, pFactory );
    }

    public static DefButtonNamedTypedFactory justButtonFactory( ViewDef pViewDef )
    {
        return factory().enabledToolTip( toolTip( "", pViewDef ) );
    }

    public static String toolTip( String pPrefix, ViewDef pViewDef )
    {
        return (pViewDef == null) ? "" : Strings.deNull( pPrefix ) + "Advance to the " + pViewDef.getUiString() + " step";
    }
}

Commits for litesoft/trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/NextButton.java

Diff revisions: vs.
Revision Author Commited Message
939 Diff Diff GeorgeS picture GeorgeS Mon 02 Jun, 2014 21:30:31 +0000

Extracting commonfoundation

802 Diff Diff GeorgeS picture GeorgeS Wed 15 Aug, 2012 04:04:47 +0000
500 Diff Diff GeorgeS picture GeorgeS Sun 11 Sep, 2011 21:24:47 +0000
142 Diff Diff GeorgeS picture GeorgeS Sun 13 Mar, 2011 23:01:57 +0000
137 Diff Diff GeorgeS picture GeorgeS Thu 10 Mar, 2011 15:22:37 +0000
136 Diff Diff GeorgeS picture GeorgeS Wed 09 Mar, 2011 21:09:51 +0000
135 Diff Diff GeorgeS picture GeorgeS Wed 09 Mar, 2011 15:19:54 +0000
133 Diff Diff GeorgeS picture GeorgeS Wed 09 Mar, 2011 00:33:28 +0000
49 Diff Diff GeorgeS picture GeorgeS Mon 12 Apr, 2010 02:59:10 +0000

License Text

23 GeorgeS picture GeorgeS Wed 24 Feb, 2010 00:34:32 +0000