001: // @@
002: // @@
003: /*
004: * Wi.Ser Framework
005: *
006: * Version: 1.8.1, 20-September-2007
007: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library located in LGPL.txt in the
021: * license directory; if not, write to the
022: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
023: * Boston, MA 02111-1307, USA.
024: *
025: * If this agreement does not cover your requirements, please contact us
026: * via email to get detailed information about the commercial license
027: * or our service offerings!
028: *
029: */
030: // @@
031: package de.ug2t.channel.markup.html.renderer;
032:
033: import de.ug2t.channel.markup.generic.*;
034: import de.ug2t.kernel.*;
035: import de.ug2t.unifiedGui.interfaces.*;
036:
037: public final class HtmlManualSliderRenderer implements IKeView {
038: private MuGenericCache pem_cache = new MuGenericCache();
039:
040: public void pcmf_clearCache() {
041: this .pem_cache.pcmf_clearCache();
042: }
043:
044: public boolean pcmf_supportsCaching() {
045: return (true);
046: }
047:
048: public void pcmf_activateCache(boolean xAc) {
049: this .pem_cache.pcmf_activateThisCache(xAc);
050: return;
051: }
052:
053: public Object pcmf_output(KeTreeElement xTreeEl) {
054: MuGenericSlider html_xTreeEl = (MuGenericSlider) xTreeEl;
055:
056: // @@
057:
058: KeStringTemplate l_string = null;
059:
060: if (html_xTreeEl.pcmf_getDirection() == IUnSlider.SLIDE_HORIZONTAL)
061: l_string = html_xTreeEl.pcmf_getMarkupString("H_MAIN");
062: else
063: l_string = html_xTreeEl.pcmf_getMarkupString("V_MAIN");
064:
065: MuGenericApplication l_appl = (MuGenericApplication) html_xTreeEl
066: .pcmf_getAppl();
067:
068: l_string = html_xTreeEl.pcmf_insertToolTip(l_string);
069: l_string = html_xTreeEl
070: .pcmf_insertColorandFontandBorder(l_string);
071: l_string = html_xTreeEl.pcmf_insertPosition(l_string);
072: l_string = html_xTreeEl.pcmf_insertChannelandMenu(l_string);
073:
074: l_string.pcmf_beginTR();
075:
076: l_string = KeTools.pcmf_stringSubst(l_string, "$PROT", l_appl
077: .pcmf_getProtocol());
078:
079: l_string = KeTools.pcmf_stringSubst(l_string, "$OID",
080: html_xTreeEl.pcmf_getObjName());
081: l_string = KeTools.pcmf_stringSubst(l_string, "$SLIDER",
082: html_xTreeEl.pcmf_getSliderOutPut().toString());
083:
084: if (html_xTreeEl.pcmf_isDisabled()) {
085: l_string = KeTools.pcmf_stringSubst(l_string, "$LESS", "");
086: l_string = KeTools
087: .pcmf_stringSubst(l_string, "$L_LESS", "");
088: l_string = KeTools.pcmf_stringSubst(l_string, "$MORE", "");
089: l_string = KeTools
090: .pcmf_stringSubst(l_string, "$M_MORE", "");
091: } else {
092: l_string = KeTools.pcmf_stringSubst(l_string, "$LESS",
093: html_xTreeEl.pcmf_getLButOutPut().toString());
094: l_string = KeTools.pcmf_stringSubst(l_string, "$L_LESS",
095: html_xTreeEl.pcmf_getLLButOutPut().toString());
096: l_string = KeTools.pcmf_stringSubst(l_string, "$MORE",
097: html_xTreeEl.pcmf_getMButOutPut().toString());
098: l_string = KeTools.pcmf_stringSubst(l_string, "$M_MORE",
099: html_xTreeEl.pcmf_getMMButOutPut().toString());
100: }
101: l_string.pcmf_endTR(true);
102:
103: // @@
104:
105: return (l_string);
106: };
107:
108: public Object pcmf_execView(KeTreeElement xTreeEl) {
109: return (xTreeEl.pcmf_execView());
110: };
111: };
|