Subversion Repository Public Repository

litesoft

Diff Revisions 135 vs 136 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/OKButton.java

Diff revisions: vs.
  @@ -1,12 +1,17 @@
1 1 // This Source Code is in the Public Domain per: http://litesoft.org/License.txt
2 2 package org.litesoft.GWT.client.widgets;
3 3
4 - public class OKButton
4 + public class OKButton implements ButtonFactory
5 5 {
6 6 public static final String NAME = "OK";
7 7
8 8 public static DefButtonNamedTypedFactory factory()
9 9 {
10 - return new DefButtonNamed( NAME ).green().text();
10 + return factory( null );
11 + }
12 +
13 + public static DefButtonNamedTypedFactory factory( String pText )
14 + {
15 + return new DefButtonNamed( NAME ).green().text( pText );
11 16 }
12 17 }