litesoft
Diff Revisions
49
vs
138
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/SaveButton.java
|
@@ -1,12 +1,22 @@ |
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 |
|
- |
import com.google.gwt.event.dom.client.*; |
5 |
|
- |
|
6 |
|
- |
public class SaveButton extends RegButton |
|
4 |
+ |
public class SaveButton implements ButtonFactory |
7 |
5 |
|
{ |
8 |
|
- |
public SaveButton( ClickHandler pHandler ) |
|
6 |
+ |
public static final String NAME = "Save"; |
|
7 |
+ |
|
|
8 |
+ |
public static DefButtonNamedTypedFactory factory() |
|
9 |
+ |
{ |
|
10 |
+ |
return factory( null ); |
|
11 |
+ |
} |
|
12 |
+ |
|
|
13 |
+ |
public static DefButtonNamedTypedFactory factory( String pText ) |
9 |
14 |
|
{ |
10 |
|
- |
super( "Save Progress", "Save Physical Inventory Count", "", pHandler ); |
|
15 |
+ |
return new DefButtonNamed( NAME ).regular().text( pText ); |
11 |
16 |
|
} |
|
17 |
+ |
|
|
18 |
+ |
// public SaveButton( ClickHandler pHandler ) |
|
19 |
+ |
// { |
|
20 |
+ |
// super( "Save Progress", "Save Physical Inventory Count", "", pHandler ); |
|
21 |
+ |
// } |
12 |
22 |
|
} |