Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/NextButton.java

Diff revisions: vs.
  @@ -4,37 +4,30 @@
4 4 import org.litesoft.commonfoundation.typeutils.*;
5 5 import org.litesoft.uispecification.*;
6 6
7 - public class NextButton implements ButtonFactory
8 - {
7 + public class NextButton implements ButtonFactory {
9 8 public static final String NAME = "Next";
10 9
11 - public static DefButtonNamedTypedFactory factory( String pText )
12 - {
10 + public static DefButtonNamedTypedFactory factory( String pText ) {
13 11 return new DefButtonNamed( NAME ).green().postImageWidth( 12 ).text( pText );
14 12 }
15 13
16 - public static DefButtonNamedTypedFactory factory()
17 - {
14 + public static DefButtonNamedTypedFactory factory() {
18 15 return factory( (String) null );
19 16 }
20 17
21 - public static DefButtonNamedTypedFactory factory( ViewDef pTarget )
22 - {
18 + public static DefButtonNamedTypedFactory factory( ViewDef pTarget ) {
23 19 return justButtonFactory( pTarget ).add( pTarget );
24 20 }
25 21
26 - public static DefButtonNamedTypedFactory factory( ViewDef pTarget, UriFragmentIdParams.ScreenParamsFactory pFactory )
27 - {
22 + public static DefButtonNamedTypedFactory factory( ViewDef pTarget, UriFragmentIdParams.ScreenParamsFactory pFactory ) {
28 23 return justButtonFactory( pTarget ).add( pTarget, pFactory );
29 24 }
30 25
31 - public static DefButtonNamedTypedFactory justButtonFactory( ViewDef pViewDef )
32 - {
26 + public static DefButtonNamedTypedFactory justButtonFactory( ViewDef pViewDef ) {
33 27 return factory().enabledToolTip( toolTip( "", pViewDef ) );
34 28 }
35 29
36 - public static String toolTip( String pPrefix, ViewDef pViewDef )
37 - {
30 + public static String toolTip( String pPrefix, ViewDef pViewDef ) {
38 31 return (pViewDef == null) ? "" : Strings.deNull( pPrefix ) + "Advance to the " + pViewDef.getUiString() + " step";
39 32 }
40 33 }