01: // @@
02: // @@
03: /*
04: * Wi.Ser Framework
05: *
06: * Version: 1.8.1, 20-September-2007
07: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
08: *
09: * This library is free software; you can redistribute it and/or
10: * modify it under the terms of the GNU Lesser General Public
11: * License as published by the Free Software Foundation; either
12: * version 2 of the License, or (at your option) any later version.
13: *
14: * This library is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17: * Lesser General Public License for more details.
18: *
19: * You should have received a copy of the GNU Lesser General Public
20: * License along with this library located in LGPL.txt in the
21: * license directory; if not, write to the
22: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23: * Boston, MA 02111-1307, USA.
24: *
25: * If this agreement does not cover your requirements, please contact us
26: * via email to get detailed information about the commercial license
27: * or our service offerings!
28: *
29: */
30: // @@
31: package de.ug2t.channel.markup.generic;
32:
33: import java.util.*;
34:
35: import de.ug2t.connector.*;
36: import de.ug2t.kernel.*;
37: import de.ug2t.unifiedGui.interfaces.*;
38:
39: public final class MuGenericTemplateLayout extends MuGenericPage {
40: public MuGenericTemplateLayout(String xTitle,
41: ACoDataGetter xTplGetter, Object xTplName,
42: MuGenericApplication xAppl) throws Exception {
43: super (xTitle, xTplGetter, xTplName, xAppl);
44:
45: return;
46: }
47:
48: public KeStringTemplate pcmf_renderContent(KeStringTemplate l_body,
49: KeStringTemplate l_retval) {
50: String l_sbody = null;
51: String l_key = null;
52:
53: Iterator it = null;
54: Iterator itK = null;
55:
56: l_body = l_body.pcmf_stringAddEnd(this
57: .pcmf_getMarkupString("PAGE_CONTENT"));
58: l_body.pcmf_beginTR();
59:
60: if (pdm_followup != null) {
61: it = pdm_followup.values().iterator();
62: itK = pdm_followup.keySet().iterator();
63:
64: while (it.hasNext()) {
65: l_key = (String) itK.next();
66: l_sbody = ((KeTreeNode) it.next()).pcmf_execView()
67: .toString();
68: l_body.pcmf_stringSubst(l_key, l_sbody);
69: }
70: ;
71: }
72: l_body.pcmf_endTR(true);
73:
74: if (this .pcmf_getAppl().pcmf_isMDI() == true && this .pdm_doDeco)
75: l_body = (KeStringTemplate) this .pdm_deco.pcmf_execView(
76: l_body, this .pcmf_getIcon());
77:
78: l_retval = (KeStringTemplate) pdm_NodeView.pcmf_output(this );
79:
80: IUnMenu l_menu = ((MuGenericApplication) this .pcmf_getAppl())
81: .pcmf_getActiveMenu();
82:
83: if (l_menu != null)
84: l_retval = KeTools.pcmf_stringSubst(l_retval, "$MENU",
85: l_menu.pcmf_getUnComponent().pcmf_execView()
86: .toString());
87: else
88: l_retval = KeTools.pcmf_stringSubst(l_retval, "$MENU", "");
89:
90: if (this .pcmf_getAppl().pcmf_isMDI())
91: l_retval = KeTools.pcmf_stringSubstAppend(l_retval,
92: "$BODY", l_body.toString(), "$BODY");
93: else
94: l_retval = KeTools.pcmf_stringSubst(l_retval, "$BODY",
95: l_body.toString());
96:
97: return (l_retval);
98: }
99: }
|