Subversion Repository Public Repository

litesoft

Diff Revisions 479 vs 480 for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/client/ui/views/SuspendDialog.java

Diff revisions: vs.
  @@ -8,6 +8,7 @@
8 8 import org.litesoft.bo.views.*;
9 9 import org.litesoft.core.*;
10 10 import org.litesoft.core.util.*;
11 + import org.litesoft.prioritizer.client.accessors.*;
11 12 import org.litesoft.prioritizer.client.boviews.*;
12 13
13 14 import com.google.gwt.core.client.*;
  @@ -18,11 +19,11 @@
18 19 import static org.litesoft.uispecification.FormWidgetAspectCtrl.*;
19 20 import static org.litesoft.uispecification.FormWidgetCtrl.*;
20 21
21 - public class SuspendDialog extends DialogView implements UserViewNames
22 + public class SuspendDialog extends DialogView implements SecurityUserViewNames
22 23 {
23 24 private FormEngine mFE;
24 25
25 - private UserViewDataProvider mDataProvider = UserViewDataProvider.getInstance();
26 + private UserViewDataProvider mDataProvider; // todo: need to convert to SecurityUserViewDataProvider
26 27 private FormBinder<UserView> mFormBinder;
27 28 private ButtonBase mSubmitButton;
28 29
  @@ -33,7 +34,12 @@
33 34 super( Opaqueness.Full );
34 35 UtilsCommon.assertNotNull( "LogoutCallBack", mLogoutCallBack = pLogoutCallBack );
35 36
36 - UserView zUser = ClientContext.get().get( CurrentUserViewAccessor.class ).getUser();
37 + ClientContext zContext = ClientContext.get();
38 +
39 + mDataProvider = UserViewDataProvider.getInstance(); // todo: get fom zContext
40 + VoMetaData<UserView> zUserViewMetaData = UserViewMetaData.getInstance(); // todo: get fom zContext
41 +
42 + UserView zUser = zContext.get( CurrentUserViewAccessor.class ).getUser();
37 43
38 44 setViewTitle( "Locked by " + zUser );
39 45
  @@ -62,7 +68,7 @@
62 68 }
63 69 }
64 70 };
65 - mFormBinder = new FormBinder<UserView>( mFE, UserViewMetaData.getInstance() );
71 + mFormBinder = new FormBinder<UserView>( mFE, zUserViewMetaData );
66 72
67 73 mContent.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER );
68 74