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

import org.litesoft.commonfoundation.base.*;
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) ? "" : ConstrainTo.notNull( 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
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

947 Diff Diff GeorgeS picture GeorgeS Fri 06 Jun, 2014 23:36:56 +0000

Correct Spelling of package!

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 GeorgeS picture GeorgeS Wed 09 Mar, 2011 15:19:54 +0000