litesoft
Diff Revisions
954
vs
955
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/view/ChangePassword.java
|
@@ -15,10 +15,7 @@ |
15 |
15 |
|
|
16 |
16 |
|
import static org.litesoft.uispecification.FormWidgetCtrl.*; |
17 |
17 |
|
|
18 |
|
- |
public class ChangePassword<T extends SecurityUserView<T>> extends DialogView implements SecurityUserViewNames { |
19 |
|
- |
private FormEngine mFE; |
20 |
|
- |
|
21 |
|
- |
private SecurityUserViewDataProvider<T> mDataProvider; |
|
18 |
+ |
public class ChangePassword<T extends SecurityUserView<T>> extends AbstractSecurityDialogView<T> implements SecurityUserViewNames { |
22 |
19 |
|
private FormBinder<T> mFormBinder; |
23 |
20 |
|
private ButtonBase mSubmitButton; |
24 |
21 |
|
private boolean mAllowCancel; |
|
@@ -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 |
|
final T zUser = ((AbstractCurrentUserViewAccessor<T>) zContext.get( AbstractCurrentUserViewAccessor.class )).getUser(); |
46 |
40 |
|
|
47 |
41 |
|
WidgetCtrlMap zWidgetCtrlMap = new WidgetCtrlMap( VISIBLE_AND_ACTIVE_ENABLED ); |
|
@@ -77,9 +71,10 @@ |
77 |
71 |
|
return false; |
78 |
72 |
|
} |
79 |
73 |
|
}; |
80 |
|
- |
mFormBinder = new FormBinder<T>( mFE, zUserViewMetaData ); |
|
74 |
+ |
mFormBinder = new FormBinder<T>( mFE, mUserViewMetaData ); |
81 |
75 |
|
|
82 |
76 |
|
mContent.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER ); |
|
77 |
+ |
|
83 |
78 |
|
add( new OurLabel( zUser.getFullName() ).style( "ChangePasswordUserName" ) ); |
84 |
79 |
|
addLogonAndPasswords(); |
85 |
80 |
|
add( new SizeableSpacer( 5 ).stretchable() ); |