0001: // @@
0002: // @@
0003: /*
0004: * Wi.Ser Framework
0005: *
0006: * Version: 1.8.1, 20-September-2007
0007: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
0008: *
0009: * This library is free software; you can redistribute it and/or
0010: * modify it under the terms of the GNU Lesser General Public
0011: * License as published by the Free Software Foundation; either
0012: * version 2 of the License, or (at your option) any later version.
0013: *
0014: * This library is distributed in the hope that it will be useful,
0015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
0016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0017: * Lesser General Public License for more details.
0018: *
0019: * You should have received a copy of the GNU Lesser General Public
0020: * License along with this library located in LGPL.txt in the
0021: * license directory; if not, write to the
0022: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
0023: * Boston, MA 02111-1307, USA.
0024: *
0025: * If this agreement does not cover your requirements, please contact us
0026: * via email to get detailed information about the commercial license
0027: * or our service offerings!
0028: *
0029: */
0030: // @@
0031: package de.ug2t.unifiedGui;
0032:
0033: import java.io.*;
0034: import java.lang.reflect.*;
0035: import java.util.*;
0036:
0037: import de.ug2t.channel.markup.generic.*;
0038: import de.ug2t.connector.*;
0039: import de.ug2t.kernel.*;
0040: import de.ug2t.unifiedGui.interfaces.*;
0041: import de.ug2t.unifiedGui.plugins.*;
0042:
0043: /**
0044: * @author Dirk
0045: *
0046: * date: 15.03.2004 project: WiSer-Framework
0047: *
0048: * <p>
0049: * UnComponentFactory produces the channel specific widgets and connects the to
0050: * the commen interfaces
0051: * </p>
0052: */
0053:
0054: final class UnHoPluginDescriptor extends UnHoDescriptor {
0055: protected String pdm_xmlConf = null;
0056: protected String pdm_staticXmlConf = null;
0057: protected String pdm_initClass = null;
0058: protected boolean pdm_staticInitialized = false;
0059: protected String pdm_rootDir = null;
0060: protected String pdm_textFile = null;
0061: protected String pdm_defTextFile = null;
0062: }
0063:
0064: final class UnMarkupPluginDescriptor extends UnMarkupDescriptor {
0065: protected String pdm_xmlConf = null;
0066: protected String pdm_staticXmlConf = null;
0067: protected String pdm_initClass = null;
0068: protected boolean pdm_staticInitialized = false;
0069: protected String pdm_rootDir = null;
0070: protected String pdm_textFile = null;
0071: protected String pdm_defTextFile = null;
0072: }
0073:
0074: class UnHoDescriptor {
0075: protected Class pdm_class = null;
0076: protected Constructor pdm_const = null;
0077: protected String pdm_clientClass = null;
0078:
0079: public Object pcmf_createObject(Object[] xParam, Class[] xTypes)
0080: throws Exception {
0081: if (pdm_const == null)
0082: pdm_const = pdm_class.getConstructor(xTypes);
0083:
0084: try {
0085: return (pdm_const.newInstance(xParam));
0086: } catch (Exception e) {
0087: pdm_const = pdm_class.getConstructor(xTypes);
0088: return (pdm_const.newInstance(xParam));
0089: }
0090: }
0091: };
0092:
0093: class UnMarkupDescriptor {
0094: protected Class pdm_class = null;
0095: protected Class pdm_viewclass = null;
0096: protected String pdm_tplFile = null;
0097:
0098: protected Constructor pdm_const = null;
0099: protected Method pdm_crMethod = null;
0100:
0101: public Object pcmf_createObject(Object[] xParam, Class[] xTypes)
0102: throws Exception {
0103: if (pdm_const == null)
0104: pdm_const = pdm_class.getConstructor(xTypes);
0105:
0106: try {
0107: if (this .pdm_viewclass == null)
0108: return (pdm_const.newInstance(xParam));
0109: else {
0110: KeTreeNode l_new = (KeTreeNode) pdm_const
0111: .newInstance(xParam);
0112: l_new.pcmf_setView((IKeView) this .pdm_viewclass
0113: .newInstance());
0114: return (l_new);
0115: }
0116: } catch (Exception e) {
0117: pdm_const = pdm_class.getConstructor(xTypes);
0118: if (this .pdm_viewclass == null)
0119: return (pdm_const.newInstance(xParam));
0120: else {
0121: KeTreeNode l_new = (KeTreeNode) pdm_const
0122: .newInstance(xParam);
0123: l_new.pcmf_setView((IKeView) this .pdm_viewclass
0124: .newInstance());
0125: return (l_new);
0126: }
0127: }
0128: }
0129:
0130: // @@
0131: };
0132:
0133: public final class UnComponentFactory extends KeRegisteredObject {
0134: private static final String P_TEMPALTE_EXT = ".ptpl";
0135:
0136: private Map pem_hoElements = new HashMap();
0137: private Map pem_muElements = new HashMap();
0138:
0139: private ArrayList pem_aggregatedPlugins = new ArrayList();
0140: private ArrayList pem_stdPlugins = new ArrayList();
0141:
0142: private boolean pem_reqCtrl = true;
0143:
0144: public static final int HALFOBJECT = 1;
0145: public static final int MIXED = 2;
0146: public static final int MARKUP = 0;
0147:
0148: private static final String[] pem_uiEl =
0149: // html Swing PoolHthml
0150: // PoolSwing
0151: { "button", // 0 OK OK OK
0152: "checkBox", // 1 OK OK OK
0153: "input", // 2 OK OK OK
0154: "comboBox", // 3 OK OK OK
0155: "listBox", // 4 OK OK OK
0156: "radio", // 5 OK OK OK
0157: "form", // 6 OK OK OK
0158: "page", // 7 OK OK OK
0159: "textBox", // 8 OK OK OK
0160: "table", // 9 OK OK OK
0161: "tree", // 10 OK OK OK
0162: "rep", // 11
0163: "label", // 12 OK OK OK
0164: "application", // 13 OK
0165: // OK
0166: "link", // 14 OK OK OK
0167: "raw", // 15 OK
0168: // OK OK
0169: "pageTemplate", // 16 OK
0170: // OK
0171: "menu", // 17 OK OK OK
0172: "border", // 18 OK OK +OK
0173: "image", // 19 OK OK OK
0174: "tabPane", // 20 OK OK OK
0175: "toolBox", // 21 OK OK
0176: // +OK
0177: "fileChooser", // 22 OK
0178: // OK +OK
0179: "editor", // 23 OK OK +OK
0180: "dialog", // 24 OK OK +OK
0181: "evChannel", // 25 OK OK
0182: "ctxMenu", // 26 OK OK
0183: // +OK
0184: "iForm", // 27 OK OK
0185: "mdiDeco", // 28 OK OK
0186: // +OK
0187: "line", // 29 OK OK +OK
0188: "optDlg", // 30 OK OK +OK
0189: "drawPane", // 31 OK OK
0190: // +OK
0191: "splitPane", // 32 OK OK
0192: // +OK
0193: "slider", // 33 OK OK +OK
0194: "snapShot", // 34 OK OK
0195: // +OK
0196: "templateSection", // 35
0197: // OK
0198: // OK
0199: // +OK
0200: "roLink", // 36 OK OK +OK
0201: "singleRadio", // 37 OK
0202: // OK +OK
0203: "progressBar", // 38 OK
0204: // OK
0205: // +OK
0206: "muServletFilter", // 39
0207: // OK
0208: // OK
0209: // +OK
0210: "box", // 40 OK
0211: // OK
0212: // +OK
0213: "htmlPane", // 41 OK
0214: // OK
0215: // +OK
0216: "aPopup", // 42 OK
0217: // OK
0218: // +OK
0219: "spinner" // 43 OK
0220: // OK
0221: // +OK
0222: };
0223:
0224: private ACoDataGetter pem_dataGetter = null;
0225: private String pem_rootDir = null;
0226: private boolean pem_myGetter = true;
0227: private String pem_parfile = null;
0228:
0229: public void pcmf_reConstruct() {
0230: try {
0231: KeLog.pcmf_log("ug2t", "reconstructing factory", this ,
0232: KeLog.MESSAGE);
0233: this .pcmf_construct(this .pem_parfile);
0234: this .pcmf_clearTplCache();
0235: } catch (Exception e) {
0236: KeLog.pcmf_log("ug2t",
0237: "error reconstructing component factory", this ,
0238: KeLog.FATAL);
0239: }
0240: }
0241:
0242: private void pcmf_construct(String xParFile) {
0243: int i = 0;
0244: String l_par = null;
0245: UnMarkupDescriptor l_htmlDesc = null;
0246: UnHoDescriptor l_swingDesc = null;
0247: pem_parfile = xParFile;
0248:
0249: this .pem_hoElements.clear();
0250: this .pem_muElements.clear();
0251:
0252: try {
0253: CoXmlParameterGetter l_getter = new CoXmlParameterGetter();
0254: l_getter.pcmf_addSource(xParFile);
0255:
0256: // Hauptparameter auslesen
0257: l_getter.pcmf_setRoot(xParFile, "settings");
0258: this .pem_rootDir = (String) l_getter
0259: .pcmf_getParameter("MuTemplateDir");
0260: this .pem_rootDir = this .pem_rootDir.replace('\\',
0261: File.separator.charAt(0));
0262:
0263: String l_reqCtrl = (String) l_getter
0264: .pcmf_getParameter("requestControl");
0265: if (l_reqCtrl != null
0266: && l_reqCtrl.toUpperCase().equals("FALSE"))
0267: this .pem_reqCtrl = false;
0268:
0269: l_par = (String) l_getter
0270: .pcmf_getParameter("templateGetterClass");
0271: if (l_par == null) {
0272: this .pem_myGetter = false;
0273: this .pem_dataGetter = (ACoDataGetter) l_getter
0274: .pcmf_getParameter("templateGetterObj");
0275: } else {
0276: this .pem_dataGetter = (ACoDataGetter) Class.forName(
0277: l_par).newInstance();
0278: }
0279: ;
0280: // Plugin Definitionen lesen
0281: // Ein plugin muss von htmlGuiObj bzw AHoSrvGenericComponent abgeleitet
0282: // sein
0283: // Konstruktor muss eine den basisobjekten entsprechende Signatur haben +
0284: // einen Object
0285: pcmf_readPlugins(l_getter);
0286:
0287: for (i = 0; i < UnComponentFactory.pem_uiEl.length; i++) {
0288: if (l_getter.pcmf_setRoot(xParFile,
0289: UnComponentFactory.pem_uiEl[i]) != 0)
0290: continue;
0291:
0292: l_htmlDesc = new UnMarkupDescriptor();
0293: l_swingDesc = new UnHoDescriptor();
0294:
0295: l_par = (String) l_getter
0296: .pcmf_getParameter("HoClientClass");
0297: if (l_par != null)
0298: l_swingDesc.pdm_clientClass = l_par;
0299:
0300: l_par = (String) l_getter
0301: .pcmf_getParameter("HoServerClass");
0302: if (l_par != null)
0303: l_swingDesc.pdm_class = Class.forName(l_par);
0304:
0305: l_par = (String) l_getter
0306: .pcmf_getParameter("MuComponentClass");
0307: if (l_par != null)
0308: l_htmlDesc.pdm_class = Class.forName(l_par);
0309:
0310: l_par = (String) l_getter
0311: .pcmf_getParameter("MuComponentRenderer");
0312: if (l_par != null)
0313: l_htmlDesc.pdm_viewclass = Class.forName(l_par);
0314:
0315: l_htmlDesc.pdm_tplFile = (String) l_getter
0316: .pcmf_getParameter("MuTemplate");
0317:
0318: this .pem_hoElements.put(UnComponentFactory.pem_uiEl[i],
0319: l_swingDesc);
0320: this .pem_muElements.put(UnComponentFactory.pem_uiEl[i],
0321: l_htmlDesc);
0322: }
0323: ;
0324: } catch (Exception e) {
0325: KeLog.pcmf_logException("ug2t", this , e);
0326: }
0327: ;
0328:
0329: return;
0330: };
0331:
0332: public UnComponentFactory(String xParFile) {
0333: super (false);
0334:
0335: this .pcmf_construct(xParFile);
0336: };
0337:
0338: public void pcmf_setMuTemplate(String xEl, String xTpl) {
0339: UnMarkupDescriptor l_desc = (UnMarkupDescriptor) this .pem_muElements
0340: .get(xEl);
0341: if (l_desc == null) {
0342: KeLog.pcmf_log("ug2t",
0343: "cannot change template for: " + xEl, this ,
0344: KeLog.ERROR);
0345: return;
0346: }
0347: l_desc.pdm_tplFile = xTpl;
0348:
0349: return;
0350: }
0351:
0352: public String pcmf_getRootDir() {
0353: return (this .pem_rootDir);
0354: };
0355:
0356: public String pcmf_getMuTemplate(String xEl) {
0357: UnMarkupDescriptor l_desc = (UnMarkupDescriptor) this .pem_muElements
0358: .get(xEl);
0359: if (l_desc == null) {
0360: KeLog.pcmf_log("ug2t", "cannot get template for: " + xEl,
0361: this , KeLog.ERROR);
0362: return (null);
0363: }
0364:
0365: return (l_desc.pdm_tplFile);
0366: }
0367:
0368: public Class pcmf_getMuClass(String xEl) {
0369: UnMarkupDescriptor l_desc = (UnMarkupDescriptor) this .pem_muElements
0370: .get(xEl);
0371: if (l_desc == null) {
0372: KeLog.pcmf_log("ug2t", "cannot get class for: " + xEl,
0373: this , KeLog.ERROR);
0374: return (null);
0375: }
0376:
0377: return (l_desc.pdm_class);
0378: }
0379:
0380: public Class pcmf_getViewClass(String xEl) {
0381: UnMarkupDescriptor l_desc = (UnMarkupDescriptor) this .pem_muElements
0382: .get(xEl);
0383: if (l_desc == null) {
0384: KeLog.pcmf_log("ug2t", "cannot get class for: " + xEl,
0385: this , KeLog.ERROR);
0386: return (null);
0387: }
0388:
0389: return (l_desc.pdm_viewclass);
0390: }
0391:
0392: public Class pcmf_getHoClass(String xEl) {
0393: UnHoDescriptor l_desc = (UnHoDescriptor) this .pem_hoElements
0394: .get(xEl);
0395: if (l_desc == null) {
0396: KeLog.pcmf_log("ug2t", "cannot class for: " + xEl, this ,
0397: KeLog.ERROR);
0398: return (null);
0399: }
0400:
0401: return (l_desc.pdm_class);
0402: }
0403:
0404: public String pcmf_getHoClientClass(String xEl) {
0405: UnHoDescriptor l_desc = (UnHoDescriptor) this .pem_hoElements
0406: .get(xEl);
0407: if (l_desc == null) {
0408: KeLog.pcmf_log("ug2t", "cannot client class for: " + xEl,
0409: this , KeLog.ERROR);
0410: return (null);
0411: }
0412:
0413: return (l_desc.pdm_clientClass);
0414: }
0415:
0416: public void pcmf_setMuClass(String xEl, String xClass) {
0417: try {
0418: UnMarkupDescriptor l_desc = (UnMarkupDescriptor) this .pem_muElements
0419: .get(xEl);
0420: if (l_desc == null) {
0421: KeLog.pcmf_log("ug2t", "cannot change class for: "
0422: + xEl, this , KeLog.ERROR);
0423: return;
0424: }
0425: l_desc.pdm_class = Class.forName(xClass);
0426: } catch (Exception e) {
0427: KeLog
0428: .pcmf_log("ug2t", "cannot change class for: " + xEl
0429: + ", class not found: " + xClass, this ,
0430: KeLog.ERROR);
0431: }
0432:
0433: return;
0434: }
0435:
0436: public void pcmf_setViewClass(String xEl, String xClass) {
0437: try {
0438: UnMarkupDescriptor l_desc = (UnMarkupDescriptor) this .pem_muElements
0439: .get(xEl);
0440: if (l_desc == null) {
0441: KeLog.pcmf_log("ug2t", "cannot change viewclass for: "
0442: + xEl, this , KeLog.ERROR);
0443: return;
0444: }
0445: l_desc.pdm_viewclass = Class.forName(xClass);
0446: } catch (Exception e) {
0447: KeLog.pcmf_log("ug2t", "cannot change viewclass for: "
0448: + xEl + ", class not found: " + xClass, this ,
0449: KeLog.ERROR);
0450: }
0451:
0452: return;
0453: }
0454:
0455: public void pcmf_setHoClass(String xEl, String xClass) {
0456: try {
0457: UnHoDescriptor l_desc = (UnHoDescriptor) this .pem_hoElements
0458: .get(xEl);
0459: if (l_desc == null) {
0460: KeLog.pcmf_log("ug2t", "cannot change class for: "
0461: + xEl, this , KeLog.ERROR);
0462: return;
0463: }
0464: l_desc.pdm_class = Class.forName(xClass);
0465: } catch (Exception e) {
0466: KeLog
0467: .pcmf_log("ug2t", "cannot change class for: " + xEl
0468: + ", class not found: " + xClass, this ,
0469: KeLog.ERROR);
0470: }
0471:
0472: return;
0473: }
0474:
0475: public void pcmf_setHoClientClass(String xEl, String xClass) {
0476: UnHoDescriptor l_desc = (UnHoDescriptor) this .pem_hoElements
0477: .get(xEl);
0478: if (l_desc == null) {
0479: KeLog.pcmf_log("ug2t", "cannot change client class for: "
0480: + xEl, this , KeLog.ERROR);
0481: return;
0482: }
0483: l_desc.pdm_clientClass = xClass;
0484:
0485: return;
0486: }
0487:
0488: public void pcmf_clearTplCache() throws Exception {
0489: this .pem_dataGetter.pcmf_reload();
0490: MuGenericTemplate.pcmf_clearCache();
0491: }
0492:
0493: public final UnComponent pcmf_createPlugin(String xPlName,
0494: int xType, String xValue, IUnApplication xAppl,
0495: Object xAddParams) {
0496: UnHoDescriptor l_swingDesc = null;
0497: UnMarkupDescriptor l_htmlDesc = null;
0498:
0499: UnComponent l_ret = null;
0500:
0501: try {
0502: switch (xType) {
0503: case UnComponentFactory.MARKUP: {
0504: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
0505: .get(xPlName);
0506: if (l_htmlDesc != null) {
0507: // Signatur + Parameter
0508: Class l_class[] = {
0509: java.lang.String.class,
0510: de.ug2t.connector.ACoDataGetter.class,
0511: java.lang.Object.class,
0512: de.ug2t.channel.markup.generic.MuGenericApplication.class,
0513: java.lang.Object.class };
0514: Object l_param[] = { xValue, this .pem_dataGetter,
0515: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
0516: (MuGenericApplication) xAppl, xAddParams };
0517:
0518: l_ret = (UnComponent) l_htmlDesc.pcmf_createObject(
0519: l_param, l_class);
0520: }
0521: ;
0522: break;
0523: }
0524: case UnComponentFactory.HALFOBJECT:
0525: case UnComponentFactory.MIXED: {
0526: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
0527: .get(xPlName);
0528: if (l_swingDesc != null) {
0529: // Signatur + Parameter
0530: Class l_class[] = {
0531: java.lang.String.class,
0532: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
0533: java.lang.Object.class };
0534: Object l_param[] = { xValue,
0535: (IUnApplication) xAppl, xAddParams };
0536:
0537: l_ret = (UnComponent) l_swingDesc
0538: .pcmf_createObject(l_param, l_class);
0539: }
0540: ;
0541: break;
0542: }
0543: default:
0544: }
0545: ;
0546: } catch (Exception e) {
0547: KeLog.pcmf_logException("ug2t", this , e);
0548: }
0549: ;
0550: if (l_ret == null)
0551: l_ret = (UnComponent) this .pcmf_createText(xType, "",
0552: "no plugin [" + xPlName + "] found", xAppl);
0553:
0554: return (l_ret);
0555: };
0556:
0557: public final PlBasicComponentAggregat pcmf_createAggregatedPlugin(
0558: String xPlName, int xType, IUnApplication xAppl,
0559: Object xAddParams) {
0560: UnHoPluginDescriptor l_swingDesc = null;
0561: UnMarkupPluginDescriptor l_htmlDesc = null;
0562:
0563: PlBasicComponentAggregat l_ret = null;
0564:
0565: try {
0566: switch (xType) {
0567: case UnComponentFactory.MARKUP: {
0568: l_htmlDesc = (UnMarkupPluginDescriptor) this .pem_muElements
0569: .get(xPlName);
0570: if (l_htmlDesc != null) {
0571: if (l_htmlDesc.pdm_initClass != null) {
0572: pemf_preMuPluginInit(xPlName, xType, xAppl,
0573: l_htmlDesc);
0574:
0575: l_ret = (PlBasicComponentAggregat) Class
0576: .forName(l_htmlDesc.pdm_initClass)
0577: .newInstance();
0578:
0579: l_ret.pcmf_preParse(l_htmlDesc.pdm_rootDir);
0580:
0581: UnApplicationFactory l_prod = new UnApplicationFactory(
0582: l_htmlDesc.pdm_xmlConf, this );
0583: l_prod.pcmf_useNonStaticHandler(true);
0584: PlBasicComponentAggregat l_currentParsedPL = (PlBasicComponentAggregat) KeRegisteredObject
0585: .pcmf_getObjByName(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0586: if (l_currentParsedPL != null)
0587: KeRegisteredObject
0588: .pcmf_unRegister(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0589:
0590: KeRegisteredObject
0591: .pcmf_register(
0592: PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN,
0593: l_ret);
0594: UnComponent l_gobj = (UnComponent) l_prod
0595: .pcmf_produceWidgetsFromFile(xType,
0596: null, xAppl);
0597: KeRegisteredObject
0598: .pcmf_unRegister(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0599: if (l_currentParsedPL != null)
0600: KeRegisteredObject
0601: .pcmf_register(
0602: PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN,
0603: l_currentParsedPL);
0604:
0605: l_ret.pcmf_initPlugin(l_gobj, xAddParams,
0606: l_htmlDesc.pdm_rootDir);
0607: } else
0608: KeLog
0609: .pcmf_log(
0610: "ug2t",
0611: "cannot create aggregated plugin because of missing Init class",
0612: this , KeLog.ERROR);
0613: }
0614: ;
0615: break;
0616: }
0617: case UnComponentFactory.HALFOBJECT:
0618: case UnComponentFactory.MIXED: {
0619: l_swingDesc = (UnHoPluginDescriptor) this .pem_hoElements
0620: .get(xPlName);
0621: if (l_swingDesc != null) {
0622: if (l_swingDesc.pdm_initClass != null) {
0623: if (l_swingDesc.pdm_textFile != null
0624: && l_swingDesc.pdm_defTextFile != null) {
0625: String l_plLang = "LANG_" + xPlName;
0626: String l_lang = KeRegisteredObject
0627: .pcmf_getObjByName(
0628: IUnApplication.MY_LANGUAGE_CODE)
0629: .toString();
0630: if (KeRegisteredObject
0631: .pcmf_getObjByName(l_plLang) == null) {
0632: String l_filen = KeTools
0633: .pcmf_stringSingleSubst(
0634: l_swingDesc.pdm_textFile,
0635: "{$LANG}", l_lang);
0636: File l_file = new File(KeEnvironment
0637: .pcmf_buildPath(l_filen));
0638: if (!l_file.exists())
0639: l_filen = l_swingDesc.pdm_defTextFile;
0640:
0641: KeRegisteredObject.pcmf_register(
0642: l_plLang, l_filen);
0643: KeLog.pcmf_log("ug2t",
0644: "setting language file for "
0645: + xPlName + " to "
0646: + l_plLang + "="
0647: + l_filen, this ,
0648: KeLog.DEBUG);
0649: }
0650: }
0651:
0652: if (l_swingDesc.pdm_staticInitialized == false
0653: && l_swingDesc.pdm_staticXmlConf != null) {
0654: UnApplicationFactory l_prod = new UnApplicationFactory(
0655: l_swingDesc.pdm_staticXmlConf, this );
0656: l_prod.pcmf_useNonStaticHandler(true);
0657: l_prod.pcmf_setTerminateOnError(false);
0658: l_prod.pcmf_produceWidgetsFromFile(xType,
0659: null, xAppl);
0660: l_swingDesc.pdm_staticInitialized = true;
0661: }
0662:
0663: l_ret = (PlBasicComponentAggregat) Class
0664: .forName(l_swingDesc.pdm_initClass)
0665: .newInstance();
0666:
0667: l_ret.pcmf_preParse(l_swingDesc.pdm_rootDir);
0668:
0669: UnApplicationFactory l_prod = new UnApplicationFactory(
0670: l_swingDesc.pdm_xmlConf, this );
0671: l_prod.pcmf_useNonStaticHandler(true);
0672: PlBasicComponentAggregat l_currentParsedPL = (PlBasicComponentAggregat) KeRegisteredObject
0673: .pcmf_getObjByName(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0674: if (l_currentParsedPL != null)
0675: KeRegisteredObject
0676: .pcmf_unRegister(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0677:
0678: KeRegisteredObject
0679: .pcmf_register(
0680: PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN,
0681: l_ret);
0682: UnComponent l_gobj = (UnComponent) l_prod
0683: .pcmf_produceWidgetsFromFile(xType,
0684: null, xAppl);
0685: KeRegisteredObject
0686: .pcmf_unRegister(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0687: if (l_currentParsedPL != null)
0688: KeRegisteredObject
0689: .pcmf_register(
0690: PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN,
0691: l_currentParsedPL);
0692:
0693: l_ret.pcmf_initPlugin(l_gobj, xAddParams,
0694: l_swingDesc.pdm_rootDir);
0695: } else
0696: KeLog
0697: .pcmf_log(
0698: "ug2t",
0699: "cannot create aggregated plugin because of missing Init class",
0700: this , KeLog.ERROR);
0701: }
0702: ;
0703: break;
0704: }
0705: default:
0706: }
0707: ;
0708: } catch (Exception e) {
0709: KeLog.pcmf_logException("ug2t", this , e);
0710: }
0711: ;
0712: if (l_ret == null)
0713: l_ret = new PlBasicComponentAggregat((UnComponent) this
0714: .pcmf_createText(xType, "", "no plugin [" + xPlName
0715: + "] found", xAppl), null, null);
0716:
0717: l_ret.pcmf_getPluginObject().pcmf_setPluginPeer(l_ret);
0718:
0719: return (l_ret);
0720: };
0721:
0722: public final PlBasicComponentAggregat pcmf_createAggregatedInlinePlugin(
0723: String xPlName, int xType, IUnApplication xAppl, String xXML) {
0724: UnHoPluginDescriptor l_swingDesc = null;
0725: UnMarkupPluginDescriptor l_htmlDesc = null;
0726:
0727: PlBasicComponentAggregat l_ret = null;
0728:
0729: try {
0730: switch (xType) {
0731: case UnComponentFactory.MARKUP: {
0732: l_htmlDesc = (UnMarkupPluginDescriptor) this .pem_muElements
0733: .get(xPlName);
0734: if (l_htmlDesc != null) {
0735: if (l_htmlDesc.pdm_initClass != null) {
0736: pemf_preMuPluginInit(xPlName, xType, xAppl,
0737: l_htmlDesc);
0738:
0739: l_ret = (PlBasicComponentAggregat) Class
0740: .forName(l_htmlDesc.pdm_initClass)
0741: .newInstance();
0742:
0743: l_ret.pcmf_preParse(l_htmlDesc.pdm_rootDir);
0744:
0745: UnApplicationFactory l_prod = new UnApplicationFactory(
0746: l_htmlDesc.pdm_xmlConf, this );
0747: l_prod.pcmf_useNonStaticHandler(true);
0748: PlBasicComponentAggregat l_currentParsedPL = (PlBasicComponentAggregat) KeRegisteredObject
0749: .pcmf_getObjByName(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0750: if (l_currentParsedPL != null)
0751: KeRegisteredObject
0752: .pcmf_unRegister(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0753:
0754: KeRegisteredObject
0755: .pcmf_register(
0756: PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN,
0757: l_ret);
0758: UnComponent l_gobj = (UnComponent) l_prod
0759: .pcmf_produceWidgetsFromString(xType,
0760: xXML, xAppl);
0761: KeRegisteredObject
0762: .pcmf_unRegister(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0763: if (l_currentParsedPL != null)
0764: KeRegisteredObject
0765: .pcmf_register(
0766: PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN,
0767: l_currentParsedPL);
0768:
0769: l_ret.pcmf_initPlugin(l_gobj, null,
0770: l_htmlDesc.pdm_rootDir);
0771: } else
0772: KeLog
0773: .pcmf_log(
0774: "ug2t",
0775: "cannot create aggregated plugin because of missing Init class",
0776: this , KeLog.ERROR);
0777: }
0778: ;
0779: break;
0780: }
0781: case UnComponentFactory.HALFOBJECT:
0782: case UnComponentFactory.MIXED: {
0783: l_swingDesc = (UnHoPluginDescriptor) this .pem_hoElements
0784: .get(xPlName);
0785: if (l_swingDesc != null) {
0786: if (l_swingDesc.pdm_initClass != null) {
0787: if (l_swingDesc.pdm_textFile != null
0788: && l_swingDesc.pdm_defTextFile != null) {
0789: String l_plLang = "LANG_" + xPlName;
0790: String l_lang = KeRegisteredObject
0791: .pcmf_getObjByName(
0792: IUnApplication.MY_LANGUAGE_CODE)
0793: .toString();
0794: if (KeRegisteredObject
0795: .pcmf_getObjByName(l_plLang) == null) {
0796: String l_filen = KeTools
0797: .pcmf_stringSingleSubst(
0798: l_swingDesc.pdm_textFile,
0799: "{$LANG}", l_lang);
0800: File l_file = new File(KeEnvironment
0801: .pcmf_buildPath(l_filen));
0802: if (!l_file.exists())
0803: l_filen = l_swingDesc.pdm_defTextFile;
0804:
0805: KeRegisteredObject.pcmf_register(
0806: l_plLang, l_filen);
0807: KeLog.pcmf_log("ug2t",
0808: "setting language file for "
0809: + xPlName + " to "
0810: + l_plLang + "="
0811: + l_filen, this ,
0812: KeLog.DEBUG);
0813: }
0814: }
0815:
0816: if (l_swingDesc.pdm_staticInitialized == false
0817: && l_swingDesc.pdm_staticXmlConf != null) {
0818: UnApplicationFactory l_prod = new UnApplicationFactory(
0819: l_swingDesc.pdm_staticXmlConf, this );
0820: l_prod.pcmf_useNonStaticHandler(true);
0821: l_prod.pcmf_setTerminateOnError(false);
0822: l_prod.pcmf_produceWidgetsFromFile(xType,
0823: null, xAppl);
0824: l_swingDesc.pdm_staticInitialized = true;
0825: }
0826:
0827: l_ret = (PlBasicComponentAggregat) Class
0828: .forName(l_swingDesc.pdm_initClass)
0829: .newInstance();
0830:
0831: l_ret.pcmf_preParse(l_swingDesc.pdm_rootDir);
0832:
0833: UnApplicationFactory l_prod = new UnApplicationFactory(
0834: l_swingDesc.pdm_xmlConf, this );
0835: l_prod.pcmf_useNonStaticHandler(true);
0836: PlBasicComponentAggregat l_currentParsedPL = (PlBasicComponentAggregat) KeRegisteredObject
0837: .pcmf_getObjByName(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0838: if (l_currentParsedPL != null)
0839: KeRegisteredObject
0840: .pcmf_unRegister(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0841:
0842: KeRegisteredObject
0843: .pcmf_register(
0844: PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN,
0845: l_ret);
0846: UnComponent l_gobj = (UnComponent) l_prod
0847: .pcmf_produceWidgetsFromString(xType,
0848: xXML, xAppl);
0849: KeRegisteredObject
0850: .pcmf_unRegister(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN);
0851: if (l_currentParsedPL != null)
0852: KeRegisteredObject
0853: .pcmf_register(
0854: PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN,
0855: l_currentParsedPL);
0856:
0857: l_ret.pcmf_initPlugin(l_gobj, null,
0858: l_swingDesc.pdm_rootDir);
0859: } else
0860: KeLog
0861: .pcmf_log(
0862: "ug2t",
0863: "cannot create aggregated plugin because of missing Init class",
0864: this , KeLog.ERROR);
0865: }
0866: ;
0867: break;
0868: }
0869: default:
0870: }
0871: ;
0872: } catch (Exception e) {
0873: KeLog.pcmf_logException("ug2t", this , e);
0874: }
0875: ;
0876: if (l_ret == null)
0877: l_ret = new PlBasicComponentAggregat((UnComponent) this
0878: .pcmf_createText(xType, "", "no plugin [" + xPlName
0879: + "] found", xAppl), null, null);
0880:
0881: l_ret.pcmf_getPluginObject().pcmf_setPluginPeer(l_ret);
0882:
0883: return (l_ret);
0884: }
0885:
0886: private void pemf_preMuPluginInit(String xPlName, int xType,
0887: IUnApplication xAppl, UnMarkupPluginDescriptor xHtmlDesc)
0888: throws Exception {
0889: if (xHtmlDesc.pdm_textFile != null
0890: && xHtmlDesc.pdm_defTextFile != null) {
0891: String l_plLang = "LANG_" + xPlName;
0892: String l_lang = KeRegisteredObject.pcmf_getObjByName(
0893: IUnApplication.MY_LANGUAGE_CODE).toString();
0894: if (KeRegisteredObject.pcmf_getObjByName(l_plLang) == null) {
0895: String l_filen = KeTools.pcmf_stringSingleSubst(
0896: xHtmlDesc.pdm_textFile, "{$LANG}", l_lang);
0897: File l_file = new File(KeEnvironment
0898: .pcmf_buildPath(l_filen));
0899: if (!l_file.exists())
0900: l_filen = xHtmlDesc.pdm_defTextFile;
0901:
0902: KeRegisteredObject.pcmf_register(l_plLang, l_filen);
0903: KeLog.pcmf_log("ug2t", "setting language file for "
0904: + xPlName + " to " + l_plLang + "=" + l_filen,
0905: this , KeLog.DEBUG);
0906: }
0907: }
0908:
0909: if (xHtmlDesc.pdm_staticInitialized == false
0910: && xHtmlDesc.pdm_staticXmlConf != null) {
0911: UnApplicationFactory l_prod = new UnApplicationFactory(
0912: xHtmlDesc.pdm_staticXmlConf, this );
0913: l_prod.pcmf_useNonStaticHandler(true);
0914: l_prod.pcmf_setTerminateOnError(false);
0915: l_prod.pcmf_produceWidgetsFromFile(xType, null, xAppl);
0916: xHtmlDesc.pdm_staticInitialized = true;
0917: }
0918: };
0919:
0920: public final IUnButton pcmf_createButton(int xType, String xValue,
0921: IUnApplication xAppl) {
0922: return (this .pcmf_createButtonPlugin(xType, xValue, xAppl,
0923: UnComponentFactory.pem_uiEl[0]));
0924: };
0925:
0926: public final IUnButton pcmf_createButtonPlugin(int xType,
0927: String xValue, IUnApplication xAppl, String xPl) {
0928: if (xPl == null)
0929: xPl = UnComponentFactory.pem_uiEl[0];
0930:
0931: UnHoDescriptor l_swingDesc = null;
0932: UnMarkupDescriptor l_htmlDesc = null;
0933:
0934: IUnButton l_ret = null;
0935:
0936: try {
0937: switch (xType) {
0938: case UnComponentFactory.MARKUP: {
0939: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
0940: .get(xPl);
0941: if (l_htmlDesc != null) {
0942: // Signatur + Parameter
0943: Class l_class[] = {
0944: java.lang.String.class,
0945: de.ug2t.connector.ACoDataGetter.class,
0946: java.lang.Object.class,
0947: de.ug2t.channel.markup.generic.MuGenericApplication.class };
0948: Object l_param[] = { xValue, this .pem_dataGetter,
0949: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
0950: (MuGenericApplication) xAppl };
0951:
0952: // @@
0953: l_ret = (IUnButton) l_htmlDesc.pcmf_createObject(
0954: l_param, l_class);
0955: }
0956: ;
0957: break;
0958: }
0959: case UnComponentFactory.HALFOBJECT:
0960: case UnComponentFactory.MIXED: {
0961: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
0962: .get(xPl);
0963: if (l_swingDesc != null) {
0964: // Signatur + Parameter
0965: Class l_class[] = {
0966: java.lang.String.class,
0967: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
0968: java.lang.String.class };
0969: Object l_param[] = { xValue,
0970: (IUnApplication) xAppl,
0971: l_swingDesc.pdm_clientClass };
0972:
0973: l_ret = (IUnButton) l_swingDesc.pcmf_createObject(
0974: l_param, l_class);
0975: }
0976: ;
0977: break;
0978: }
0979: default:
0980: }
0981: ;
0982: } catch (Exception e) {
0983: KeLog.pcmf_logException("ug2t", this , e);
0984: }
0985: ;
0986:
0987: return (l_ret);
0988: };
0989:
0990: public final IUnCheckBox pcmf_createCheckBox(int xType,
0991: String xValue, String xString, IUnApplication xAppl) {
0992: return (this .pcmf_createCheckBoxPlugin(xType, xValue, xString,
0993: xAppl, UnComponentFactory.pem_uiEl[1]));
0994: }
0995:
0996: public final IUnCheckBox pcmf_createCheckBoxPlugin(int xType,
0997: String xValue, String xString, IUnApplication xAppl,
0998: String xPl) {
0999: if (xPl == null)
1000: xPl = UnComponentFactory.pem_uiEl[1];
1001:
1002: UnHoDescriptor l_swingDesc = null;
1003: UnMarkupDescriptor l_htmlDesc = null;
1004:
1005: IUnCheckBox l_ret = null;
1006:
1007: try {
1008: switch (xType) {
1009: case UnComponentFactory.MARKUP: {
1010: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1011: .get(xPl);
1012: if (l_htmlDesc != null) {
1013: // Signatur + Parameter
1014: Class l_class[] = {
1015: java.lang.String.class,
1016: java.lang.String.class,
1017: de.ug2t.connector.ACoDataGetter.class,
1018: java.lang.Object.class,
1019: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1020: Object l_param[] = { xValue, xString,
1021: this .pem_dataGetter,
1022: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
1023: (MuGenericApplication) xAppl };
1024:
1025: // @@
1026: l_ret = (IUnCheckBox) l_htmlDesc.pcmf_createObject(
1027: l_param, l_class);
1028: }
1029: ;
1030: break;
1031: }
1032: case UnComponentFactory.HALFOBJECT:
1033: case UnComponentFactory.MIXED: {
1034: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1035: .get(xPl);
1036: if (l_swingDesc != null) {
1037: // Signatur + Parameter
1038: Class l_class[] = {
1039: java.lang.String.class,
1040: java.lang.String.class,
1041: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
1042: java.lang.String.class };
1043: Object l_param[] = { xValue, xString,
1044: (IUnApplication) xAppl,
1045: l_swingDesc.pdm_clientClass };
1046:
1047: l_ret = (IUnCheckBox) l_swingDesc
1048: .pcmf_createObject(l_param, l_class);
1049: }
1050: ;
1051: break;
1052: }
1053: default:
1054: }
1055: ;
1056: } catch (Exception e) {
1057: KeLog.pcmf_logException("ug2t", this , e);
1058: }
1059: ;
1060:
1061: return (l_ret);
1062: };
1063:
1064: public final IUnComboBox pcmf_createComboBox(int xType,
1065: String xName, String xValue, String xString,
1066: IUnApplication xAppl) {
1067: return (this .pcmf_createComboBoxPlugin(xType, xName, xValue,
1068: xString, xAppl, UnComponentFactory.pem_uiEl[3]));
1069: }
1070:
1071: public final IUnComboBox pcmf_createComboBoxPlugin(int xType,
1072: String xName, String xValue, String xString,
1073: IUnApplication xAppl, String xPl) {
1074: if (xPl == null)
1075: xPl = UnComponentFactory.pem_uiEl[3];
1076:
1077: UnHoDescriptor l_swingDesc = null;
1078: UnMarkupDescriptor l_htmlDesc = null;
1079:
1080: IUnComboBox l_ret = null;
1081:
1082: try {
1083: switch (xType) {
1084: case UnComponentFactory.MARKUP: {
1085: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1086: .get(xPl);
1087: if (l_htmlDesc != null) {
1088: // Signatur + Parameter
1089: Class l_class[] = {
1090: java.lang.String.class,
1091: java.lang.String.class,
1092: java.lang.String.class,
1093: de.ug2t.connector.ACoDataGetter.class,
1094: java.lang.Object.class,
1095: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1096: Object l_param[] = { xName, xValue, xString,
1097: this .pem_dataGetter,
1098: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
1099: (MuGenericApplication) xAppl };
1100:
1101: // @@
1102: l_ret = (IUnComboBox) l_htmlDesc.pcmf_createObject(
1103: l_param, l_class);
1104: }
1105: ;
1106: break;
1107: }
1108: case UnComponentFactory.HALFOBJECT:
1109: case UnComponentFactory.MIXED: {
1110: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1111: .get(xPl);
1112: if (l_swingDesc != null) {
1113: // Signatur + Parameter
1114: Class l_class[] = {
1115: java.lang.String.class,
1116: java.lang.String.class,
1117: java.lang.String.class,
1118: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
1119: java.lang.String.class };
1120: Object l_param[] = { xName, xValue, xString,
1121: (IUnApplication) xAppl,
1122: l_swingDesc.pdm_clientClass };
1123:
1124: l_ret = (IUnComboBox) l_swingDesc
1125: .pcmf_createObject(l_param, l_class);
1126: }
1127: ;
1128: break;
1129: }
1130: default:
1131: }
1132: ;
1133: } catch (Exception e) {
1134: KeLog.pcmf_logException("ug2t", this , e);
1135: }
1136: ;
1137:
1138: return (l_ret);
1139: };
1140:
1141: public final IUnListBox pcmf_createListBox(int xType, String xName,
1142: String xValue, String xString, int xSize,
1143: IUnApplication xAppl) {
1144: return (this .pcmf_createListBoxPlugin(xType, xName, xValue,
1145: xString, xSize, xAppl, UnComponentFactory.pem_uiEl[4]));
1146: }
1147:
1148: public final IUnListBox pcmf_createListBoxPlugin(int xType,
1149: String xName, String xValue, String xString, int xSize,
1150: IUnApplication xAppl, String xPl) {
1151: if (xPl == null)
1152: xPl = UnComponentFactory.pem_uiEl[4];
1153:
1154: UnHoDescriptor l_swingDesc = null;
1155: UnMarkupDescriptor l_htmlDesc = null;
1156:
1157: IUnListBox l_ret = null;
1158:
1159: try {
1160: switch (xType) {
1161: case UnComponentFactory.MARKUP: {
1162: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1163: .get(xPl);
1164: if (l_htmlDesc != null) {
1165: // Signatur + Parameter
1166: Class l_class[] = {
1167: java.lang.String.class,
1168: java.lang.String.class,
1169: java.lang.String.class,
1170: Integer.TYPE,
1171: de.ug2t.connector.ACoDataGetter.class,
1172: java.lang.Object.class,
1173: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1174: Object l_param[] = { xName, xValue, xString,
1175: new Integer(xSize), this .pem_dataGetter,
1176: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
1177: (MuGenericApplication) xAppl };
1178:
1179: // @@
1180: l_ret = (IUnListBox) l_htmlDesc.pcmf_createObject(
1181: l_param, l_class);
1182: }
1183: ;
1184: break;
1185: }
1186: case UnComponentFactory.HALFOBJECT:
1187: case UnComponentFactory.MIXED: {
1188: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1189: .get(xPl);
1190: if (l_swingDesc != null) {
1191: // Signatur + Parameter
1192: Class l_class[] = {
1193: java.lang.String.class,
1194: java.lang.String.class,
1195: java.lang.String.class,
1196: Integer.TYPE,
1197: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
1198: java.lang.String.class };
1199: Object l_param[] = { xName, xValue, xString,
1200: new Integer(xSize), (IUnApplication) xAppl,
1201: l_swingDesc.pdm_clientClass };
1202:
1203: l_ret = (IUnListBox) l_swingDesc.pcmf_createObject(
1204: l_param, l_class);
1205: }
1206: ;
1207: break;
1208: }
1209: default:
1210: }
1211: ;
1212: } catch (Exception e) {
1213: KeLog.pcmf_logException("ug2t", this , e);
1214: }
1215: ;
1216:
1217: return (l_ret);
1218: };
1219:
1220: public final IUnPage pcmf_createGuiPage(int xType, String xTitle,
1221: boolean xNoLayout, IUnApplication xAppl) {
1222: return (this .pcmf_createGuiPagePlugin(xType, xTitle, xNoLayout,
1223: xAppl, UnComponentFactory.pem_uiEl[7]));
1224: }
1225:
1226: public final IUnPage pcmf_createGuiPagePlugin(int xType,
1227: String xTitle, boolean xNoLayout, IUnApplication xAppl,
1228: String xPl) {
1229: if (xPl == null)
1230: xPl = UnComponentFactory.pem_uiEl[7];
1231:
1232: UnHoDescriptor l_swingDesc = null;
1233: UnMarkupDescriptor l_htmlDesc = null;
1234:
1235: IUnPage l_ret = null;
1236:
1237: try {
1238: switch (xType) {
1239: case UnComponentFactory.MARKUP: {
1240: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1241: .get(xPl);
1242: if (l_htmlDesc != null) {
1243: // Signatur + Parameter
1244: Class l_class[] = {
1245: java.lang.String.class,
1246: de.ug2t.connector.ACoDataGetter.class,
1247: java.lang.Object.class,
1248: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1249: Object l_param[] = { xTitle, this .pem_dataGetter,
1250: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
1251: (MuGenericApplication) xAppl };
1252:
1253: // @@
1254: l_ret = (IUnPage) l_htmlDesc.pcmf_createObject(
1255: l_param, l_class);
1256: }
1257: ;
1258: break;
1259: }
1260: case UnComponentFactory.HALFOBJECT:
1261: case UnComponentFactory.MIXED: {
1262: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1263: .get(xPl);
1264: if (l_swingDesc != null) {
1265: // Signatur + Parameter
1266: Class l_class[] = {
1267: java.lang.String.class,
1268: Boolean.TYPE,
1269: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
1270: java.lang.String.class };
1271: Object l_param[] = { xTitle,
1272: new Boolean(xNoLayout),
1273: (IUnApplication) xAppl,
1274: l_swingDesc.pdm_clientClass };
1275:
1276: l_ret = (IUnPage) l_swingDesc.pcmf_createObject(
1277: l_param, l_class);
1278: }
1279: ;
1280: break;
1281: }
1282: default:
1283: }
1284: ;
1285: } catch (Exception e) {
1286: KeLog.pcmf_logException("ug2t", this , e);
1287: }
1288: ;
1289: ((IUnLayouted) l_ret).pcmf_setGuiObjNoLayout(xNoLayout);
1290: return (l_ret);
1291: };
1292:
1293: public final IUnPage pcmf_createGuiPageFromTpl(int xType,
1294: String xTitle, IUnApplication xAppl) {
1295: return (this .pcmf_createGuiPageFromTplPlugin(xType, xTitle,
1296: xAppl, UnComponentFactory.pem_uiEl[16]));
1297: }
1298:
1299: public final IUnPage pcmf_createGuiPageFromTplPlugin(int xType,
1300: String xTitle, IUnApplication xAppl, String xPl) {
1301: if (xPl == null)
1302: xPl = UnComponentFactory.pem_uiEl[16];
1303:
1304: UnHoDescriptor l_swingDesc = null;
1305: UnMarkupDescriptor l_htmlDesc = null;
1306:
1307: IUnPage l_ret = null;
1308:
1309: try {
1310: switch (xType) {
1311: case UnComponentFactory.MARKUP: {
1312: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1313: .get(xPl);
1314: if (l_htmlDesc != null) {
1315: // Signatur + Parameter
1316: Class l_class[] = {
1317: java.lang.String.class,
1318: de.ug2t.connector.ACoDataGetter.class,
1319: java.lang.Object.class,
1320: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1321: Object l_param[] = {
1322: xTitle,
1323: this .pem_dataGetter,
1324: this .pem_rootDir + l_htmlDesc.pdm_tplFile
1325: + xTitle
1326: + UnComponentFactory.P_TEMPALTE_EXT,
1327: (MuGenericApplication) xAppl };
1328:
1329: l_ret = (IUnPage) l_htmlDesc.pcmf_createObject(
1330: l_param, l_class);
1331: }
1332: ;
1333: break;
1334: }
1335: case UnComponentFactory.HALFOBJECT:
1336: case UnComponentFactory.MIXED: {
1337: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1338: .get(xPl);
1339: if (l_swingDesc != null) {
1340: // Signatur + Parameter
1341: Class l_class[] = {
1342: java.lang.String.class,
1343: de.ug2t.unifiedGui.interfaces.IUnApplication.class };
1344: Object l_param[] = { xTitle, (IUnApplication) xAppl };
1345:
1346: l_ret = (IUnPage) l_swingDesc.pcmf_createObject(
1347: l_param, l_class);
1348: }
1349: ;
1350: break;
1351: }
1352: default:
1353: }
1354: ;
1355: } catch (Exception e) {
1356: KeLog.pcmf_logException("ug2t", this , e);
1357: }
1358: ;
1359:
1360: return (l_ret);
1361: };
1362:
1363: public final IUnInputField pcmf_createInputField(int xType,
1364: String xName, int xSize, int xLen, String xValue,
1365: boolean xPwd, IUnApplication xAppl) {
1366: return (this .pcmf_createInputFieldPlugin(xType, xName, xSize,
1367: xLen, xValue, xPwd, xAppl,
1368: UnComponentFactory.pem_uiEl[2]));
1369: }
1370:
1371: public final IUnInputField pcmf_createInputFieldPlugin(int xType,
1372: String xName, int xSize, int xLen, String xValue,
1373: boolean xPwd, IUnApplication xAppl, String xPl) {
1374: if (xPl == null)
1375: xPl = UnComponentFactory.pem_uiEl[2];
1376:
1377: UnHoDescriptor l_swingDesc = null;
1378: UnMarkupDescriptor l_htmlDesc = null;
1379:
1380: IUnInputField l_ret = null;
1381:
1382: try {
1383: switch (xType) {
1384: case UnComponentFactory.MARKUP: {
1385: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1386: .get(xPl);
1387: if (l_htmlDesc != null) {
1388: // Signatur + Parameter
1389: Class l_class[] = {
1390: java.lang.String.class,
1391: Integer.TYPE,
1392: Integer.TYPE,
1393: java.lang.String.class,
1394: Boolean.TYPE,
1395: de.ug2t.connector.ACoDataGetter.class,
1396: java.lang.Object.class,
1397: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1398: Object l_param[] = { xName, new Integer(xSize),
1399: new Integer(xLen), xValue,
1400: new Boolean(xPwd), this .pem_dataGetter,
1401: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
1402: (MuGenericApplication) xAppl };
1403:
1404: // @@
1405: l_ret = (IUnInputField) l_htmlDesc
1406: .pcmf_createObject(l_param, l_class);
1407: }
1408: ;
1409: break;
1410: }
1411: case UnComponentFactory.HALFOBJECT:
1412: case UnComponentFactory.MIXED: {
1413: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1414: .get(xPl);
1415: if (l_swingDesc != null) {
1416: // Signatur + Parameter
1417: Class l_class[] = {
1418: java.lang.String.class,
1419: Integer.TYPE,
1420: Integer.TYPE,
1421: java.lang.String.class,
1422: Boolean.TYPE,
1423: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
1424: java.lang.String.class };
1425: Object l_param[] = { xName, new Integer(xSize),
1426: new Integer(xLen), xValue,
1427: new Boolean(xPwd), (IUnApplication) xAppl,
1428: l_swingDesc.pdm_clientClass };
1429:
1430: l_ret = (IUnInputField) l_swingDesc
1431: .pcmf_createObject(l_param, l_class);
1432: }
1433: ;
1434: break;
1435: }
1436: default:
1437: }
1438: ;
1439: } catch (Exception e) {
1440: KeLog.pcmf_logException("ug2t", this , e);
1441: }
1442: ;
1443:
1444: return (l_ret);
1445: };
1446:
1447: public final IUnLink pcmf_createLink(int xType, String xValue,
1448: IUnApplication xAppl) {
1449: return (this .pcmf_createLinkPlugin(xType, xValue, xAppl,
1450: UnComponentFactory.pem_uiEl[14]));
1451: }
1452:
1453: public final IUnLink pcmf_createLinkPlugin(int xType,
1454: String xValue, IUnApplication xAppl, String xPl) {
1455: if (xPl == null)
1456: xPl = UnComponentFactory.pem_uiEl[14];
1457:
1458: UnHoDescriptor l_swingDesc = null;
1459: UnMarkupDescriptor l_htmlDesc = null;
1460:
1461: IUnLink l_ret = null;
1462:
1463: try {
1464: switch (xType) {
1465: case UnComponentFactory.MARKUP: {
1466: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1467: .get(xPl);
1468: if (l_htmlDesc != null) {
1469: // Signatur + Parameter
1470: Class l_class[] = {
1471: java.lang.String.class,
1472: de.ug2t.connector.ACoDataGetter.class,
1473: java.lang.Object.class,
1474: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1475: Object l_param[] = { xValue, this .pem_dataGetter,
1476: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
1477: (MuGenericApplication) xAppl };
1478:
1479: // @@
1480: l_ret = (IUnLink) l_htmlDesc.pcmf_createObject(
1481: l_param, l_class);
1482: }
1483: ;
1484: break;
1485: }
1486: case UnComponentFactory.HALFOBJECT:
1487: case UnComponentFactory.MIXED: {
1488: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1489: .get(xPl);
1490: if (l_swingDesc != null) {
1491: // Signatur + Parameter
1492: Class l_class[] = {
1493: java.lang.String.class,
1494: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
1495: java.lang.String.class };
1496: Object l_param[] = { xValue,
1497: (IUnApplication) xAppl,
1498: l_swingDesc.pdm_clientClass };
1499:
1500: l_ret = (IUnLink) l_swingDesc.pcmf_createObject(
1501: l_param, l_class);
1502: }
1503: ;
1504: break;
1505: }
1506: default:
1507: }
1508: ;
1509: } catch (Exception e) {
1510: KeLog.pcmf_logException("ug2t", this , e);
1511: }
1512: ;
1513:
1514: return (l_ret);
1515: };
1516:
1517: public final IUnLink pcmf_createRoLink(int xType, String xValue,
1518: IUnApplication xAppl) {
1519: return (this .pcmf_createRoLinkPlugin(xType, xValue, xAppl,
1520: UnComponentFactory.pem_uiEl[14]));
1521: }
1522:
1523: public final IUnLink pcmf_createRoLinkPlugin(int xType,
1524: String xValue, IUnApplication xAppl, String xPl) {
1525: if (xPl == null)
1526: xPl = UnComponentFactory.pem_uiEl[36];
1527:
1528: UnHoDescriptor l_swingDesc = null;
1529: UnMarkupDescriptor l_htmlDesc = null;
1530:
1531: IUnLink l_ret = null;
1532:
1533: try {
1534: switch (xType) {
1535: case UnComponentFactory.MARKUP: {
1536: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1537: .get(xPl);
1538: if (l_htmlDesc != null) {
1539: // Signatur + Parameter
1540: Class l_class[] = {
1541: java.lang.String.class,
1542: de.ug2t.connector.ACoDataGetter.class,
1543: java.lang.Object.class,
1544: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1545: Object l_param[] = { xValue, this .pem_dataGetter,
1546: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
1547: (MuGenericApplication) xAppl };
1548:
1549: // @@
1550: l_ret = (IUnLink) l_htmlDesc.pcmf_createObject(
1551: l_param, l_class);
1552: }
1553: ;
1554: break;
1555: }
1556: case UnComponentFactory.HALFOBJECT:
1557: case UnComponentFactory.MIXED: {
1558: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1559: .get(xPl);
1560: if (l_swingDesc != null) {
1561: // Signatur + Parameter
1562: Class l_class[] = {
1563: java.lang.String.class,
1564: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
1565: java.lang.String.class };
1566: Object l_param[] = { xValue,
1567: (IUnApplication) xAppl,
1568: l_swingDesc.pdm_clientClass };
1569:
1570: l_ret = (IUnLink) l_swingDesc.pcmf_createObject(
1571: l_param, l_class);
1572: }
1573: ;
1574: break;
1575: }
1576: default:
1577: }
1578: ;
1579: } catch (Exception e) {
1580: KeLog.pcmf_logException("ug2t", this , e);
1581: }
1582: ;
1583:
1584: return (l_ret);
1585: };
1586:
1587: public final IUnApplication pcmf_createAppl(int xType,
1588: String xRootUrl, int xPort, boolean xMDI) {
1589: return (this .pcmf_createApplPlugin(xType, xRootUrl, xPort,
1590: xMDI, UnComponentFactory.pem_uiEl[13]));
1591: }
1592:
1593: public final IUnApplication pcmf_createApplPlugin(int xType,
1594: String xRootUrl, int xPort, boolean xMDI, String xPl) {
1595: if (xPl == null)
1596: xPl = UnComponentFactory.pem_uiEl[13];
1597:
1598: UnHoDescriptor l_swingDesc = null;
1599: UnMarkupDescriptor l_htmlDesc = null;
1600:
1601: IUnApplication l_ret = null;
1602:
1603: try {
1604: switch (xType) {
1605: case UnComponentFactory.MARKUP: {
1606: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1607: .get(xPl);
1608: if (l_htmlDesc != null) {
1609: // Signatur + Parameter
1610: Class l_class[] = { java.lang.String.class,
1611: Integer.TYPE, Boolean.TYPE };
1612: Object l_param[] = { xRootUrl, new Integer(xPort),
1613: new Boolean(xMDI) };
1614:
1615: l_ret = (IUnApplication) l_htmlDesc
1616: .pcmf_createObject(l_param, l_class);
1617: }
1618: ;
1619: ((MuGenericApplication) l_ret)
1620: .pcmf_setReqCtrl(this .pem_reqCtrl);
1621:
1622: break;
1623: }
1624: case UnComponentFactory.HALFOBJECT:
1625: case UnComponentFactory.MIXED: {
1626: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1627: .get(xPl);
1628: if (l_swingDesc != null) {
1629: // Signatur + Parameter
1630: Class l_class[] = { java.lang.String.class,
1631: Boolean.TYPE, Integer.TYPE,
1632: java.lang.String.class };
1633: Object l_param[] = { xRootUrl, new Boolean(xMDI),
1634: new Integer(xPort),
1635: l_swingDesc.pdm_clientClass };
1636:
1637: l_ret = (IUnApplication) l_swingDesc
1638: .pcmf_createObject(l_param, l_class);
1639: }
1640: ;
1641: break;
1642: }
1643: default:
1644: }
1645: ;
1646: } catch (Exception e) {
1647: KeLog.pcmf_logException("ug2t", this , e);
1648: }
1649: ;
1650:
1651: return (l_ret);
1652: };
1653:
1654: public final IUnApplication pcmf_createAppl(int xType,
1655: String xRootUrl, int xPort, boolean xMDI, String xPlaf) {
1656: return (this .pcmf_createApplPlugin(xType, xRootUrl, xPort,
1657: xMDI, xPlaf, UnComponentFactory.pem_uiEl[13]));
1658: }
1659:
1660: public final IUnApplication pcmf_createApplPlugin(int xType,
1661: String xRootUrl, int xPort, boolean xMDI, String xPlaf,
1662: String xPl) {
1663: if (xPl == null)
1664: xPl = UnComponentFactory.pem_uiEl[13];
1665:
1666: UnHoDescriptor l_swingDesc = null;
1667: UnMarkupDescriptor l_htmlDesc = null;
1668:
1669: IUnApplication l_ret = null;
1670:
1671: try {
1672: switch (xType) {
1673: case UnComponentFactory.MARKUP: {
1674: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1675: .get(xPl);
1676: if (l_htmlDesc != null) {
1677: // Signatur + Parameter
1678: Class l_class[] = { java.lang.String.class,
1679: Integer.TYPE, Boolean.TYPE };
1680: Object l_param[] = { xRootUrl, new Integer(xPort),
1681: new Boolean(xMDI) };
1682:
1683: l_ret = (IUnApplication) l_htmlDesc
1684: .pcmf_createObject(l_param, l_class);
1685: }
1686: ;
1687: break;
1688: }
1689: case UnComponentFactory.HALFOBJECT:
1690: case UnComponentFactory.MIXED: {
1691: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1692: .get(xPl);
1693: if (l_swingDesc != null) {
1694: // Signatur + Parameter
1695: Class l_class[] = { java.lang.String.class,
1696: Boolean.TYPE, Integer.TYPE,
1697: java.lang.String.class,
1698: java.lang.String.class };
1699: Object l_param[] = { xRootUrl, new Boolean(xMDI),
1700: new Integer(xPort), xPlaf,
1701: l_swingDesc.pdm_clientClass };
1702:
1703: l_ret = (IUnApplication) l_swingDesc
1704: .pcmf_createObject(l_param, l_class);
1705: }
1706: ;
1707: break;
1708: }
1709: default:
1710: }
1711: ;
1712: } catch (Exception e) {
1713: KeLog.pcmf_logException("ug2t", this , e);
1714: }
1715: ;
1716:
1717: return (l_ret);
1718: };
1719:
1720: public final MuGenericRaw pcmf_createMuRaw(int xType, String xName,
1721: String xHtml, IUnApplication xAppl) {
1722: return (this .pcmf_createMuRawPlugin(xType, xName, xHtml, xAppl,
1723: UnComponentFactory.pem_uiEl[15]));
1724: }
1725:
1726: public final MuGenericRaw pcmf_createMuRawPlugin(int xType,
1727: String xName, String xHtml, IUnApplication xAppl, String xPl) {
1728: if (xPl == null)
1729: xPl = UnComponentFactory.pem_uiEl[15];
1730:
1731: UnMarkupDescriptor l_htmlDesc = null;
1732:
1733: MuGenericRaw l_ret = null;
1734:
1735: try {
1736: switch (xType) {
1737: case UnComponentFactory.MARKUP: {
1738: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1739: .get(xPl);
1740: if (l_htmlDesc != null) {
1741: // Signatur + Parameter
1742: Class l_class[] = {
1743: java.lang.String.class,
1744: java.lang.String.class,
1745: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1746: Object l_param[] = { xName, xHtml, xAppl };
1747:
1748: // @@
1749: l_ret = (MuGenericRaw) l_htmlDesc
1750: .pcmf_createObject(l_param, l_class);
1751: }
1752: ;
1753: break;
1754: }
1755: case UnComponentFactory.HALFOBJECT:
1756: case UnComponentFactory.MIXED: {
1757: l_ret = null;
1758: break;
1759: }
1760: default:
1761: }
1762: ;
1763: } catch (Exception e) {
1764: KeLog.pcmf_logException("ug2t", this , e);
1765: }
1766: ;
1767:
1768: return (l_ret);
1769: };
1770:
1771: public final MuGenericTemplateSection pcmf_createMuTplSection(
1772: int xType, String xName, String xHtml, boolean xIsExtRef,
1773: IUnApplication xAppl) {
1774: return (this .pcmf_createMuTplSectionPlugin(xType, xName, xHtml,
1775: xIsExtRef, xAppl, UnComponentFactory.pem_uiEl[35]));
1776: }
1777:
1778: public final MuGenericTemplateSection pcmf_createMuTplSectionPlugin(
1779: int xType, String xName, String xHtml, boolean xIsExtRef,
1780: IUnApplication xAppl, String xPl) {
1781: if (xPl == null)
1782: xPl = UnComponentFactory.pem_uiEl[35];
1783:
1784: UnMarkupDescriptor l_htmlDesc = null;
1785:
1786: MuGenericTemplateSection l_ret = null;
1787:
1788: try {
1789: switch (xType) {
1790: case UnComponentFactory.MARKUP: {
1791: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1792: .get(xPl);
1793: if (l_htmlDesc != null) {
1794: // Signatur + Parameter
1795: Class l_class[] = {
1796: java.lang.String.class,
1797: java.lang.String.class,
1798: Boolean.TYPE,
1799: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1800: Object l_param[] = { xName, xHtml,
1801: new Boolean(xIsExtRef), xAppl };
1802:
1803: // @@
1804: l_ret = (MuGenericTemplateSection) l_htmlDesc
1805: .pcmf_createObject(l_param, l_class);
1806: }
1807: ;
1808: break;
1809: }
1810: case UnComponentFactory.HALFOBJECT:
1811: case UnComponentFactory.MIXED: {
1812: l_ret = null;
1813: break;
1814: }
1815: default:
1816: }
1817: ;
1818: } catch (Exception e) {
1819: KeLog.pcmf_logException("ug2t", this , e);
1820: }
1821: ;
1822:
1823: return (l_ret);
1824: };
1825:
1826: public final IUnLabel pcmf_createText(int xType, String xName,
1827: String xValue, IUnApplication xAppl) {
1828: return (this .pcmf_createTextPlugin(xType, xName, xValue, xAppl,
1829: UnComponentFactory.pem_uiEl[12]));
1830: }
1831:
1832: public final IUnLabel pcmf_createTextPlugin(int xType,
1833: String xName, String xValue, IUnApplication xAppl,
1834: String xPl) {
1835: if (xPl == null)
1836: xPl = UnComponentFactory.pem_uiEl[12];
1837:
1838: UnHoDescriptor l_swingDesc = null;
1839: UnMarkupDescriptor l_htmlDesc = null;
1840:
1841: IUnLabel l_ret = null;
1842:
1843: try {
1844: switch (xType) {
1845: case UnComponentFactory.MARKUP: {
1846: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1847: .get(xPl);
1848: if (l_htmlDesc != null) {
1849: // Signatur + Parameter
1850: Class l_class[] = {
1851: java.lang.String.class,
1852: java.lang.String.class,
1853: de.ug2t.connector.ACoDataGetter.class,
1854: java.lang.Object.class,
1855: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1856: Object l_param[] = { xName, xValue,
1857: this .pem_dataGetter,
1858: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
1859: (MuGenericApplication) xAppl };
1860:
1861: // @@
1862: l_ret = (IUnLabel) l_htmlDesc.pcmf_createObject(
1863: l_param, l_class);
1864: }
1865: ;
1866: break;
1867: }
1868: case UnComponentFactory.HALFOBJECT:
1869: case UnComponentFactory.MIXED: {
1870: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1871: .get(xPl);
1872: if (l_swingDesc != null) {
1873: // Signatur + Parameter
1874: Class l_class[] = {
1875: java.lang.String.class,
1876: java.lang.String.class,
1877: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
1878: java.lang.String.class };
1879: Object l_param[] = { xName, xValue,
1880: (IUnApplication) xAppl,
1881: l_swingDesc.pdm_clientClass };
1882:
1883: l_ret = (IUnLabel) l_swingDesc.pcmf_createObject(
1884: l_param, l_class);
1885: }
1886: ;
1887: break;
1888: }
1889: default:
1890: }
1891: ;
1892: } catch (Exception e) {
1893: KeLog.pcmf_logException("ug2t", this , e);
1894: }
1895: ;
1896:
1897: return (l_ret);
1898: };
1899:
1900: public final IUnAnchoredPopUp pcmf_createAPopup(int xType,
1901: String xName, IUnApplication xAppl) {
1902: return (this .pcmf_createAPopupPlugin(xType, xName, xAppl,
1903: UnComponentFactory.pem_uiEl[42]));
1904: }
1905:
1906: public final IUnAnchoredPopUp pcmf_createAPopupPlugin(int xType,
1907: String xName, IUnApplication xAppl, String xPl) {
1908: if (xPl == null)
1909: xPl = UnComponentFactory.pem_uiEl[42];
1910:
1911: UnHoDescriptor l_swingDesc = null;
1912: UnMarkupDescriptor l_htmlDesc = null;
1913:
1914: IUnAnchoredPopUp l_ret = null;
1915:
1916: try {
1917: switch (xType) {
1918: case UnComponentFactory.MARKUP: {
1919: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1920: .get(xPl);
1921: if (l_htmlDesc != null) {
1922: // Signatur + Parameter
1923: Class l_class[] = {
1924: java.lang.String.class,
1925: de.ug2t.connector.ACoDataGetter.class,
1926: java.lang.Object.class,
1927: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1928: Object l_param[] = { xName, this .pem_dataGetter,
1929: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
1930: (MuGenericApplication) xAppl };
1931:
1932: // @@
1933: l_ret = (IUnAnchoredPopUp) l_htmlDesc
1934: .pcmf_createObject(l_param, l_class);
1935: }
1936: ;
1937: break;
1938: }
1939: case UnComponentFactory.HALFOBJECT:
1940: case UnComponentFactory.MIXED: {
1941: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
1942: .get(xPl);
1943: if (l_swingDesc != null) {
1944: // Signatur + Parameter
1945: Class l_class[] = {
1946: java.lang.String.class,
1947: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
1948: java.lang.String.class };
1949: Object l_param[] = { xName, (IUnApplication) xAppl,
1950: l_swingDesc.pdm_clientClass };
1951:
1952: l_ret = (IUnAnchoredPopUp) l_swingDesc
1953: .pcmf_createObject(l_param, l_class);
1954: }
1955: ;
1956: break;
1957: }
1958: default:
1959: }
1960: ;
1961: } catch (Exception e) {
1962: KeLog.pcmf_logException("ug2t", this , e);
1963: }
1964: ;
1965:
1966: return (l_ret);
1967: };
1968:
1969: public final IUnSeparator pcmf_createLine(int xType, String xName,
1970: int xLen, IUnApplication xAppl) {
1971: return (this .pcmf_createLinePlugin(xType, xName, xLen, xAppl,
1972: UnComponentFactory.pem_uiEl[29]));
1973: }
1974:
1975: public final IUnSeparator pcmf_createLinePlugin(int xType,
1976: String xName, int xLen, IUnApplication xAppl, String xPl) {
1977: if (xPl == null)
1978: xPl = UnComponentFactory.pem_uiEl[29];
1979:
1980: UnHoDescriptor l_swingDesc = null;
1981: UnMarkupDescriptor l_htmlDesc = null;
1982:
1983: IUnSeparator l_ret = null;
1984:
1985: try {
1986: switch (xType) {
1987: case UnComponentFactory.MARKUP: {
1988: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
1989: .get(xPl);
1990: if (l_htmlDesc != null) {
1991: // Signatur + Parameter
1992: Class l_class[] = {
1993: java.lang.String.class,
1994: de.ug2t.connector.ACoDataGetter.class,
1995: java.lang.Object.class,
1996: de.ug2t.channel.markup.generic.MuGenericApplication.class };
1997: Object l_param[] = { xName, this .pem_dataGetter,
1998: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
1999: (MuGenericApplication) xAppl };
2000:
2001: // @@
2002: l_ret = (IUnSeparator) l_htmlDesc
2003: .pcmf_createObject(l_param, l_class);
2004: }
2005: ;
2006: break;
2007: }
2008: case UnComponentFactory.HALFOBJECT:
2009: case UnComponentFactory.MIXED: {
2010: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2011: .get(xPl);
2012: if (l_swingDesc != null) {
2013: // Signatur + Parameter
2014: Class l_class[] = {
2015: java.lang.String.class,
2016: Integer.TYPE,
2017: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2018: java.lang.String.class };
2019: Object l_param[] = { xName, new Integer(xLen),
2020: (IUnApplication) xAppl,
2021: l_swingDesc.pdm_clientClass };
2022:
2023: l_ret = (IUnSeparator) l_swingDesc
2024: .pcmf_createObject(l_param, l_class);
2025: }
2026: ;
2027: break;
2028: }
2029: default:
2030: }
2031: ;
2032: } catch (Exception e) {
2033: KeLog.pcmf_logException("ug2t", this , e);
2034: }
2035: ;
2036:
2037: return (l_ret);
2038: };
2039:
2040: public final IUnSpinner pcmf_createSpinner(int xType, String xName,
2041: IUnApplication xAppl) {
2042: return (this .pcmf_createSpinnerPlugin(xType, xName, xAppl,
2043: UnComponentFactory.pem_uiEl[29]));
2044: }
2045:
2046: public final IUnSpinner pcmf_createSpinnerPlugin(int xType,
2047: String xName, IUnApplication xAppl, String xPl) {
2048: if (xPl == null)
2049: xPl = UnComponentFactory.pem_uiEl[43];
2050:
2051: UnHoDescriptor l_swingDesc = null;
2052: UnMarkupDescriptor l_htmlDesc = null;
2053:
2054: IUnSpinner l_ret = null;
2055:
2056: try {
2057: switch (xType) {
2058: case UnComponentFactory.MARKUP: {
2059: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2060: .get(xPl);
2061: if (l_htmlDesc != null) {
2062: // Signatur + Parameter
2063: Class l_class[] = {
2064: java.lang.String.class,
2065: de.ug2t.connector.ACoDataGetter.class,
2066: java.lang.Object.class,
2067: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2068: Object l_param[] = { xName, this .pem_dataGetter,
2069: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2070: (MuGenericApplication) xAppl };
2071:
2072: // @@
2073: l_ret = (IUnSpinner) l_htmlDesc.pcmf_createObject(
2074: l_param, l_class);
2075: }
2076: ;
2077: break;
2078: }
2079: case UnComponentFactory.HALFOBJECT:
2080: case UnComponentFactory.MIXED: {
2081: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2082: .get(xPl);
2083: if (l_swingDesc != null) {
2084: // Signatur + Parameter
2085: Class l_class[] = {
2086: java.lang.String.class,
2087: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2088: java.lang.String.class };
2089: Object l_param[] = { xName, (IUnApplication) xAppl,
2090: l_swingDesc.pdm_clientClass };
2091:
2092: l_ret = (IUnSpinner) l_swingDesc.pcmf_createObject(
2093: l_param, l_class);
2094: }
2095: ;
2096: break;
2097: }
2098: default:
2099: }
2100: ;
2101: } catch (Exception e) {
2102: KeLog.pcmf_logException("ug2t", this , e);
2103: }
2104: ;
2105:
2106: return (l_ret);
2107: };
2108:
2109: public final IUnImage pcmf_createImage(int xType, String xName,
2110: String xValue, IUnApplication xAppl) {
2111: return (this .pcmf_createImagePlugin(xType, xName, xValue,
2112: xAppl, UnComponentFactory.pem_uiEl[19]));
2113: }
2114:
2115: public final IUnImage pcmf_createImagePlugin(int xType,
2116: String xName, String xValue, IUnApplication xAppl,
2117: String xPl) {
2118: if (xPl == null)
2119: xPl = UnComponentFactory.pem_uiEl[19];
2120:
2121: UnHoDescriptor l_swingDesc = null;
2122: UnMarkupDescriptor l_htmlDesc = null;
2123:
2124: IUnImage l_ret = null;
2125:
2126: try {
2127: switch (xType) {
2128: case UnComponentFactory.MARKUP: {
2129: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2130: .get(xPl);
2131: if (l_htmlDesc != null) {
2132: // Signatur + Parameter
2133: Class l_class[] = {
2134: java.lang.String.class,
2135: java.lang.String.class,
2136: de.ug2t.connector.ACoDataGetter.class,
2137: java.lang.Object.class,
2138: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2139: Object l_param[] = { xName, xValue,
2140: this .pem_dataGetter,
2141: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2142: (MuGenericApplication) xAppl };
2143:
2144: // @@
2145: l_ret = (IUnImage) l_htmlDesc.pcmf_createObject(
2146: l_param, l_class);
2147: }
2148: ;
2149: break;
2150: }
2151: case UnComponentFactory.HALFOBJECT:
2152: case UnComponentFactory.MIXED: {
2153: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2154: .get(xPl);
2155: if (l_swingDesc != null) {
2156: // Signatur + Parameter
2157: Class l_class[] = {
2158: java.lang.String.class,
2159: java.lang.String.class,
2160: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2161: java.lang.String.class };
2162: Object l_param[] = { xName, xValue,
2163: (IUnApplication) xAppl,
2164: l_swingDesc.pdm_clientClass };
2165:
2166: l_ret = (IUnImage) l_swingDesc.pcmf_createObject(
2167: l_param, l_class);
2168: }
2169: ;
2170: break;
2171: }
2172: default:
2173: }
2174: ;
2175: } catch (Exception e) {
2176: KeLog.pcmf_logException("ug2t", this , e);
2177: }
2178: ;
2179:
2180: return (l_ret);
2181: };
2182:
2183: public final IUnRadioPanel pcmf_createRadioButtons(int xType,
2184: String xName, String xValue, String xString,
2185: boolean xNoLayout, IUnApplication xAppl) {
2186: return (this .pcmf_createRadioButtonsPlugin(xType, xName,
2187: xValue, xString, xNoLayout, xAppl,
2188: UnComponentFactory.pem_uiEl[5]));
2189: }
2190:
2191: public final IUnRadioPanel pcmf_createRadioButtonsPlugin(int xType,
2192: String xName, String xValue, String xString,
2193: boolean xNoLayout, IUnApplication xAppl, String xPl) {
2194: if (xPl == null)
2195: xPl = UnComponentFactory.pem_uiEl[5];
2196:
2197: UnHoDescriptor l_swingDesc = null;
2198: UnMarkupDescriptor l_htmlDesc = null;
2199:
2200: IUnRadioPanel l_ret = null;
2201:
2202: try {
2203: switch (xType) {
2204: case UnComponentFactory.MARKUP: {
2205: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2206: .get(xPl);
2207: if (l_htmlDesc != null) {
2208: // Signatur + Parameter
2209: Class l_class[] = {
2210: java.lang.String.class,
2211: java.lang.String.class,
2212: java.lang.String.class,
2213: de.ug2t.connector.ACoDataGetter.class,
2214: java.lang.Object.class,
2215: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2216: Object l_param[] = { xName, xValue, xString,
2217: this .pem_dataGetter,
2218: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2219: (MuGenericApplication) xAppl };
2220:
2221: // @@
2222: l_ret = (IUnRadioPanel) l_htmlDesc
2223: .pcmf_createObject(l_param, l_class);
2224: }
2225: ;
2226: break;
2227: }
2228: case UnComponentFactory.HALFOBJECT:
2229: case UnComponentFactory.MIXED: {
2230: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2231: .get(xPl);
2232: if (l_swingDesc != null) {
2233: // Signatur + Parameter
2234: Class l_class[] = {
2235: java.lang.String.class,
2236: java.lang.String.class,
2237: java.lang.String.class,
2238: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2239: java.lang.String.class };
2240: Object l_param[] = { xName, xValue, xString,
2241: (IUnApplication) xAppl,
2242: l_swingDesc.pdm_clientClass };
2243:
2244: l_ret = (IUnRadioPanel) l_swingDesc
2245: .pcmf_createObject(l_param, l_class);
2246: }
2247: ;
2248: break;
2249: }
2250: default:
2251: }
2252: ;
2253: } catch (Exception e) {
2254: KeLog.pcmf_logException("ug2t", this , e);
2255: }
2256: ;
2257: ((IUnLayouted) l_ret).pcmf_setGuiObjNoLayout(xNoLayout);
2258: return (l_ret);
2259: };
2260:
2261: public final IUnRadioButton pcmf_createSingleRadioButtons(
2262: int xType, String xName, String xValue, String xGroup,
2263: String xString, IUnApplication xAppl) {
2264: return (this .pcmf_createSingleRadioButtonsPlugin(xType, xName,
2265: xValue, xString, xGroup, xAppl,
2266: UnComponentFactory.pem_uiEl[37]));
2267: }
2268:
2269: public final IUnRadioButton pcmf_createSingleRadioButtonsPlugin(
2270: int xType, String xName, String xValue, String xString,
2271: String xGroup, IUnApplication xAppl, String xPl) {
2272: if (xPl == null)
2273: xPl = UnComponentFactory.pem_uiEl[37];
2274:
2275: UnHoDescriptor l_swingDesc = null;
2276: UnMarkupDescriptor l_htmlDesc = null;
2277:
2278: IUnRadioButton l_ret = null;
2279:
2280: try {
2281: switch (xType) {
2282: case UnComponentFactory.MARKUP: {
2283: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2284: .get(xPl);
2285: if (l_htmlDesc != null) {
2286: // Signatur + Parameter
2287: Class l_class[] = {
2288: java.lang.String.class,
2289: java.lang.String.class,
2290: java.lang.String.class,
2291: java.lang.String.class,
2292: de.ug2t.connector.ACoDataGetter.class,
2293: java.lang.Object.class,
2294: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2295: Object l_param[] = { xName, xValue, xString,
2296: xGroup, this .pem_dataGetter,
2297: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2298: (MuGenericApplication) xAppl };
2299:
2300: // @@
2301: l_ret = (IUnRadioButton) l_htmlDesc
2302: .pcmf_createObject(l_param, l_class);
2303: }
2304: ;
2305: break;
2306: }
2307: case UnComponentFactory.HALFOBJECT:
2308: case UnComponentFactory.MIXED: {
2309: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2310: .get(xPl);
2311: if (l_swingDesc != null) {
2312: // Signatur + Parameter
2313: Class l_class[] = {
2314: java.lang.String.class,
2315: java.lang.String.class,
2316: java.lang.String.class,
2317: java.lang.String.class,
2318: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2319: java.lang.String.class };
2320: Object l_param[] = { xName, xValue, xString,
2321: xGroup, (IUnApplication) xAppl,
2322: l_swingDesc.pdm_clientClass };
2323:
2324: l_ret = (IUnRadioButton) l_swingDesc
2325: .pcmf_createObject(l_param, l_class);
2326: }
2327: ;
2328: break;
2329: }
2330: default:
2331: }
2332: ;
2333: } catch (Exception e) {
2334: KeLog.pcmf_logException("ug2t", this , e);
2335: }
2336: ;
2337:
2338: return (l_ret);
2339: };
2340:
2341: public final IUnProgressBar pcmf_createProgressBar(int xType,
2342: String xName, String xValue, int xMin, int xMax,
2343: IUnApplication xAppl) {
2344: return (this .pcmf_createProgressBarPlugin(xType, xName, xValue,
2345: xMin, xMax, xAppl, UnComponentFactory.pem_uiEl[38]));
2346: }
2347:
2348: public final IUnProgressBar pcmf_createProgressBarPlugin(int xType,
2349: String xName, String xValue, int xMin, int xMax,
2350: IUnApplication xAppl, String xPl) {
2351: if (xPl == null)
2352: xPl = UnComponentFactory.pem_uiEl[38];
2353:
2354: UnHoDescriptor l_swingDesc = null;
2355: UnMarkupDescriptor l_htmlDesc = null;
2356:
2357: IUnProgressBar l_ret = null;
2358:
2359: try {
2360: switch (xType) {
2361: case UnComponentFactory.MARKUP: {
2362: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2363: .get(xPl);
2364: if (l_htmlDesc != null) {
2365: // Signatur + Parameter
2366: Class l_class[] = {
2367: java.lang.String.class,
2368: java.lang.String.class,
2369: Integer.TYPE,
2370: Integer.TYPE,
2371: de.ug2t.connector.ACoDataGetter.class,
2372: java.lang.Object.class,
2373: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2374: Object l_param[] = { xName, xValue,
2375: new Integer(xMin), new Integer(xMax),
2376: this .pem_dataGetter,
2377: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2378: (MuGenericApplication) xAppl };
2379:
2380: // @@
2381:
2382: l_ret = (IUnProgressBar) l_htmlDesc
2383: .pcmf_createObject(l_param, l_class);
2384: }
2385: ;
2386: break;
2387: }
2388: case UnComponentFactory.HALFOBJECT:
2389: case UnComponentFactory.MIXED: {
2390: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2391: .get(xPl);
2392: if (l_swingDesc != null) {
2393: // Signatur + Parameter
2394: Class l_class[] = {
2395: java.lang.String.class,
2396: java.lang.String.class,
2397: Integer.TYPE,
2398: Integer.TYPE,
2399: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2400: java.lang.String.class };
2401: Object l_param[] = { xName, xValue,
2402: new Integer(xMin), new Integer(xMax),
2403: (IUnApplication) xAppl,
2404: l_swingDesc.pdm_clientClass };
2405:
2406: l_ret = (IUnProgressBar) l_swingDesc
2407: .pcmf_createObject(l_param, l_class);
2408: }
2409: ;
2410: break;
2411: }
2412: default:
2413: }
2414: ;
2415: } catch (Exception e) {
2416: KeLog.pcmf_logException("ug2t", this , e);
2417: }
2418: ;
2419:
2420: return (l_ret);
2421: };
2422:
2423: public final IUnBox pcmf_createBox(int xType, String xName,
2424: int xHVType, IUnApplication xAppl) {
2425: return (this .pcmf_createBoxPlugin(xType, xName, xHVType, xAppl,
2426: UnComponentFactory.pem_uiEl[40]));
2427: }
2428:
2429: public final IUnBox pcmf_createBoxPlugin(int xType, String xName,
2430: int xHVType, IUnApplication xAppl, String xPl) {
2431: if (xPl == null)
2432: xPl = UnComponentFactory.pem_uiEl[40];
2433:
2434: UnHoDescriptor l_swingDesc = null;
2435: UnMarkupDescriptor l_htmlDesc = null;
2436:
2437: IUnBox l_ret = null;
2438:
2439: try {
2440: switch (xType) {
2441: case UnComponentFactory.MARKUP: {
2442: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2443: .get(xPl);
2444: if (l_htmlDesc != null) {
2445: // Signatur + Parameter
2446: Class l_class[] = {
2447: java.lang.String.class,
2448: de.ug2t.connector.ACoDataGetter.class,
2449: java.lang.Object.class,
2450: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2451: Object l_param[] = { xName, this .pem_dataGetter,
2452: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2453: (MuGenericApplication) xAppl };
2454:
2455: // @@
2456:
2457: l_ret = (IUnBox) l_htmlDesc.pcmf_createObject(
2458: l_param, l_class);
2459: }
2460: ;
2461: break;
2462: }
2463: case UnComponentFactory.HALFOBJECT:
2464: case UnComponentFactory.MIXED: {
2465: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2466: .get(xPl);
2467: if (l_swingDesc != null) {
2468: // Signatur + Parameter
2469: Class l_class[] = {
2470: java.lang.String.class,
2471: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2472: java.lang.String.class };
2473: Object l_param[] = { xName, (IUnApplication) xAppl,
2474: l_swingDesc.pdm_clientClass };
2475:
2476: l_ret = (IUnBox) l_swingDesc.pcmf_createObject(
2477: l_param, l_class);
2478: }
2479: ;
2480: break;
2481: }
2482: default:
2483: }
2484: ;
2485: l_ret.pcmf_setBoxHVType(xHVType);
2486: } catch (Exception e) {
2487: KeLog.pcmf_logException("ug2t", this , e);
2488: }
2489: ;
2490:
2491: return (l_ret);
2492: };
2493:
2494: public final IUnHtmlPane pcmf_createHtmlPane(int xType,
2495: String xName, String xHtml, IUnApplication xAppl) {
2496: return (this .pcmf_createHtmlPanePlugin(xType, xName, xHtml,
2497: xAppl, UnComponentFactory.pem_uiEl[41]));
2498: }
2499:
2500: public final IUnHtmlPane pcmf_createHtmlPanePlugin(int xType,
2501: String xName, String xHtml, IUnApplication xAppl, String xPl) {
2502: if (xPl == null)
2503: xPl = UnComponentFactory.pem_uiEl[41];
2504:
2505: UnHoDescriptor l_swingDesc = null;
2506: UnMarkupDescriptor l_htmlDesc = null;
2507:
2508: IUnHtmlPane l_ret = null;
2509:
2510: try {
2511: switch (xType) {
2512: case UnComponentFactory.MARKUP: {
2513: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2514: .get(xPl);
2515: if (l_htmlDesc != null) {
2516: // Signatur + Parameter
2517: Class l_class[] = {
2518: java.lang.String.class,
2519: java.lang.String.class,
2520: de.ug2t.connector.ACoDataGetter.class,
2521: java.lang.Object.class,
2522: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2523: Object l_param[] = { xName, xHtml,
2524: this .pem_dataGetter,
2525: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2526: (MuGenericApplication) xAppl };
2527:
2528: // @@
2529:
2530: l_ret = (IUnHtmlPane) l_htmlDesc.pcmf_createObject(
2531: l_param, l_class);
2532: }
2533: ;
2534: break;
2535: }
2536: case UnComponentFactory.HALFOBJECT:
2537: case UnComponentFactory.MIXED: {
2538: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2539: .get(xPl);
2540: if (l_swingDesc != null) {
2541: // Signatur + Parameter
2542: Class l_class[] = {
2543: java.lang.String.class,
2544: java.lang.String.class,
2545: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2546: java.lang.String.class };
2547: Object l_param[] = { xName, xHtml,
2548: (IUnApplication) xAppl,
2549: l_swingDesc.pdm_clientClass };
2550:
2551: l_ret = (IUnHtmlPane) l_swingDesc
2552: .pcmf_createObject(l_param, l_class);
2553: }
2554: ;
2555: break;
2556: }
2557: default:
2558: }
2559: ;
2560: } catch (Exception e) {
2561: KeLog.pcmf_logException("ug2t", this , e);
2562: }
2563: ;
2564:
2565: return (l_ret);
2566: };
2567:
2568: public final IUnTextArea pcmf_createTextBox(int xType,
2569: String xName, int xCols, int xRows, String xValue,
2570: IUnApplication xAppl) {
2571: return (this .pcmf_createTextBoxPlugin(xType, xName, xCols,
2572: xRows, xValue, xAppl, UnComponentFactory.pem_uiEl[8]));
2573: }
2574:
2575: public final IUnTextArea pcmf_createTextBoxPlugin(int xType,
2576: String xName, int xCols, int xRows, String xValue,
2577: IUnApplication xAppl, String xPl) {
2578: if (xPl == null)
2579: xPl = UnComponentFactory.pem_uiEl[8];
2580:
2581: UnHoDescriptor l_swingDesc = null;
2582: UnMarkupDescriptor l_htmlDesc = null;
2583:
2584: IUnTextArea l_ret = null;
2585:
2586: try {
2587: switch (xType) {
2588: case UnComponentFactory.MARKUP: {
2589: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2590: .get(xPl);
2591: if (l_htmlDesc != null) {
2592: // Signatur + Parameter
2593: Class l_class[] = {
2594: java.lang.String.class,
2595: Integer.TYPE,
2596: Integer.TYPE,
2597: java.lang.String.class,
2598: de.ug2t.connector.ACoDataGetter.class,
2599: java.lang.Object.class,
2600: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2601: Object l_param[] = { xName, new Integer(xCols),
2602: new Integer(xRows), xValue,
2603: this .pem_dataGetter,
2604: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2605: (MuGenericApplication) xAppl };
2606:
2607: // @@
2608: l_ret = (IUnTextArea) l_htmlDesc.pcmf_createObject(
2609: l_param, l_class);
2610: }
2611: ;
2612: break;
2613: }
2614: case UnComponentFactory.HALFOBJECT:
2615: case UnComponentFactory.MIXED: {
2616: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2617: .get(xPl);
2618: if (l_swingDesc != null) {
2619: // Signatur + Parameter
2620: Class l_class[] = {
2621: java.lang.String.class,
2622: Integer.TYPE,
2623: Integer.TYPE,
2624: java.lang.String.class,
2625: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2626: String.class };
2627: Object l_param[] = { xName, new Integer(xCols),
2628: new Integer(xRows), xValue,
2629: (IUnApplication) xAppl,
2630: l_swingDesc.pdm_clientClass };
2631:
2632: l_ret = (IUnTextArea) l_swingDesc
2633: .pcmf_createObject(l_param, l_class);
2634: }
2635: ;
2636: break;
2637: }
2638: default:
2639: }
2640: ;
2641: } catch (Exception e) {
2642: KeLog.pcmf_logException("ug2t", this , e);
2643: }
2644: ;
2645:
2646: return (l_ret);
2647: };
2648:
2649: public final IUnTable pcmf_createTable(int xType, String xName,
2650: Collection xRows, boolean xSel, IUnApplication xAppl) {
2651: return (this .pcmf_createTablePlugin(xType, xName, xRows, xSel,
2652: xAppl, UnComponentFactory.pem_uiEl[9]));
2653: }
2654:
2655: public final IUnTable pcmf_createTablePlugin(int xType,
2656: String xName, Collection xRows, boolean xSel,
2657: IUnApplication xAppl, String xPl) {
2658: if (xPl == null)
2659: xPl = UnComponentFactory.pem_uiEl[9];
2660:
2661: UnHoDescriptor l_swingDesc = null;
2662: UnMarkupDescriptor l_htmlDesc = null;
2663:
2664: IUnTable l_ret = null;
2665:
2666: try {
2667: switch (xType) {
2668: case UnComponentFactory.MARKUP: {
2669: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2670: .get(xPl);
2671: if (l_htmlDesc != null) {
2672: // Signatur + Parameter
2673: Class l_class[] = {
2674: java.lang.String.class,
2675: java.util.Collection.class,
2676: Boolean.TYPE,
2677: de.ug2t.connector.ACoDataGetter.class,
2678: java.lang.Object.class,
2679: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2680: Object l_param[] = { xName, xRows,
2681: new Boolean(xSel), this .pem_dataGetter,
2682: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2683: (MuGenericApplication) xAppl };
2684:
2685: // @@
2686: l_ret = (IUnTable) l_htmlDesc.pcmf_createObject(
2687: l_param, l_class);
2688: }
2689: ;
2690: break;
2691: }
2692: case UnComponentFactory.HALFOBJECT:
2693: case UnComponentFactory.MIXED: {
2694: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2695: .get(xPl);
2696: if (l_swingDesc != null) {
2697: // Signatur + Parameter
2698: Class l_class[] = {
2699: java.lang.String.class,
2700: java.util.Collection.class,
2701: Boolean.TYPE,
2702: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2703: java.lang.String.class };
2704: Object l_param[] = { xName, xRows,
2705: new Boolean(xSel), (IUnApplication) xAppl,
2706: l_swingDesc.pdm_clientClass };
2707:
2708: l_ret = (IUnTable) l_swingDesc.pcmf_createObject(
2709: l_param, l_class);
2710: }
2711: ;
2712: break;
2713: }
2714: default:
2715: }
2716: ;
2717: } catch (Exception e) {
2718: KeLog.pcmf_logException("ug2t", this , e);
2719: }
2720: ;
2721:
2722: return (l_ret);
2723: };
2724:
2725: public final IUnTreeView pcmf_createTreeView(int xType,
2726: String xName, KeTreeNode xRoot, IUnApplication xAppl) {
2727: return (this .pcmf_createTreeViewPlugin(xType, xName, xRoot,
2728: xAppl, UnComponentFactory.pem_uiEl[10]));
2729: }
2730:
2731: public final IUnTreeView pcmf_createTreeViewPlugin(int xType,
2732: String xName, KeTreeNode xRoot, IUnApplication xAppl,
2733: String xPl) {
2734: if (xPl == null)
2735: xPl = UnComponentFactory.pem_uiEl[10];
2736:
2737: UnHoDescriptor l_swingDesc = null;
2738: UnMarkupDescriptor l_htmlDesc = null;
2739:
2740: IUnTreeView l_ret = null;
2741:
2742: try {
2743: switch (xType) {
2744: case UnComponentFactory.MARKUP: {
2745: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2746: .get(xPl);
2747: if (l_htmlDesc != null) {
2748: // Signatur + Parameter
2749: Class l_class[] = {
2750: java.lang.String.class,
2751: de.ug2t.kernel.KeTreeNode.class,
2752: de.ug2t.connector.ACoDataGetter.class,
2753: java.lang.Object.class,
2754: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2755: Object l_param[] = { xName, xRoot,
2756: this .pem_dataGetter,
2757: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2758: (MuGenericApplication) xAppl };
2759:
2760: // @@
2761: l_ret = (IUnTreeView) l_htmlDesc.pcmf_createObject(
2762: l_param, l_class);
2763: }
2764: ;
2765: break;
2766: }
2767: case UnComponentFactory.HALFOBJECT:
2768: case UnComponentFactory.MIXED: {
2769: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2770: .get(xPl);
2771: if (l_swingDesc != null) {
2772: // Signatur + Parameter
2773: Class l_class[] = {
2774: java.lang.String.class,
2775: de.ug2t.kernel.KeTreeNode.class,
2776: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2777: java.lang.String.class };
2778: Object l_param[] = { xName, xRoot,
2779: (IUnApplication) xAppl,
2780: l_swingDesc.pdm_clientClass };
2781:
2782: l_ret = (IUnTreeView) l_swingDesc
2783: .pcmf_createObject(l_param, l_class);
2784: }
2785: ;
2786: break;
2787: }
2788: default:
2789: }
2790: ;
2791: } catch (Exception e) {
2792: KeLog.pcmf_logException("ug2t", this , e);
2793: }
2794: ;
2795:
2796: return (l_ret);
2797: };
2798:
2799: public final IUnMenu pcmf_createMenu(int xType, String xName,
2800: KeTreeNode xRoot, IUnApplication xAppl) {
2801: return (this .pcmf_createMenuPlugin(xType, xName, xRoot, xAppl,
2802: UnComponentFactory.pem_uiEl[17]));
2803: }
2804:
2805: public final IUnMenu pcmf_createMenuPlugin(int xType, String xName,
2806: KeTreeNode xRoot, IUnApplication xAppl, String xPl) {
2807: if (xPl == null)
2808: xPl = UnComponentFactory.pem_uiEl[17];
2809:
2810: UnHoDescriptor l_swingDesc = null;
2811: UnMarkupDescriptor l_htmlDesc = null;
2812:
2813: IUnMenu l_ret = null;
2814:
2815: try {
2816: switch (xType) {
2817: case UnComponentFactory.MARKUP: {
2818: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2819: .get(xPl);
2820: if (l_htmlDesc != null) {
2821: // Signatur + Parameter
2822: Class l_class[] = {
2823: java.lang.String.class,
2824: de.ug2t.kernel.KeTreeNode.class,
2825: de.ug2t.connector.ACoDataGetter.class,
2826: java.lang.Object.class,
2827: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2828: Object l_param[] = { xName, xRoot,
2829: this .pem_dataGetter,
2830: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2831: (MuGenericApplication) xAppl };
2832:
2833: // @@
2834: l_ret = (IUnMenu) l_htmlDesc.pcmf_createObject(
2835: l_param, l_class);
2836: }
2837: ;
2838: break;
2839: }
2840: case UnComponentFactory.HALFOBJECT:
2841: case UnComponentFactory.MIXED: {
2842: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2843: .get(xPl);
2844: if (l_swingDesc != null) {
2845: // Signatur + Parameter
2846: Class l_class[] = {
2847: java.lang.String.class,
2848: de.ug2t.kernel.KeTreeNode.class,
2849: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2850: String.class };
2851: Object l_param[] = { xName, xRoot,
2852: (IUnApplication) xAppl,
2853: l_swingDesc.pdm_clientClass };
2854:
2855: l_ret = (IUnMenu) l_swingDesc.pcmf_createObject(
2856: l_param, l_class);
2857: }
2858: ;
2859: break;
2860: }
2861: default:
2862: }
2863: ;
2864: } catch (Exception e) {
2865: KeLog.pcmf_logException("ug2t", this , e);
2866: }
2867: ;
2868:
2869: return (l_ret);
2870: };
2871:
2872: public final IUnBorder pcmf_createBorder(int xType, String xName,
2873: boolean xNL, IUnApplication xAppl) {
2874: return (this .pcmf_createBorderPlugin(xType, xName, xNL, xAppl,
2875: UnComponentFactory.pem_uiEl[18]));
2876: }
2877:
2878: public final IUnBorder pcmf_createBorderPlugin(int xType,
2879: String xName, boolean xNL, IUnApplication xAppl, String xPl) {
2880: if (xPl == null)
2881: xPl = UnComponentFactory.pem_uiEl[18];
2882:
2883: UnHoDescriptor l_swingDesc = null;
2884: UnMarkupDescriptor l_htmlDesc = null;
2885:
2886: IUnBorder l_ret = null;
2887:
2888: try {
2889: switch (xType) {
2890: case UnComponentFactory.MARKUP: {
2891: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2892: .get(xPl);
2893: if (l_htmlDesc != null) {
2894: // Signatur + Parameter
2895: Class l_class[] = {
2896: java.lang.String.class,
2897: de.ug2t.connector.ACoDataGetter.class,
2898: java.lang.Object.class,
2899: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2900: Object l_param[] = { xName, this .pem_dataGetter,
2901: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2902: (MuGenericApplication) xAppl };
2903:
2904: // @@
2905: l_ret = (IUnBorder) l_htmlDesc.pcmf_createObject(
2906: l_param, l_class);
2907: }
2908: ;
2909: break;
2910: }
2911: case UnComponentFactory.HALFOBJECT:
2912: case UnComponentFactory.MIXED: {
2913: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2914: .get(xPl);
2915: if (l_swingDesc != null) {
2916: // Signatur + Parameter
2917: Class l_class[] = {
2918: java.lang.String.class,
2919: Boolean.TYPE,
2920: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2921: java.lang.String.class };
2922: Object l_param[] = { xName, new Boolean(xNL),
2923: (IUnApplication) xAppl,
2924: l_swingDesc.pdm_clientClass };
2925:
2926: l_ret = (IUnBorder) l_swingDesc.pcmf_createObject(
2927: l_param, l_class);
2928: }
2929: ;
2930: break;
2931: }
2932: default:
2933: }
2934: ;
2935: } catch (Exception e) {
2936: KeLog.pcmf_logException("ug2t", this , e);
2937: }
2938: ;
2939: ((IUnLayouted) l_ret).pcmf_setGuiObjNoLayout(xNL);
2940: return (l_ret);
2941: };
2942:
2943: public final IUnForm pcmf_createForm(int xType, String xName,
2944: boolean xNL, IUnApplication xAppl) {
2945: return (this .pcmf_createFormPlugin(xType, xName, xNL, xAppl,
2946: UnComponentFactory.pem_uiEl[6]));
2947: }
2948:
2949: public final IUnForm pcmf_createFormPlugin(int xType, String xName,
2950: boolean xNL, IUnApplication xAppl, String xPl) {
2951: if (xPl == null)
2952: xPl = UnComponentFactory.pem_uiEl[6];
2953:
2954: UnHoDescriptor l_swingDesc = null;
2955: UnMarkupDescriptor l_htmlDesc = null;
2956:
2957: IUnForm l_ret = null;
2958:
2959: try {
2960: switch (xType) {
2961: case UnComponentFactory.MARKUP: {
2962: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
2963: .get(xPl);
2964: if (l_htmlDesc != null) {
2965: // Signatur + Parameter
2966: Class l_class[] = {
2967: java.lang.String.class,
2968: de.ug2t.connector.ACoDataGetter.class,
2969: java.lang.Object.class,
2970: de.ug2t.channel.markup.generic.MuGenericApplication.class };
2971: Object l_param[] = { xName, this .pem_dataGetter,
2972: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
2973: (MuGenericApplication) xAppl };
2974:
2975: // @@
2976: l_ret = (IUnForm) l_htmlDesc.pcmf_createObject(
2977: l_param, l_class);
2978: }
2979: ;
2980: break;
2981: }
2982: case UnComponentFactory.HALFOBJECT:
2983: case UnComponentFactory.MIXED: {
2984: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
2985: .get(xPl);
2986: if (l_swingDesc != null) {
2987: // Signatur + Parameter
2988: Class l_class[] = {
2989: java.lang.String.class,
2990: Boolean.TYPE,
2991: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
2992: java.lang.String.class };
2993: Object l_param[] = { xName, new Boolean(xNL),
2994: (IUnApplication) xAppl,
2995: l_swingDesc.pdm_clientClass };
2996:
2997: l_ret = (IUnForm) l_swingDesc.pcmf_createObject(
2998: l_param, l_class);
2999: }
3000: ;
3001: break;
3002: }
3003: default:
3004: }
3005: ;
3006: } catch (Exception e) {
3007: KeLog.pcmf_logException("ug2t", this , e);
3008: }
3009: ;
3010: ((IUnLayouted) l_ret).pcmf_setGuiObjNoLayout(xNL);
3011: return (l_ret);
3012: };
3013:
3014: public final IUnTabbedPane pcmf_createTabPane(int xType,
3015: String xName, boolean xTabsDown, IUnApplication xAppl) {
3016: return (this .pcmf_createTabPanePlugin(xType, xName, xTabsDown,
3017: xAppl, UnComponentFactory.pem_uiEl[20]));
3018: }
3019:
3020: public final IUnTabbedPane pcmf_createTabPanePlugin(int xType,
3021: String xName, boolean xTabsDown, IUnApplication xAppl,
3022: String xPl) {
3023: if (xPl == null)
3024: xPl = UnComponentFactory.pem_uiEl[20];
3025:
3026: UnHoDescriptor l_swingDesc = null;
3027: UnMarkupDescriptor l_htmlDesc = null;
3028:
3029: IUnTabbedPane l_ret = null;
3030:
3031: try {
3032: switch (xType) {
3033: case UnComponentFactory.MARKUP: {
3034: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3035: .get(xPl);
3036: if (l_htmlDesc != null) {
3037: // Signatur + Parameter
3038: Class l_class[] = {
3039: java.lang.String.class,
3040: Boolean.TYPE,
3041: de.ug2t.connector.ACoDataGetter.class,
3042: java.lang.Object.class,
3043: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3044: Object l_param[] = { xName, new Boolean(xTabsDown),
3045: this .pem_dataGetter,
3046: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3047: (MuGenericApplication) xAppl };
3048:
3049: // @@
3050: l_ret = (IUnTabbedPane) l_htmlDesc
3051: .pcmf_createObject(l_param, l_class);
3052: }
3053: ;
3054: break;
3055: }
3056: case UnComponentFactory.HALFOBJECT:
3057: case UnComponentFactory.MIXED: {
3058: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
3059: .get(xPl);
3060: if (l_swingDesc != null) {
3061: // Signatur + Parameter
3062: Class l_class[] = {
3063: java.lang.String.class,
3064: Boolean.TYPE,
3065: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
3066: java.lang.String.class };
3067: Object l_param[] = { xName, new Boolean(xTabsDown),
3068: (IUnApplication) xAppl,
3069: l_swingDesc.pdm_clientClass };
3070:
3071: l_ret = (IUnTabbedPane) l_swingDesc
3072: .pcmf_createObject(l_param, l_class);
3073: }
3074: ;
3075: break;
3076: }
3077: default:
3078: }
3079: ;
3080: } catch (Exception e) {
3081: KeLog.pcmf_logException("ug2t", this , e);
3082: }
3083: ;
3084:
3085: return (l_ret);
3086: };
3087:
3088: public final IUnToolBox pcmf_createToolBox(int xType, String xName,
3089: IUnApplication xAppl) {
3090: return (this .pcmf_createToolBoxPlugin(xType, xName, xAppl,
3091: UnComponentFactory.pem_uiEl[21]));
3092: }
3093:
3094: public final IUnToolBox pcmf_createToolBoxPlugin(int xType,
3095: String xName, IUnApplication xAppl, String xPl) {
3096: if (xPl == null)
3097: xPl = UnComponentFactory.pem_uiEl[21];
3098:
3099: UnHoDescriptor l_swingDesc = null;
3100: UnMarkupDescriptor l_htmlDesc = null;
3101:
3102: IUnToolBox l_ret = null;
3103:
3104: try {
3105: switch (xType) {
3106: case UnComponentFactory.MARKUP: {
3107: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3108: .get(xPl);
3109: if (l_htmlDesc != null) {
3110: // Signatur + Parameter
3111: Class l_class[] = {
3112: java.lang.String.class,
3113: de.ug2t.connector.ACoDataGetter.class,
3114: java.lang.Object.class,
3115: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3116: Object l_param[] = { xName, this .pem_dataGetter,
3117: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3118: (MuGenericApplication) xAppl };
3119:
3120: // @@
3121: l_ret = (IUnToolBox) l_htmlDesc.pcmf_createObject(
3122: l_param, l_class);
3123: }
3124: ;
3125: break;
3126: }
3127: case UnComponentFactory.HALFOBJECT:
3128: case UnComponentFactory.MIXED: {
3129: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
3130: .get(xPl);
3131: if (l_swingDesc != null) {
3132: // Signatur + Parameter
3133: Class l_class[] = {
3134: java.lang.String.class,
3135: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
3136: java.lang.String.class };
3137: Object l_param[] = { xName, (IUnApplication) xAppl,
3138: l_swingDesc.pdm_clientClass };
3139:
3140: l_ret = (IUnToolBox) l_swingDesc.pcmf_createObject(
3141: l_param, l_class);
3142: }
3143: ;
3144: break;
3145: }
3146: default:
3147: }
3148: ;
3149: } catch (Exception e) {
3150: KeLog.pcmf_logException("ug2t", this , e);
3151: }
3152: ;
3153:
3154: return (l_ret);
3155: };
3156:
3157: public final IUnFileChooser pcmf_createFileChooser(int xType,
3158: String xName, String xValue, IUnApplication xAppl) {
3159: return (this .pcmf_createFileChooserPlugin(xType, xName, xValue,
3160: xAppl, UnComponentFactory.pem_uiEl[22]));
3161: }
3162:
3163: public final IUnFileChooser pcmf_createFileChooserPlugin(int xType,
3164: String xName, String xValue, IUnApplication xAppl,
3165: String xPl) {
3166: if (xPl == null)
3167: xPl = UnComponentFactory.pem_uiEl[22];
3168:
3169: UnHoDescriptor l_swingDesc = null;
3170: UnMarkupDescriptor l_htmlDesc = null;
3171:
3172: IUnFileChooser l_ret = null;
3173:
3174: try {
3175: switch (xType) {
3176: case UnComponentFactory.MARKUP: {
3177: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3178: .get(xPl);
3179: if (l_htmlDesc != null) {
3180: // Signatur + Parameter
3181: Class l_class[] = {
3182: java.lang.String.class,
3183: java.lang.String.class,
3184: de.ug2t.connector.ACoDataGetter.class,
3185: java.lang.Object.class,
3186: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3187: Object l_param[] = { xName, xValue,
3188: this .pem_dataGetter,
3189: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3190: (MuGenericApplication) xAppl };
3191:
3192: // @@
3193: l_ret = (IUnFileChooser) l_htmlDesc
3194: .pcmf_createObject(l_param, l_class);
3195: }
3196: ;
3197: break;
3198: }
3199: case UnComponentFactory.HALFOBJECT:
3200: case UnComponentFactory.MIXED: {
3201: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
3202: .get(xPl);
3203: if (l_swingDesc != null) {
3204: // Signatur + Parameter
3205: Class l_class[] = {
3206: java.lang.String.class,
3207: java.lang.String.class,
3208: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
3209: java.lang.String.class };
3210: Object l_param[] = { xName, xValue,
3211: (IUnApplication) xAppl,
3212: l_swingDesc.pdm_clientClass };
3213:
3214: l_ret = (IUnFileChooser) l_swingDesc
3215: .pcmf_createObject(l_param, l_class);
3216: }
3217: ;
3218: break;
3219: }
3220: default:
3221: }
3222: ;
3223: } catch (Exception e) {
3224: KeLog.pcmf_logException("ug2t", this , e);
3225: }
3226: ;
3227:
3228: return (l_ret);
3229: };
3230:
3231: public final IUnTextArea pcmf_createEditor(int xType, String xName,
3232: String xValue, String xMime, IUnApplication xAppl) {
3233: return (this .pcmf_createEditorPlugin(xType, xName, xValue,
3234: xMime, xAppl, UnComponentFactory.pem_uiEl[23]));
3235: }
3236:
3237: public final IUnTextArea pcmf_createEditorPlugin(int xType,
3238: String xName, String xValue, String xMime,
3239: IUnApplication xAppl, String xPl) {
3240: if (xPl == null)
3241: xPl = UnComponentFactory.pem_uiEl[23];
3242:
3243: UnHoDescriptor l_swingDesc = null;
3244: UnMarkupDescriptor l_htmlDesc = null;
3245:
3246: IUnTextArea l_ret = null;
3247:
3248: try {
3249: switch (xType) {
3250: case UnComponentFactory.MARKUP: {
3251: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3252: .get(xPl);
3253: if (l_htmlDesc != null) {
3254: // Signatur + Parameter
3255: Class l_class[] = {
3256: java.lang.String.class,
3257: Integer.TYPE,
3258: Integer.TYPE,
3259: java.lang.String.class,
3260: de.ug2t.connector.ACoDataGetter.class,
3261: java.lang.Object.class,
3262: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3263: Object l_param[] = { xName, new Integer(0),
3264: new Integer(0), xValue,
3265: this .pem_dataGetter,
3266: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3267: (MuGenericApplication) xAppl };
3268:
3269: // @@
3270: l_ret = (IUnTextArea) l_htmlDesc.pcmf_createObject(
3271: l_param, l_class);
3272: }
3273: ;
3274: break;
3275: }
3276: case UnComponentFactory.HALFOBJECT:
3277: case UnComponentFactory.MIXED: {
3278: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
3279: .get(xPl);
3280: if (l_swingDesc != null) {
3281: // Signatur + Parameter
3282: Class l_class[] = {
3283: java.lang.String.class,
3284: java.lang.String.class,
3285: java.lang.String.class,
3286: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
3287: String.class };
3288: Object l_param[] = { xName, xValue, xMime,
3289: (IUnApplication) xAppl,
3290: l_swingDesc.pdm_clientClass };
3291:
3292: l_ret = (IUnTextArea) l_swingDesc
3293: .pcmf_createObject(l_param, l_class);
3294: }
3295: ;
3296: break;
3297: }
3298: default:
3299: }
3300: ;
3301: } catch (Exception e) {
3302: KeLog.pcmf_logException("ug2t", this , e);
3303: }
3304: ;
3305:
3306: return (l_ret);
3307: };
3308:
3309: public final IUnDialog pcmf_createDialog(int xType, String xName,
3310: boolean xNL, IUnApplication xAppl) {
3311: return (this .pcmf_createDialogPlugin(xType, xName, xNL, xAppl,
3312: UnComponentFactory.pem_uiEl[24]));
3313: }
3314:
3315: public final IUnDialog pcmf_createDialogPlugin(int xType,
3316: String xName, boolean xNL, IUnApplication xAppl, String xPl) {
3317: if (xPl == null)
3318: xPl = UnComponentFactory.pem_uiEl[24];
3319:
3320: UnHoDescriptor l_swingDesc = null;
3321: UnMarkupDescriptor l_htmlDesc = null;
3322:
3323: IUnDialog l_ret = null;
3324:
3325: try {
3326: switch (xType) {
3327: case UnComponentFactory.MARKUP: {
3328: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3329: .get(xPl);
3330: if (l_htmlDesc != null) {
3331: // Signatur + Parameter
3332: Class l_class[] = {
3333: java.lang.String.class,
3334: de.ug2t.connector.ACoDataGetter.class,
3335: java.lang.Object.class,
3336: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3337: Object l_param[] = { xName, this .pem_dataGetter,
3338: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3339: (MuGenericApplication) xAppl };
3340:
3341: // @@
3342: l_ret = (IUnDialog) l_htmlDesc.pcmf_createObject(
3343: l_param, l_class);
3344: }
3345: ;
3346: break;
3347: }
3348: case UnComponentFactory.HALFOBJECT:
3349: case UnComponentFactory.MIXED: {
3350: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
3351: .get(xPl);
3352: if (l_swingDesc != null) {
3353: // Signatur + Parameter
3354: Class l_class[] = {
3355: java.lang.String.class,
3356: Boolean.TYPE,
3357: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
3358: java.lang.String.class };
3359: Object l_param[] = { xName, new Boolean(xNL),
3360: (IUnApplication) xAppl,
3361: l_swingDesc.pdm_clientClass };
3362:
3363: l_ret = (IUnDialog) l_swingDesc.pcmf_createObject(
3364: l_param, l_class);
3365: }
3366: ;
3367: break;
3368: }
3369: default:
3370: }
3371: ;
3372: } catch (Exception e) {
3373: KeLog.pcmf_logException("ug2t", this , e);
3374: }
3375: ;
3376: ((IUnLayouted) l_ret).pcmf_setGuiObjNoLayout(xNL);
3377: return (l_ret);
3378: };
3379:
3380: public final IUnEventChannel pcmf_createEvChannel(int xType,
3381: String xName, int xEType, IUnApplication xAppl) {
3382: return (this .pcmf_createEvChannelPlugin(xType, xName, xEType,
3383: xAppl, UnComponentFactory.pem_uiEl[25]));
3384: }
3385:
3386: public final IUnEventChannel pcmf_createEvChannelPlugin(int xType,
3387: String xName, int xEType, IUnApplication xAppl, String xPl) {
3388: if (xPl == null)
3389: xPl = UnComponentFactory.pem_uiEl[25];
3390:
3391: UnHoDescriptor l_swingDesc = null;
3392: UnMarkupDescriptor l_htmlDesc = null;
3393:
3394: IUnEventChannel l_ret = null;
3395:
3396: try {
3397: switch (xType) {
3398: case UnComponentFactory.MARKUP: {
3399: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3400: .get(xPl);
3401: if (l_htmlDesc != null) {
3402: // Signatur + Parameter
3403: Class l_class[] = {
3404: java.lang.String.class,
3405: Integer.TYPE,
3406: de.ug2t.connector.ACoDataGetter.class,
3407: java.lang.Object.class,
3408: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3409: Object l_param[] = { xName, new Integer(xEType),
3410: this .pem_dataGetter,
3411: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3412: (MuGenericApplication) xAppl };
3413:
3414: l_ret = (IUnEventChannel) l_htmlDesc
3415: .pcmf_createObject(l_param, l_class);
3416: }
3417: ;
3418: break;
3419: }
3420: case UnComponentFactory.HALFOBJECT:
3421: case UnComponentFactory.MIXED: {
3422: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
3423: .get(xPl);
3424: if (l_swingDesc != null) {
3425: // Signatur + Parameter
3426: Class l_class[] = {
3427: java.lang.String.class,
3428: Integer.TYPE,
3429: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
3430: java.lang.String.class };
3431: Object l_param[] = { xName, new Integer(xEType),
3432: (IUnApplication) xAppl,
3433: l_swingDesc.pdm_clientClass };
3434:
3435: l_ret = (IUnEventChannel) l_swingDesc
3436: .pcmf_createObject(l_param, l_class);
3437: }
3438: ;
3439: break;
3440: }
3441: default:
3442: }
3443: ;
3444: } catch (Exception e) {
3445: KeLog.pcmf_logException("ug2t", this , e);
3446: }
3447: ;
3448: return (l_ret);
3449: };
3450:
3451: public final IUnEventChannel pcmf_createEvChannel(int xType,
3452: String xName, String xKeyFilter, IUnApplication xAppl) {
3453: return (this .pcmf_createEvChannelPlugin(xType, xName,
3454: xKeyFilter, xAppl, UnComponentFactory.pem_uiEl[25]));
3455: }
3456:
3457: public final IUnEventChannel pcmf_createEvChannelPlugin(int xType,
3458: String xName, String xKeyFilter, IUnApplication xAppl,
3459: String xPl) {
3460: if (xPl == null)
3461: xPl = UnComponentFactory.pem_uiEl[25];
3462:
3463: UnHoDescriptor l_swingDesc = null;
3464: UnMarkupDescriptor l_htmlDesc = null;
3465:
3466: IUnEventChannel l_ret = null;
3467:
3468: try {
3469: switch (xType) {
3470: case UnComponentFactory.MARKUP: {
3471: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3472: .get(xPl);
3473: if (l_htmlDesc != null) {
3474: // Signatur + Parameter
3475: Class l_class[] = {
3476: java.lang.String.class,
3477: java.lang.String.class,
3478: de.ug2t.connector.ACoDataGetter.class,
3479: java.lang.Object.class,
3480: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3481: Object l_param[] = { xName, xKeyFilter,
3482: this .pem_dataGetter,
3483: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3484: (MuGenericApplication) xAppl };
3485:
3486: l_ret = (IUnEventChannel) l_htmlDesc
3487: .pcmf_createObject(l_param, l_class);
3488: }
3489: ;
3490: break;
3491: }
3492: case UnComponentFactory.HALFOBJECT:
3493: case UnComponentFactory.MIXED: {
3494: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
3495: .get(xPl);
3496: if (l_swingDesc != null) {
3497: // Signatur + Parameter
3498: Class l_class[] = {
3499: java.lang.String.class,
3500: java.lang.String.class,
3501: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
3502: java.lang.String.class };
3503: Object l_param[] = { xName, xKeyFilter,
3504: (IUnApplication) xAppl,
3505: l_swingDesc.pdm_clientClass };
3506:
3507: l_ret = (IUnEventChannel) l_swingDesc
3508: .pcmf_createObject(l_param, l_class);
3509: }
3510: ;
3511: break;
3512: }
3513: default:
3514: }
3515: ;
3516: } catch (Exception e) {
3517: KeLog.pcmf_logException("ug2t", this , e);
3518: }
3519: ;
3520: return (l_ret);
3521: };
3522:
3523: public final IUnContextMenu pcmf_createCtxMenu(int xType,
3524: String xName, KeTreeNode xRoot, IUnApplication xAppl) {
3525: return (this .pcmf_createCtxMenuPlugin(xType, xName, xRoot,
3526: xAppl, UnComponentFactory.pem_uiEl[26]));
3527: }
3528:
3529: public final IUnContextMenu pcmf_createCtxMenuPlugin(int xType,
3530: String xName, KeTreeNode xRoot, IUnApplication xAppl,
3531: String xPl) {
3532: if (xPl == null)
3533: xPl = UnComponentFactory.pem_uiEl[26];
3534:
3535: UnHoDescriptor l_swingDesc = null;
3536: UnMarkupDescriptor l_htmlDesc = null;
3537:
3538: IUnContextMenu l_ret = null;
3539:
3540: try {
3541: switch (xType) {
3542: case UnComponentFactory.MARKUP: {
3543: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3544: .get(xPl);
3545: if (l_htmlDesc != null) {
3546: // Signatur + Parameter
3547: Class l_class[] = {
3548: java.lang.String.class,
3549: de.ug2t.kernel.KeTreeNode.class,
3550: de.ug2t.connector.ACoDataGetter.class,
3551: java.lang.Object.class,
3552: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3553: Object l_param[] = { xName, xRoot,
3554: this .pem_dataGetter,
3555: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3556: (MuGenericApplication) xAppl };
3557:
3558: // @@
3559: l_ret = (IUnContextMenu) l_htmlDesc
3560: .pcmf_createObject(l_param, l_class);
3561: }
3562: ;
3563: break;
3564: }
3565: case UnComponentFactory.HALFOBJECT:
3566: case UnComponentFactory.MIXED: {
3567: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
3568: .get(xPl);
3569: if (l_swingDesc != null) {
3570: // Signatur + Parameter
3571: Class l_class[] = {
3572: java.lang.String.class,
3573: de.ug2t.kernel.KeTreeNode.class,
3574: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
3575: java.lang.String.class };
3576: Object l_param[] = { xName, xRoot,
3577: (IUnApplication) xAppl,
3578: l_swingDesc.pdm_clientClass };
3579:
3580: l_ret = (IUnContextMenu) l_swingDesc
3581: .pcmf_createObject(l_param, l_class);
3582: }
3583: ;
3584: break;
3585: }
3586: default:
3587: }
3588: ;
3589: } catch (Exception e) {
3590: KeLog.pcmf_logException("ug2t", this , e);
3591: }
3592: ;
3593:
3594: return (l_ret);
3595: };
3596:
3597: public final IUnForm pcmf_createIForm(int xType, String xName,
3598: boolean xNL, IUnApplication xAppl) {
3599: return (this .pcmf_createIFormPlugin(xType, xName, xNL, xAppl,
3600: UnComponentFactory.pem_uiEl[27]));
3601: }
3602:
3603: public final IUnForm pcmf_createIFormPlugin(int xType,
3604: String xName, boolean xNL, IUnApplication xAppl, String xPl) {
3605: if (xPl == null)
3606: xPl = UnComponentFactory.pem_uiEl[27];
3607:
3608: UnHoDescriptor l_swingDesc = null;
3609: UnMarkupDescriptor l_htmlDesc = null;
3610:
3611: IUnForm l_ret = null;
3612:
3613: try {
3614: switch (xType) {
3615: case UnComponentFactory.MARKUP: {
3616: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3617: .get(xPl);
3618: if (l_htmlDesc != null) {
3619: // Signatur + Parameter
3620: Class l_class[] = {
3621: java.lang.String.class,
3622: de.ug2t.connector.ACoDataGetter.class,
3623: java.lang.Object.class,
3624: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3625: Object l_param[] = { xName, this .pem_dataGetter,
3626: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3627: (MuGenericApplication) xAppl };
3628:
3629: l_ret = (IUnForm) l_htmlDesc.pcmf_createObject(
3630: l_param, l_class);
3631: }
3632: ;
3633: break;
3634: }
3635: case UnComponentFactory.HALFOBJECT:
3636: case UnComponentFactory.MIXED: {
3637: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
3638: .get(xPl);
3639: if (l_swingDesc != null) {
3640: // Signatur + Parameter
3641: Class l_class[] = {
3642: java.lang.String.class,
3643: Boolean.TYPE,
3644: de.ug2t.unifiedGui.interfaces.IUnApplication.class };
3645: Object l_param[] = { xName, new Boolean(xNL),
3646: (IUnApplication) xAppl };
3647:
3648: l_ret = (IUnForm) l_swingDesc.pcmf_createObject(
3649: l_param, l_class);
3650: }
3651: ;
3652: break;
3653: }
3654: default:
3655: }
3656: ;
3657: } catch (Exception e) {
3658: KeLog.pcmf_logException("ug2t", this , e);
3659: }
3660: ;
3661: ((IUnLayouted) l_ret).pcmf_setGuiObjNoLayout(xNL);
3662: return (l_ret);
3663: };
3664:
3665: public void pcmf_readPlugins(CoXmlParameterGetter l_getter)
3666: throws Exception {
3667: String l_parfile = (String) l_getter
3668: .pcmf_getParameter("pluginDefFile");
3669: String l_extensions = (String) l_getter
3670: .pcmf_getParameter("extensions");
3671:
3672: if (l_parfile == null)
3673: return;
3674:
3675: l_getter.pcmf_addSource(l_parfile);
3676: pemf_readPluginDefs(l_getter, l_parfile);
3677:
3678: if (l_extensions != null) {
3679: l_getter.pcmf_addSource(l_extensions);
3680: pemf_readPluginDefs(l_getter, l_extensions);
3681: }
3682: }
3683:
3684: private void pemf_readPluginDefs(CoXmlParameterGetter l_getter,
3685: String l_parfile) throws ClassNotFoundException {
3686: String l_par;
3687: UnMarkupPluginDescriptor l_htmlDesc;
3688: UnHoPluginDescriptor l_swingDesc;
3689: l_getter.pcmf_setActiveSource(l_parfile);
3690: Iterator l_it = l_getter.pcmf_getKeys("plugins");
3691: String l_pl = null;
3692: while (l_it.hasNext()) {
3693: l_pl = (String) l_it.next();
3694: l_getter.pcmf_setRoot(l_parfile, (String) l_getter
3695: .pcmf_getParameter("plugins", l_pl));
3696:
3697: l_htmlDesc = new UnMarkupPluginDescriptor();
3698: l_swingDesc = new UnHoPluginDescriptor();
3699:
3700: l_par = (String) l_getter
3701: .pcmf_getParameter("HoClientClass");
3702: if (l_par != null)
3703: l_swingDesc.pdm_clientClass = l_par;
3704:
3705: l_par = (String) l_getter
3706: .pcmf_getParameter("HoServerClass");
3707: if (l_par != null)
3708: l_swingDesc.pdm_class = Class.forName(l_par);
3709:
3710: l_par = (String) l_getter
3711: .pcmf_getParameter("MuComponentClass");
3712: if (l_par != null)
3713: l_htmlDesc.pdm_class = Class.forName(l_par);
3714:
3715: l_par = (String) l_getter
3716: .pcmf_getParameter("MuComponentRenderer");
3717: if (l_par != null)
3718: l_htmlDesc.pdm_viewclass = Class.forName(l_par);
3719:
3720: l_htmlDesc.pdm_tplFile = (String) l_getter
3721: .pcmf_getParameter("MuTemplate");
3722:
3723: if (l_par != null)
3724: this .pem_stdPlugins.add(l_pl);
3725: else {
3726: l_par = null;
3727:
3728: l_par = (String) l_getter.pcmf_getParameter("xmlConf");
3729: l_htmlDesc.pdm_xmlConf = l_par;
3730: l_swingDesc.pdm_xmlConf = l_par;
3731:
3732: l_par = (String) l_getter
3733: .pcmf_getParameter("staticXmlConf");
3734: l_htmlDesc.pdm_staticXmlConf = l_par;
3735: l_swingDesc.pdm_staticXmlConf = l_par;
3736:
3737: l_par = (String) l_getter.pcmf_getParameter("rootDir");
3738: l_htmlDesc.pdm_rootDir = l_par;
3739: l_swingDesc.pdm_rootDir = l_par;
3740:
3741: l_par = (String) l_getter
3742: .pcmf_getParameter("initClass");
3743: l_htmlDesc.pdm_initClass = l_par;
3744: l_swingDesc.pdm_initClass = l_par;
3745:
3746: if (l_par != null)
3747: this .pem_aggregatedPlugins.add(l_pl);
3748:
3749: l_par = (String) l_getter.pcmf_getParameter("textFile");
3750: l_htmlDesc.pdm_textFile = l_par;
3751: l_swingDesc.pdm_textFile = l_par;
3752:
3753: l_par = (String) l_getter
3754: .pcmf_getParameter("defaultTextFile");
3755: l_htmlDesc.pdm_defTextFile = l_par;
3756: l_swingDesc.pdm_defTextFile = l_par;
3757: }
3758:
3759: this .pem_hoElements.put(l_pl, l_swingDesc);
3760: this .pem_muElements.put(l_pl, l_htmlDesc);
3761: l_par = null;
3762: }
3763: }
3764:
3765: public void pcmf_resetPluginStatics() {
3766: Iterator l_it = this .pem_aggregatedPlugins.iterator();
3767: while (l_it.hasNext()) {
3768: String l_string = (String) l_it.next();
3769: ((UnHoPluginDescriptor) this .pem_hoElements.get(l_string)).pdm_staticInitialized = false;
3770: ((UnMarkupPluginDescriptor) this .pem_muElements
3771: .get(l_string)).pdm_staticInitialized = false;
3772: }
3773: }
3774:
3775: public ArrayList pcmf_getAggregatedPlugins() {
3776: return (new ArrayList(this .pem_aggregatedPlugins));
3777: };
3778:
3779: public ArrayList pcmf_getStdPlugins() {
3780: return (new ArrayList(this .pem_stdPlugins));
3781: };
3782:
3783: public final IUnPageDecorator pcmf_createMdiDeco(int xType,
3784: String xName, IUnApplication xAppl) {
3785: return (this .pcmf_createMdiDecoPlugin(xType, xName, xAppl,
3786: UnComponentFactory.pem_uiEl[28]));
3787: }
3788:
3789: public final IUnPageDecorator pcmf_createMdiDecoPlugin(int xType,
3790: String xName, IUnApplication xAppl, String xPl) {
3791: if (xPl == null)
3792: xPl = UnComponentFactory.pem_uiEl[28];
3793:
3794: UnMarkupDescriptor l_htmlDesc = null;
3795:
3796: IUnPageDecorator l_ret = null;
3797:
3798: try {
3799: switch (xType) {
3800: case UnComponentFactory.MARKUP: {
3801: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3802: .get(xPl);
3803: if (l_htmlDesc != null) {
3804: // Signatur + Parameter
3805: Class l_class[] = {
3806: java.lang.String.class,
3807: de.ug2t.connector.ACoDataGetter.class,
3808: java.lang.Object.class,
3809: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3810: Object l_param[] = { xName, this .pem_dataGetter,
3811: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3812: (MuGenericApplication) xAppl };
3813:
3814: // @@
3815: l_ret = (IUnPageDecorator) l_htmlDesc
3816: .pcmf_createObject(l_param, l_class);
3817: }
3818: ;
3819: break;
3820: }
3821: case UnComponentFactory.HALFOBJECT:
3822: case UnComponentFactory.MIXED: {
3823: KeLog.pcmf_log("ug2t",
3824: "usage prohibited in swing-channel", this ,
3825: KeLog.ERROR);
3826: break;
3827: }
3828: default:
3829: }
3830: ;
3831: } catch (Exception e) {
3832: KeLog.pcmf_logException("ug2t", this , e);
3833: }
3834: ;
3835: return (l_ret);
3836: };
3837:
3838: public final IUnOptionDialog pcmf_createOptDlg(int xType,
3839: String xName, IUnApplication xAppl) {
3840: return (this .pcmf_createOptDlgPlugin(xType, xName, xAppl,
3841: UnComponentFactory.pem_uiEl[30]));
3842: }
3843:
3844: public final IUnOptionDialog pcmf_createOptDlgPlugin(int xType,
3845: String xName, IUnApplication xAppl, String xPl) {
3846: if (xPl == null)
3847: xPl = UnComponentFactory.pem_uiEl[30];
3848:
3849: UnHoDescriptor l_swingDesc = null;
3850: UnMarkupDescriptor l_htmlDesc = null;
3851:
3852: IUnOptionDialog l_ret = null;
3853:
3854: try {
3855: switch (xType) {
3856: case UnComponentFactory.MARKUP: {
3857: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3858: .get(xPl);
3859: if (l_htmlDesc != null) {
3860: // Signatur + Parameter
3861: Class l_class[] = {
3862: java.lang.String.class,
3863: de.ug2t.connector.ACoDataGetter.class,
3864: java.lang.Object.class,
3865: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3866: Object l_param[] = { xName, this .pem_dataGetter,
3867: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3868: (MuGenericApplication) xAppl };
3869:
3870: // @@
3871: l_ret = (IUnOptionDialog) l_htmlDesc
3872: .pcmf_createObject(l_param, l_class);
3873: }
3874: ;
3875: break;
3876: }
3877: case UnComponentFactory.HALFOBJECT:
3878: case UnComponentFactory.MIXED: {
3879: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
3880: .get(xPl);
3881: if (l_swingDesc != null) {
3882: // Signatur + Parameter
3883: Class l_class[] = {
3884: java.lang.String.class,
3885: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
3886: java.lang.String.class };
3887: Object l_param[] = { xName, (IUnApplication) xAppl,
3888: l_swingDesc.pdm_clientClass };
3889:
3890: l_ret = (IUnOptionDialog) l_swingDesc
3891: .pcmf_createObject(l_param, l_class);
3892: }
3893: ;
3894: break;
3895: }
3896: default:
3897: }
3898: ;
3899: } catch (Exception e) {
3900: KeLog.pcmf_logException("ug2t", this , e);
3901: }
3902: ;
3903:
3904: return (l_ret);
3905: };
3906:
3907: public final IUnDrawPane pcmf_createDrawPane(int xType,
3908: String xName, int xWidth, int xHeight, IUnApplication xAppl) {
3909: return (this .pcmf_createDrawPanePlugin(xType, xName, xWidth,
3910: xHeight, xAppl, UnComponentFactory.pem_uiEl[31]));
3911: }
3912:
3913: public final IUnDrawPane pcmf_createDrawPanePlugin(int xType,
3914: String xName, int xWidth, int xHeight,
3915: IUnApplication xAppl, String xPl) {
3916: if (xPl == null)
3917: xPl = UnComponentFactory.pem_uiEl[31];
3918:
3919: UnHoDescriptor l_swingDesc = null;
3920: UnMarkupDescriptor l_htmlDesc = null;
3921:
3922: IUnDrawPane l_ret = null;
3923:
3924: try {
3925: switch (xType) {
3926: case UnComponentFactory.MARKUP: {
3927: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
3928: .get(xPl);
3929: if (l_htmlDesc != null) {
3930: // Signatur + Parameter
3931: Class l_class[] = {
3932: java.lang.String.class,
3933: Integer.TYPE,
3934: Integer.TYPE,
3935: de.ug2t.connector.ACoDataGetter.class,
3936: java.lang.Object.class,
3937: de.ug2t.channel.markup.generic.MuGenericApplication.class };
3938: Object l_param[] = { xName, new Integer(xWidth),
3939: new Integer(xHeight), this .pem_dataGetter,
3940: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
3941: (MuGenericApplication) xAppl };
3942:
3943: // @@
3944: l_ret = (IUnDrawPane) l_htmlDesc.pcmf_createObject(
3945: l_param, l_class);
3946: }
3947: ;
3948: break;
3949: }
3950: case UnComponentFactory.HALFOBJECT:
3951: case UnComponentFactory.MIXED: {
3952: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
3953: .get(xPl);
3954: if (l_swingDesc != null) {
3955: // Signatur + Parameter
3956: Class l_class[] = {
3957: java.lang.String.class,
3958: Integer.TYPE,
3959: Integer.TYPE,
3960: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
3961: java.lang.String.class };
3962: Object l_param[] = { xName, new Integer(xWidth),
3963: new Integer(xHeight),
3964: (IUnApplication) xAppl,
3965: l_swingDesc.pdm_clientClass };
3966:
3967: l_ret = (IUnDrawPane) l_swingDesc
3968: .pcmf_createObject(l_param, l_class);
3969: }
3970: ;
3971: break;
3972: }
3973: default:
3974: }
3975: ;
3976: } catch (Exception e) {
3977: KeLog.pcmf_logException("ug2t", this , e);
3978: }
3979: ;
3980:
3981: return (l_ret);
3982: };
3983:
3984: public final IUnSplitPane pcmf_createSplitPane(int xType,
3985: String xName, IUnApplication xAppl) {
3986: return (this .pcmf_createSplitPanePlugin(xType, xName, xAppl,
3987: UnComponentFactory.pem_uiEl[32]));
3988: }
3989:
3990: public final IUnSplitPane pcmf_createSplitPanePlugin(int xType,
3991: String xName, IUnApplication xAppl, String xPl) {
3992: if (xPl == null)
3993: xPl = UnComponentFactory.pem_uiEl[32];
3994:
3995: UnHoDescriptor l_swingDesc = null;
3996: UnMarkupDescriptor l_htmlDesc = null;
3997:
3998: IUnSplitPane l_ret = null;
3999:
4000: try {
4001: switch (xType) {
4002: case UnComponentFactory.MARKUP: {
4003: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
4004: .get(xPl);
4005: if (l_htmlDesc != null) {
4006: // Signatur + Parameter
4007: Class l_class[] = {
4008: java.lang.String.class,
4009: de.ug2t.connector.ACoDataGetter.class,
4010: java.lang.Object.class,
4011: de.ug2t.channel.markup.generic.MuGenericApplication.class };
4012: Object l_param[] = { xName, this .pem_dataGetter,
4013: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
4014: (MuGenericApplication) xAppl };
4015:
4016: // @@
4017: l_ret = (IUnSplitPane) l_htmlDesc
4018: .pcmf_createObject(l_param, l_class);
4019: }
4020: ;
4021: break;
4022: }
4023: case UnComponentFactory.HALFOBJECT:
4024: case UnComponentFactory.MIXED: {
4025: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
4026: .get(xPl);
4027: if (l_swingDesc != null) {
4028: // Signatur + Parameter
4029: Class l_class[] = {
4030: java.lang.String.class,
4031: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
4032: String.class };
4033: Object l_param[] = { xName, (IUnApplication) xAppl,
4034: l_swingDesc.pdm_clientClass };
4035:
4036: l_ret = (IUnSplitPane) l_swingDesc
4037: .pcmf_createObject(l_param, l_class);
4038: }
4039: ;
4040: break;
4041: }
4042: default:
4043: }
4044: ;
4045: } catch (Exception e) {
4046: KeLog.pcmf_logException("ug2t", this , e);
4047: }
4048: ;
4049:
4050: return (l_ret);
4051: };
4052:
4053: public final IUnSlider pcmf_createSlider(int xType, String xName,
4054: int xDirection, IUnApplication xAppl) {
4055: return (this .pcmf_createSliderPlugin(xType, xName, xDirection,
4056: xAppl, UnComponentFactory.pem_uiEl[33]));
4057: }
4058:
4059: public final IUnSlider pcmf_createSliderPlugin(int xType,
4060: String xName, int xDirection, IUnApplication xAppl,
4061: String xPl) {
4062: if (xPl == null)
4063: xPl = UnComponentFactory.pem_uiEl[33];
4064:
4065: UnHoDescriptor l_swingDesc = null;
4066: UnMarkupDescriptor l_htmlDesc = null;
4067:
4068: IUnSlider l_ret = null;
4069:
4070: try {
4071: switch (xType) {
4072: case UnComponentFactory.MARKUP: {
4073: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
4074: .get(xPl);
4075: if (l_htmlDesc != null) {
4076: // Signatur + Parameter
4077: Class l_class[] = {
4078: java.lang.String.class,
4079: de.ug2t.connector.ACoDataGetter.class,
4080: java.lang.Object.class,
4081: Integer.TYPE,
4082: de.ug2t.channel.markup.generic.MuGenericApplication.class };
4083: Object l_param[] = { xName, this .pem_dataGetter,
4084: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
4085: new Integer(xDirection),
4086: (MuGenericApplication) xAppl };
4087:
4088: // @@
4089: l_ret = (IUnSlider) l_htmlDesc.pcmf_createObject(
4090: l_param, l_class);
4091: }
4092: ;
4093: break;
4094: }
4095: case UnComponentFactory.HALFOBJECT:
4096: case UnComponentFactory.MIXED: {
4097: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
4098: .get(xPl);
4099: if (l_swingDesc != null) {
4100: // Signatur + Parameter
4101: Class l_class[] = {
4102: java.lang.String.class,
4103: Integer.TYPE,
4104: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
4105: java.lang.String.class };
4106: Object l_param[] = { xName,
4107: new Integer(xDirection),
4108: (IUnApplication) xAppl,
4109: l_swingDesc.pdm_clientClass };
4110:
4111: l_ret = (IUnSlider) l_swingDesc.pcmf_createObject(
4112: l_param, l_class);
4113: }
4114: ;
4115: break;
4116: }
4117: default:
4118: }
4119: ;
4120: } catch (Exception e) {
4121: KeLog.pcmf_logException("ug2t", this , e);
4122: }
4123: ;
4124:
4125: return (l_ret);
4126: };
4127:
4128: public final IUnSnapShotComponent pcmf_createSnapShot(int xType,
4129: String xName, int x, int y, IUnApplication xAppl) {
4130: return (this .pcmf_createSnapShotPlugin(xType, xName, x, y,
4131: xAppl, UnComponentFactory.pem_uiEl[34]));
4132: }
4133:
4134: public final IUnSnapShotComponent pcmf_createSnapShotPlugin(
4135: int xType, String xName, int x, int y,
4136: IUnApplication xAppl, String xPl) {
4137: if (xPl == null)
4138: xPl = UnComponentFactory.pem_uiEl[34];
4139:
4140: UnHoDescriptor l_swingDesc = null;
4141: UnMarkupDescriptor l_htmlDesc = null;
4142:
4143: IUnSnapShotComponent l_ret = null;
4144:
4145: try {
4146: switch (xType) {
4147: case UnComponentFactory.MARKUP: {
4148: l_htmlDesc = (UnMarkupDescriptor) this .pem_muElements
4149: .get(xPl);
4150: if (l_htmlDesc != null) {
4151: // Signatur + Parameter
4152: Class l_class[] = {
4153: java.lang.String.class,
4154: de.ug2t.connector.ACoDataGetter.class,
4155: java.lang.Object.class,
4156: de.ug2t.channel.markup.generic.MuGenericApplication.class };
4157: Object l_param[] = { xName, this .pem_dataGetter,
4158: this .pem_rootDir + l_htmlDesc.pdm_tplFile,
4159: (MuGenericApplication) xAppl };
4160:
4161: // @@
4162: l_ret = (IUnSnapShotComponent) l_htmlDesc
4163: .pcmf_createObject(l_param, l_class);
4164: }
4165: ;
4166: break;
4167: }
4168: case UnComponentFactory.HALFOBJECT:
4169: case UnComponentFactory.MIXED: {
4170: l_swingDesc = (UnHoDescriptor) this .pem_hoElements
4171: .get(xPl);
4172: if (l_swingDesc != null) {
4173: // Signatur + Parameter
4174: Class l_class[] = {
4175: java.lang.String.class,
4176: de.ug2t.unifiedGui.interfaces.IUnApplication.class,
4177: java.lang.String.class };
4178: Object l_param[] = { xName, (IUnApplication) xAppl,
4179: l_swingDesc.pdm_clientClass };
4180:
4181: l_ret = (IUnSnapShotComponent) l_swingDesc
4182: .pcmf_createObject(l_param, l_class);
4183: }
4184: ;
4185: break;
4186: }
4187: default:
4188: }
4189: ;
4190:
4191: l_ret.pcmf_setWidgetSize(x, y);
4192:
4193: } catch (Exception e) {
4194: KeLog.pcmf_logException("ug2t", this , e);
4195: }
4196: ;
4197:
4198: return (l_ret);
4199: };
4200:
4201: public ACoDataGetter pcmf_getDataGetter() {
4202: return (this .pem_dataGetter);
4203: }
4204:
4205: public void pcmf_delete() throws Exception {
4206: if (this .pdm_deleted == true)
4207: return;
4208:
4209: if (this.pem_myGetter && this.pem_dataGetter != null)
4210: this.pem_dataGetter.pcmf_delete();
4211:
4212: super.pcmf_delete();
4213: }
4214: }
|