01: /**
02: * Copyright 2002 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: *
13: * Author: Anurag Gupta
14: */package com.sun.portal.netfile.admin;
15:
16: // iPlanet JATO classes
17: import com.iplanet.jato.view.View;
18: import com.sun.portal.log.common.PortalLogger;
19: import com.iplanet.jato.view.html.StaticTextField;
20:
21: // NetFile admin console classes
22: import com.sun.portal.netfile.admin.model.NetFileUserProfileModelImpl;
23:
24: public class NetFileTotalThreeUserProfileViewBean extends
25: NetFileUserProfileViewBeanBase {
26:
27: public static final String PAGE_NAME = "NetFileTotalThreeUserProfile";
28: public static final String DEFAULT_DISPLAY_URL = "/ps/netfileadmin/NetFileTotalThreeUserProfile.jsp";
29:
30: public NetFileTotalThreeUserProfileViewBean() {
31: super (PAGE_NAME, DEFAULT_DISPLAY_URL);
32: registerChildren();
33: }
34:
35: public NetFileTotalThreeUserProfileViewBean(String pageName) {
36: super (pageName, DEFAULT_DISPLAY_URL);
37: registerChildren();
38: }
39:
40: protected void registerChildren() {
41: super .registerChildren();
42: registerChild(USER_DATA_VIEW,
43: NetFileTotalThreeUserProfileView.class);
44: }
45:
46: protected View createChild(String name) {
47: getNetFileModelMgr();
48: NetFileUserProfileModelImpl m = (NetFileUserProfileModelImpl) getModel();
49: m.initModel(getUserDN());
50: View child = null;
51:
52: if (name.equals(CHILD_NETFILE_ATTRSFOR)) {
53: child = new StaticTextField(this , CHILD_NETFILE_ATTRSFOR,
54: modelManager.getString("props.total.three") + " "
55: + modelManager.getString("for.label")
56: + " :");
57: } else if (name.equals(USER_DATA_VIEW)) {
58: child = new NetFileTotalThreeUserProfileView(this,
59: USER_DATA_VIEW);
60: } else {
61: child = super.createChild(name);
62: }
63: return child;
64: }
65:
66: }
|