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 java.util.*;
34:
35: import de.ug2t.channel.markup.generic.*;
36: import de.ug2t.kernel.*;
37: import de.ug2t.unifiedGui.interfaces.*;
38:
39: public final class HtmlBorderRenderer implements IKeView {
40: private MuGenericCache pem_cache = new MuGenericCache();
41:
42: public boolean pcmf_supportsCaching() {
43: return (true);
44: }
45:
46: public void pcmf_clearCache() {
47: this .pem_cache.pcmf_clearCache();
48: }
49:
50: public void pcmf_activateCache(boolean xAc) {
51: this .pem_cache.pcmf_activateThisCache(xAc);
52: return;
53: }
54:
55: public Object pcmf_output(KeTreeElement xTreeEl) {
56: MuGenericBorder html_xTreeEl = (MuGenericBorder) xTreeEl;
57:
58: // @@
59:
60: KeStringTemplate l_string = null;
61:
62: if (html_xTreeEl.pcmf_getScroll())
63: l_string = html_xTreeEl.pcmf_getMarkupString("MAIN");
64: else
65: l_string = html_xTreeEl.pcmf_getMarkupString("MAIN_NS");
66:
67: l_string = html_xTreeEl.pcmf_insertToolTip(l_string);
68: l_string = html_xTreeEl
69: .pcmf_insertColorandFontandBorder(l_string);
70: l_string = html_xTreeEl.pcmf_insertPosition(l_string);
71: l_string = html_xTreeEl.pcmf_insertChannelandMenu(l_string);
72: l_string = html_xTreeEl.pcmf_insertBgImage(l_string);
73:
74: l_string.pcmf_beginTR();
75: l_string = KeTools.pcmf_stringSubst(l_string, "$TITLE",
76: html_xTreeEl.pcmf_getName());
77: l_string = KeTools.pcmf_stringSubst(l_string, "$BORDER",
78: html_xTreeEl.pcmf_getBoStyleText());
79: l_string = KeTools.pcmf_stringSubst(l_string, "$BCOL",
80: html_xTreeEl.pcmf_getBoColor());
81: l_string = KeTools.pcmf_stringSubst(l_string, "$BWIDTH",
82: html_xTreeEl.pcmf_getBoLine());
83: l_string = KeTools.pcmf_stringSubst(l_string, "$OID",
84: html_xTreeEl.pcmf_getObjName());
85:
86: l_string.pcmf_endTR(true);
87:
88: // @@
89:
90: return (l_string);
91: };
92:
93: public Object pcmf_execView(KeTreeElement xTreeEl) {
94: return (xTreeEl.pcmf_execView());
95: };
96: };
|