01: // @@
02: // @@
03: /*
04: * Wi.Ser Framework
05: *
06: * LGPL Version: 1.8.1, 20-September-2007
07: * Copyright (C) 2005-2006 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.ho.server.generic;
32:
33: import de.ug2t.kernel.*;
34: import de.ug2t.unifiedGui.interfaces.*;
35: import de.ug2t.xmlScript.*;
36:
37: public final class HoSrvGenericSeparatorLine extends
38: AHoSrvGenericComponent implements IUnSeparator {
39: private int pem_len = 0;
40:
41: /**
42: * @param xName
43: * @throws Exception
44: */
45: public HoSrvGenericSeparatorLine(String xName, int xLen,
46: IUnApplication xAppl, String xClass) throws Exception {
47: super (xName);
48: this .pcmf_setAppl(xAppl);
49: this .pcmf_setLocalValue(xName);
50: this .pem_len = xLen;
51:
52: if (xClass == null)
53: pdm_clientClass = "de.ug2t.channel.ho.client.swing.HoSwingSeparatorLine";
54: else
55: pdm_clientClass = xClass;
56:
57: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
58: "");
59:
60: if (this .pdm_session.pcmf_isInTransaction()) {
61: ScXmlScript.pcmf_createPBody(l_remCall);
62: } else {
63: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
64: ScXmlScript.pcmf_addProc(l_remCall, null);
65: }
66: ;
67: ScXmlScript.pcmf_addDecl(l_remCall, this .pcmf_getRemName(),
68: this .pdm_clientClass, "global");
69: ScXmlScript.pcmf_addDeclPar(l_remCall, xName, "false",
70: "java.lang.String");
71: ScXmlScript.pcmf_addDeclPar(l_remCall, Integer.toString(xLen),
72: "false", "int");
73: ScXmlScript.pcmf_addDeclPar(l_remCall,
74: ((HoSrvGenericApplication) xAppl).pcmf_getRemName(),
75: "true", "de.ug2t.unifiedGui.interfaces.IUnApplication");
76:
77: ScXmlScript.pcmf_endAll(l_remCall);
78:
79: this .pdm_session.pcmf_call(l_remCall.toString(), this );
80:
81: return;
82: };
83:
84: public AHoSrvGenericComponent pcmf_buildRefObj() throws Exception {
85: AHoSrvGenericComponent l_obj = new HoSrvGenericSeparatorLine(
86: this .pcmf_getName(), this .pem_len, this .pcmf_getAppl(),
87: this .pdm_clientClass);
88: l_obj.pcmf_setGlobal(true);
89: l_obj.pcmf_setRefFrom(this );
90: l_obj.pcmf_setAutoEcho(this .pcmf_doAutoEcho());
91: this .pcmf_setGlobal(true);
92: this.pcmf_addRef(l_obj);
93:
94: return l_obj;
95: };
96: }
|