Subversion Repository Public Repository

litesoft

Diff Revisions 748 vs 749 for /trunk/GWT_Sandbox/InitFrom/src/org/litesoft/initfrom/client/ui/widgets/UserFieldsPanel.java

Diff revisions: vs.
  @@ -1,5 +1,6 @@
1 1 package org.litesoft.initfrom.client.ui.widgets;
2 2
3 + import org.litesoft.GWT.client.view.*;
3 4 import org.litesoft.GWT.client.widgets.*;
4 5 import org.litesoft.GWT.forms.client.*;
5 6 import org.litesoft.initfrom.client.boviews.*;
  @@ -9,23 +10,34 @@
9 10 import static org.litesoft.uispecification.FormWidgetAspectCtrl.*;
10 11 import static org.litesoft.uispecification.FormWidgetCtrl.*;
11 12
12 - public class UserFieldsPanel extends SizeableVerticalPanel implements UserViewNames
13 + public class UserFieldsPanel extends SizeableVerticalPanel implements UserViewNames,
14 + QBEinputPanelAccessor<UserView>
13 15 {
14 16 private Widget mPointerField;
15 17 private FormEngine mFE;
18 + private RestrictedResourceView mCurrentRestrictedResource;
19 + private boolean mShowAll;
16 20
17 - public UserFieldsPanel( FormEngine pFE, FormBinder<UserView> pFB, RestrictedResourceView pCurrentRestrictedResource, boolean pShowAll )
21 + public UserFieldsPanel( RestrictedResourceView pCurrentRestrictedResource, boolean pShowAll )
18 22 {
23 + mCurrentRestrictedResource = pCurrentRestrictedResource;
24 + mShowAll = pShowAll;
19 25 stretchableHorizontally();
26 + }
27 +
28 + @Override
29 + public Widget initialize( FormEngine pFE, FormBinder<UserView> pFB )
30 + {
20 31 mFE = pFE;
21 32
22 33 add( createTopPanel( pFB ) );
23 - if ( pShowAll )
34 + if ( mShowAll )
24 35 {
25 - add( createPermissions( pFB, pCurrentRestrictedResource ) );
36 + add( createPermissions( pFB, mCurrentRestrictedResource ) );
26 37 add( new Spacer( 40 ) );
27 38 add( pFB.add( aResetPassword ) );
28 39 }
40 + return this;
29 41 }
30 42
31 43 private Widget createTopPanel( FormBinder<UserView> pFB )