litesoft
Diff Revisions
495
vs
496
for /trunk/Java/DATT/src/org/litesoft/datt/client/ui/views/admin/MyProfile.java
|
@@ -5,17 +5,18 @@ |
5 |
5 |
|
import org.litesoft.GWT.forms.client.*; |
6 |
6 |
|
import org.litesoft.bo.views.*; |
7 |
7 |
|
import org.litesoft.core.*; |
|
8 |
+ |
import org.litesoft.datt.client.accessors.*; |
8 |
9 |
|
import org.litesoft.datt.client.boviews.*; |
9 |
|
- |
import org.litesoft.datt.client.ui.views.*; |
|
10 |
+ |
import org.litesoft.datt.client.ui.widgets.*; |
10 |
11 |
|
import org.litesoft.uispecification.*; |
11 |
12 |
|
|
12 |
13 |
|
import com.google.gwt.user.client.ui.*; |
13 |
14 |
|
|
14 |
15 |
|
import static org.litesoft.uispecification.FormWidgetCtrl.*; |
15 |
16 |
|
|
16 |
|
- |
public class MyProfile extends DATTscreenView implements UserViewNames, |
17 |
|
- |
ViewUpdatable<UserView>, |
18 |
|
- |
FetchRowDataProviderCallBack<UserView> |
|
17 |
+ |
public class MyProfile extends ScreenView implements UserViewNames, |
|
18 |
+ |
ViewUpdatable<UserView>, |
|
19 |
+ |
FetchRowDataProviderCallBack<UserView> |
19 |
20 |
|
{ |
20 |
21 |
|
private FormEngine mFE; |
21 |
22 |
|
|
|
@@ -30,7 +31,7 @@ |
30 |
31 |
|
|
31 |
32 |
|
public MyProfile( String pSection, ViewDef pViewDef ) |
32 |
33 |
|
{ |
33 |
|
- |
super( pSection, pViewDef ); |
|
34 |
+ |
super( title( pSection, pViewDef ) ); |
34 |
35 |
|
|
35 |
36 |
|
addStandardTitleBar(); |
36 |
37 |
|
|
|
@@ -50,7 +51,7 @@ |
50 |
51 |
|
mFE = new FormEngine( zWidgetCtrlMap, FormEngine.Mode.EditRegular, null ); |
51 |
52 |
|
mFormBinder = new FormBinder<UserView>( mFE, UserViewMetaData.getInstance() ); |
52 |
53 |
|
|
53 |
|
- |
add( new QBEformConstrainingVerticalPanel( new UserFieldsPanel( mFE, mFormBinder, ClientContext.get().get( CurrentRestrictedResourceViewAccessor.class ).getRestrictedResource(), true ), // |
|
54 |
+ |
add( new QBEformConstrainingVerticalPanel( new UserFieldsPanel( ClientContext.get().get( CurrentRestrictedResourceViewAccessor.class ).getRestrictedResource(), true ).initialize( mFE, mFormBinder ), // |
54 |
55 |
|
new SizeableSpacer().stretchable() ) ); |
55 |
56 |
|
add( new SizeableSpacer().stretchable() ); |
56 |
57 |
|
|