litesoft
Diff Revisions
954
vs
955
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/view/SuspendDialogFactory.java
|
@@ -7,7 +7,7 @@ |
7 |
7 |
|
import org.litesoft.GWT.forms.client.components.*; |
8 |
8 |
|
import org.litesoft.bo.views.*; |
9 |
9 |
|
import org.litesoft.commonfoundation.base.*; |
10 |
|
- |
import org.litesoft.core.*; |
|
10 |
+ |
import org.litesoft.commonfoundation.independence.*; |
11 |
11 |
|
import org.litesoft.security.*; |
12 |
12 |
|
|
13 |
13 |
|
import com.google.gwt.core.client.*; |
|
@@ -24,10 +24,7 @@ |
24 |
24 |
|
return new SuspendDialog<T>( pCallBack ); |
25 |
25 |
|
} |
26 |
26 |
|
|
27 |
|
- |
private static class SuspendDialog<T extends SecurityUserView<T>> extends DialogView implements SecurityUserViewNames { |
28 |
|
- |
private FormEngine mFE; |
29 |
|
- |
|
30 |
|
- |
private SecurityUserViewDataProvider<T> mDataProvider; |
|
27 |
+ |
private static class SuspendDialog<T extends SecurityUserView<T>> extends AbstractSecurityDialogView<T> implements SecurityUserViewNames { |
31 |
28 |
|
private FormBinder<T> mFormBinder; |
32 |
29 |
|
private ButtonBase mSubmitButton; |
33 |
30 |
|
|
|
@@ -37,12 +34,7 @@ |
37 |
34 |
|
super( null, Opaqueness.Full ); |
38 |
35 |
|
Confirm.isNotNull( "LogoutCallBack", mLogoutCallBack = pLogoutCallBack ); |
39 |
36 |
|
|
40 |
|
- |
ClientContext zContext = ClientContext.get(); |
41 |
|
- |
|
42 |
|
- |
mDataProvider = zContext.get( SecurityUserViewDataProvider.class ); |
43 |
|
- |
SecurityUserViewMetaData<T> zUserViewMetaData = zContext.get( SecurityUserViewMetaData.class ); |
44 |
|
- |
|
45 |
|
- |
T zUser = ((AbstractCurrentUserViewAccessor<T>) zContext.get( AbstractCurrentUserViewAccessor.class )).getUser(); |
|
37 |
+ |
T zUser = Cast.it( Instance.of( AbstractCurrentUserViewAccessor.class ).getUser() ); |
46 |
38 |
|
|
47 |
39 |
|
setViewTitle( "Locked by " + zUser ); |
48 |
40 |
|
|
|
@@ -67,7 +59,7 @@ |
67 |
59 |
|
} |
68 |
60 |
|
} |
69 |
61 |
|
}; |
70 |
|
- |
mFormBinder = new FormBinder<T>( mFE, zUserViewMetaData ); |
|
62 |
+ |
mFormBinder = new FormBinder<T>( mFE, mUserViewMetaData ); |
71 |
63 |
|
|
72 |
64 |
|
mContent.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER ); |
73 |
65 |
|
|