Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/BackButton.java

Diff revisions: vs.
  @@ -1,30 +1,30 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.client.widgets;
3 -
4 - import org.litesoft.uispecification.*;
5 -
6 - import com.google.gwt.user.client.*;
7 -
8 - public class BackButton implements ButtonFactory {
9 - public static final String NAME = "Back";
10 -
11 - public static DefButtonNamedTypedFactory factory() {
12 - return factory( null );
13 - }
14 -
15 - public static DefButtonNamedTypedFactory factory( String pText ) {
16 - return new DefButtonNamed( NAME ).blue().preImageWidth( 12 ).text( pText );
17 - }
18 -
19 - public static DefButtonNamedTypedFactory factory( String pText, Command pCommand ) {
20 - return factory( pText ).add( pCommand );
21 - }
22 -
23 - public static DefButtonNamedTypedFactory factory( String pText, ViewDef pViewDef ) {
24 - return factory( pText ).add( pViewDef );
25 - }
26 -
27 - public static DefButtonNamedTypedFactory factory( String pText, ViewDef pViewDef, UriFragmentIdParams.ScreenParamsFactory pParamsFactory ) {
28 - return factory( pText ).add( pViewDef, pParamsFactory );
29 - }
30 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.client.widgets;
3 +
4 + import org.litesoft.uispecification.*;
5 +
6 + import com.google.gwt.user.client.*;
7 +
8 + public class BackButton implements ButtonFactory {
9 + public static final String NAME = "Back";
10 +
11 + public static DefButtonNamedTypedFactory factory() {
12 + return factory( null );
13 + }
14 +
15 + public static DefButtonNamedTypedFactory factory( String pText ) {
16 + return new DefButtonNamed( NAME ).blue().preImageWidth( 12 ).text( pText );
17 + }
18 +
19 + public static DefButtonNamedTypedFactory factory( String pText, Command pCommand ) {
20 + return factory( pText ).add( pCommand );
21 + }
22 +
23 + public static DefButtonNamedTypedFactory factory( String pText, ViewDef pViewDef ) {
24 + return factory( pText ).add( pViewDef );
25 + }
26 +
27 + public static DefButtonNamedTypedFactory factory( String pText, ViewDef pViewDef, UriFragmentIdParams.ScreenParamsFactory pParamsFactory ) {
28 + return factory( pText ).add( pViewDef, pParamsFactory );
29 + }
30 + }