litesoft
Diff Revisions
133
vs
135
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/view/UiView.java
|
@@ -5,6 +5,7 @@ |
5 |
5 |
|
import org.litesoft.GWT.client.command.*; |
6 |
6 |
|
import org.litesoft.GWT.client.widgets.Button; |
7 |
7 |
|
import org.litesoft.GWT.client.widgets.*; |
|
8 |
+ |
import org.litesoft.GWT.client.widgets.SubmitButton; |
8 |
9 |
|
import org.litesoft.GWT.client.widgets.nonpublic.*; |
9 |
10 |
|
import org.litesoft.GWT.forms.client.*; |
10 |
11 |
|
import org.litesoft.GWT.forms.client.components.*; |
|
@@ -206,14 +207,14 @@ |
206 |
207 |
|
protected <T extends IViewObject<T>> ButtonBase createSubmitButton( VoDataProvider<T> pDataProvider, FormBinder<T> pFormBinder, ViewUpdatable<T> pViewUpdatable ) |
207 |
208 |
|
{ |
208 |
209 |
|
UtilsCommon.assertNotNull( "ViewUpdatable", pViewUpdatable ); |
209 |
|
- |
return DefButtonNamed.submit().add( createCommitClickHandler( pDataProvider, pFormBinder, null, pViewUpdatable ) ).create(); |
|
210 |
+ |
return SubmitButton.factory().add( createCommitClickHandler( pDataProvider, pFormBinder, null, pViewUpdatable ) ).create(); |
210 |
211 |
|
} |
211 |
212 |
|
|
212 |
213 |
|
protected <T extends IViewObject<T>> ButtonBase createSubmitButton( VoDataProvider<T> pDataProvider, FormBinder<T> pFormBinder, ViewDef pNavigateToOnSuccess ) |
213 |
214 |
|
{ |
214 |
215 |
|
UtilsCommon.assertNotNull( "NavigateToOnSuccess", pNavigateToOnSuccess ); |
215 |
216 |
|
return Button.named( "SaveClose" ).green().text( "Save & Close" ) // |
216 |
|
- |
.enabledToolTip( DefButtonNamed.SUBMIT_TOOL_TIP + " and then close" ) // |
|
217 |
+ |
.enabledToolTip( SubmitButton.TOOL_TIP + " and then close" ) // |
217 |
218 |
|
.add( createCommitClickHandler( pDataProvider, pFormBinder, pNavigateToOnSuccess, null ) ).create(); |
218 |
219 |
|
} |
219 |
220 |
|
|