Subversion Repository Public Repository

litesoft

Diff Revisions 954 vs 955 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/view/LoginDialogFactory.java

Diff revisions: vs.
  @@ -22,10 +22,7 @@
22 22 return new LoginDialog<T>( pCancelable, pOnSuccess );
23 23 }
24 24
25 - private static class LoginDialog<T extends SecurityUserView<T>> extends DialogView implements SecurityUserViewNames {
26 - private FormEngine mFE;
27 -
28 - private SecurityUserViewDataProvider<T> mDataProvider;
25 + private static class LoginDialog<T extends SecurityUserView<T>> extends AbstractSecurityDialogView<T> implements SecurityUserViewNames {
29 26 private FormBinder<T> mFormBinder;
30 27 private ButtonBase mSubmitButton;
31 28
  @@ -39,9 +36,6 @@
39 36
40 37 ClientContext zContext = ClientContext.get();
41 38
42 - mDataProvider = zContext.get( SecurityUserViewDataProvider.class );
43 - SecurityUserViewMetaData<T> zUserViewMetaData = zContext.get( SecurityUserViewMetaData.class );
44 -
45 39 WidgetCtrlMap zWidgetCtrlMap = new WidgetCtrlMap( VISIBLE_AND_ACTIVE_ENABLED );
46 40
47 41 zWidgetCtrlMap.add( EDIT_ONLY.required(), aLogonEmail, aCurrentPassword );
  @@ -64,7 +58,7 @@
64 58 }
65 59 }
66 60 };
67 - mFormBinder = new FormBinder<T>( mFE, zUserViewMetaData );
61 + mFormBinder = new FormBinder<T>( mFE, mUserViewMetaData );
68 62
69 63 mContent.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER );
70 64