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.html.renderer;
32:
33: import de.ug2t.channel.markup.generic.*;
34: import de.ug2t.kernel.*;
35:
36: public final class HtmlRepetitionRenderer implements IKeView {
37: private MuGenericCache pem_cache = new MuGenericCache();
38:
39: public boolean pcmf_supportsCaching() {
40: return (true);
41: }
42:
43: public void pcmf_clearCache() {
44: this .pem_cache.pcmf_clearCache();
45: }
46:
47: public void pcmf_activateCache(boolean xAc) {
48: this .pem_cache.pcmf_activateThisCache(xAc);
49: return;
50: }
51:
52: public Object pcmf_output(KeTreeElement xTreeEl) {
53: MuGenericRepetition html_xTreeEl = (MuGenericRepetition) xTreeEl;
54:
55: // @@
56:
57: KeStringTemplate l_string = html_xTreeEl
58: .pcmf_getMarkupString("MAIN");
59: MuGenericApplication l_appl = (MuGenericApplication) html_xTreeEl
60: .pcmf_getAppl();
61:
62: l_string = html_xTreeEl.pcmf_insertToolTip(l_string);
63: l_string = html_xTreeEl
64: .pcmf_insertColorandFontandBorder(l_string);
65: l_string = html_xTreeEl.pcmf_insertPosition(l_string);
66: l_string = html_xTreeEl.pcmf_insertChannelandMenu(l_string);
67:
68: l_string = KeTools.pcmf_stringSubst(l_string, "$URL", l_appl
69: .pcmf_getHostName()
70: + ":"
71: + Integer.toString(l_appl.pcmf_getPort())
72: + "/"
73: + l_appl.pcmf_getRootUrl());
74: l_string = KeTools.pcmf_stringSubst(l_string, "$NAME",
75: html_xTreeEl.pcmf_getObjName());
76: l_string = KeTools.pcmf_stringSubst(l_string, "$STATE", l_appl
77: .pcmf_getObjName());
78: l_string = KeTools.pcmf_stringSubst(l_string, "$PG_ID", l_appl
79: .pcmf_getActive().pcmf_getObjName());
80: l_string = KeTools.pcmf_stringSubst(l_string, "$OID",
81: html_xTreeEl.pcmf_getObjName());
82:
83: // @@
84:
85: return (l_string);
86: };
87:
88: public Object pcmf_execView(KeTreeElement xTreeEl) {
89: return (xTreeEl.pcmf_execView());
90: };
91: };
|