0001: // @@
0002: // @@
0003: /*
0004: * Wi.Ser Framework
0005: *
0006: * LGPL Version: 1.8.1, 20-September-2007
0007: * Copyright (C) 2005-2006 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.channel.ho.server.generic;
0032:
0033: import java.awt.*;
0034: import java.io.*;
0035: import java.util.*;
0036:
0037: import de.ug2t.channel.ho.session.*;
0038: import de.ug2t.kernel.*;
0039: import de.ug2t.unifiedGui.*;
0040: import de.ug2t.unifiedGui.interfaces.*;
0041: import de.ug2t.xmlScript.*;
0042:
0043: public abstract class AHoSrvGenericComponent extends UnComponent
0044: implements IUnLazyComponent {
0045: protected transient IHoSession pdm_session = null;
0046:
0047: private ArrayList pem_myRefs = null;
0048: private AHoSrvGenericComponent pem_refFrom = null;
0049: protected String pdm_clientClass = null;
0050: private boolean pem_autoEcho = true;
0051: private int pem_eventLatency = -1;
0052: private boolean pem_hasCtx = false;
0053:
0054: protected void pdmf_setHasCtxMenu(boolean xCtx) {
0055: this .pem_hasCtx = xCtx;
0056: }
0057:
0058: public boolean pcmf_hasCtxMenu() {
0059: return (pem_hasCtx);
0060: }
0061:
0062: public String pcmf_getClientClass() {
0063: return (this .pdm_clientClass);
0064: }
0065:
0066: // @@
0067:
0068: public void pcmf_addSynced(IUnSyncComponent xSynced) {
0069: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0070: "");
0071:
0072: if (this .pdm_session.pcmf_isInTransaction()) {
0073: ScXmlScript.pcmf_createPBody(l_remCall);
0074: } else {
0075: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0076: ScXmlScript.pcmf_addProc(l_remCall, null);
0077: }
0078: ;
0079: ScXmlScript.pcmf_addCall(l_remCall, null, this
0080: .pcmf_getRemName(), "pcmf_addSynced");
0081: ScXmlScript.pcmf_addCallPar(l_remCall, ((KeTreeNode) xSynced)
0082: .pcmf_getRemName(), "true",
0083: "de.ug2t.unifiedGui.interfaces.IUnSyncComponent");
0084: ScXmlScript.pcmf_endAll(l_remCall);
0085:
0086: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0087:
0088: super .pcmf_addSynced(xSynced);
0089:
0090: return;
0091: }
0092:
0093: public void pcmf_clearSynced() {
0094: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0095: "");
0096:
0097: if (this .pdm_session.pcmf_isInTransaction()) {
0098: ScXmlScript.pcmf_createPBody(l_remCall);
0099: } else {
0100: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0101: ScXmlScript.pcmf_addProc(l_remCall, null);
0102: }
0103: ;
0104: ScXmlScript.pcmf_addCall(l_remCall, null, this
0105: .pcmf_getRemName(), "pcmf_clearSynced");
0106: ScXmlScript.pcmf_endAll(l_remCall);
0107:
0108: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0109:
0110: super .pcmf_clearSynced();
0111:
0112: return;
0113: }
0114:
0115: public IUnSyncComponent pcmf_removeSynced(IUnSyncComponent xSynced) {
0116: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0117: "");
0118:
0119: if (this .pdm_session.pcmf_isInTransaction()) {
0120: ScXmlScript.pcmf_createPBody(l_remCall);
0121: } else {
0122: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0123: ScXmlScript.pcmf_addProc(l_remCall, null);
0124: }
0125: ;
0126: ScXmlScript.pcmf_addCall(l_remCall, null, this
0127: .pcmf_getRemName(), "pcmf_removeSynced");
0128: ScXmlScript.pcmf_addCallPar(l_remCall, ((KeTreeNode) xSynced)
0129: .pcmf_getRemName(), "true",
0130: "de.ug2t.unifiedGui.interfaces.IUnSyncComponent");
0131: ScXmlScript.pcmf_endAll(l_remCall);
0132:
0133: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0134:
0135: return (super .pcmf_removeSynced(xSynced));
0136: }
0137:
0138: public AHoSrvGenericComponent(String xName, IHoSession xSess)
0139: throws Exception {
0140: super (xName);
0141: this .pdm_session = xSess;
0142: };
0143:
0144: public AHoSrvGenericComponent(String xName) throws Exception {
0145: super (xName);
0146: this .pdm_session = (IHoSession) KeRegisteredObject
0147: .pcmf_getObjByName(IHoSession.SESSION_NAME);
0148: };
0149:
0150: public KeTreeNode pcmf_addLocalNode(String xName, KeTreeNode xNode) {
0151: if (xNode instanceof IUnContextMenu)
0152: this .pdmf_setHasCtxMenu(true);
0153:
0154: return (super .pcmf_addNode(xName, xNode));
0155: };
0156:
0157: public KeTreeNode pcmf_addNode(String xName, KeTreeNode xNode) {
0158: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0159: "");
0160:
0161: if (this .pdm_session.pcmf_isInTransaction()) {
0162: ScXmlScript.pcmf_createPBody(l_remCall);
0163: } else {
0164: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0165: ScXmlScript.pcmf_addProc(l_remCall, null);
0166: }
0167: ;
0168: ScXmlScript.pcmf_addCall(l_remCall, null, this
0169: .pcmf_getRemName(), "pcmf_addNode");
0170: ScXmlScript.pcmf_addCallPar(l_remCall, xName, "false",
0171: "java.lang.String");
0172: ScXmlScript.pcmf_addCallPar(l_remCall, xNode.pcmf_getRemName(),
0173: "true", "de.ug2t.kernel.KeTreeNode");
0174: ScXmlScript.pcmf_endAll(l_remCall);
0175:
0176: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0177:
0178: if (xNode instanceof IUnContextMenu)
0179: this .pdmf_setHasCtxMenu(true);
0180:
0181: return (super .pcmf_addNode(xName, xNode));
0182: };
0183:
0184: public KeTreeNode pcmf_addNode(String xName, KeTreeNode xNode,
0185: KeTreeElement xBehind) {
0186: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0187: "");
0188:
0189: if (this .pdm_session.pcmf_isInTransaction()) {
0190: ScXmlScript.pcmf_createPBody(l_remCall);
0191: } else {
0192: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0193: ScXmlScript.pcmf_addProc(l_remCall, null);
0194: }
0195: ;
0196: ScXmlScript.pcmf_addCall(l_remCall, null, this
0197: .pcmf_getRemName(), "pcmf_addNode");
0198: ScXmlScript.pcmf_addCallPar(l_remCall, xName, "false",
0199: "java.lang.String");
0200: ScXmlScript.pcmf_addCallPar(l_remCall, xNode.pcmf_getRemName(),
0201: "true", "de.ug2t.kernel.KeTreeNode");
0202: ScXmlScript.pcmf_addCallPar(l_remCall, xBehind
0203: .pcmf_getRemName(), "true",
0204: "de.ug2t.kernel.KeTreeElement");
0205: ScXmlScript.pcmf_endAll(l_remCall);
0206:
0207: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0208:
0209: if (xNode instanceof IUnContextMenu)
0210: this .pdmf_setHasCtxMenu(true);
0211:
0212: return super .pcmf_addNode(xName, xNode, xBehind);
0213: }
0214:
0215: public KeTreeNode pcmf_addNode(String xName, KeTreeNode xNode,
0216: int xIdx) {
0217: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0218: "");
0219:
0220: if (this .pdm_session.pcmf_isInTransaction()) {
0221: ScXmlScript.pcmf_createPBody(l_remCall);
0222: } else {
0223: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0224: ScXmlScript.pcmf_addProc(l_remCall, null);
0225: }
0226: ;
0227: ScXmlScript.pcmf_addCall(l_remCall, null, this
0228: .pcmf_getRemName(), "pcmf_addNode");
0229: ScXmlScript.pcmf_addCallPar(l_remCall, xName, "false",
0230: "java.lang.String");
0231: ScXmlScript.pcmf_addCallPar(l_remCall, xNode.pcmf_getRemName(),
0232: "true", "de.ug2t.kernel.KeTreeNode");
0233: ScXmlScript.pcmf_addCallPar(l_remCall, Integer.toString(xIdx),
0234: "false", "int");
0235: ScXmlScript.pcmf_endAll(l_remCall);
0236:
0237: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0238:
0239: if (xNode instanceof IUnContextMenu)
0240: this .pdmf_setHasCtxMenu(true);
0241:
0242: return super .pcmf_addNode(xName, xNode, xIdx);
0243: }
0244:
0245: public KeTreeNode pcmf_removeLocalNode(String xName) {
0246: KeTreeNode l_ret = super .pcmf_removeNode(xName);
0247: if (l_ret instanceof IUnContextMenu)
0248: this .pdmf_setHasCtxMenu(false);
0249:
0250: return (l_ret);
0251: };
0252:
0253: public KeTreeNode pcmf_removeNode(String xName) {
0254: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0255: "");
0256:
0257: if (this .pdm_session.pcmf_isInTransaction()) {
0258: ScXmlScript.pcmf_createPBody(l_remCall);
0259: } else {
0260: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0261: ScXmlScript.pcmf_addProc(l_remCall, null);
0262: }
0263: ;
0264: ScXmlScript.pcmf_addCall(l_remCall, null, this
0265: .pcmf_getRemName(), "pcmf_removeNode");
0266: ScXmlScript.pcmf_addCallPar(l_remCall, xName, "false",
0267: "java.lang.String");
0268: ScXmlScript.pcmf_endAll(l_remCall);
0269:
0270: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0271:
0272: KeTreeNode l_ret = super .pcmf_removeNode(xName);
0273: if (l_ret instanceof IUnContextMenu)
0274: this .pdmf_setHasCtxMenu(false);
0275:
0276: return (l_ret);
0277: };
0278:
0279: public KeTreeNode pcmf_removeNode(KeTreeNode xNode) {
0280:
0281: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0282: "");
0283:
0284: if (this .pdm_session.pcmf_isInTransaction()) {
0285: ScXmlScript.pcmf_createPBody(l_remCall);
0286: } else {
0287: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0288: ScXmlScript.pcmf_addProc(l_remCall, null);
0289: }
0290: ;
0291: ScXmlScript.pcmf_addCall(l_remCall, null, this
0292: .pcmf_getRemName(), "pcmf_removeNode");
0293: ScXmlScript.pcmf_addCallPar(l_remCall, xNode.pcmf_getRemName(),
0294: "true", "de.ug2t.kernel.KeTreeNode");
0295: ScXmlScript.pcmf_endAll(l_remCall);
0296:
0297: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0298:
0299: KeTreeNode l_ret = super .pcmf_removeNode(xNode);
0300: if (l_ret instanceof IUnContextMenu)
0301: this .pdmf_setHasCtxMenu(false);
0302:
0303: return (l_ret);
0304: };
0305:
0306: public KeTreeElement pcmf_addLocalElement(String xName,
0307: KeTreeElement xNode) {
0308: if (xNode instanceof IUnContextMenu)
0309: this .pdmf_setHasCtxMenu(true);
0310:
0311: return (super .pcmf_addElement(xName, xNode));
0312: }
0313:
0314: public KeTreeElement pcmf_addElement(String xName,
0315: KeTreeElement xNode) {
0316: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0317: "");
0318:
0319: if (this .pdm_session.pcmf_isInTransaction()) {
0320: ScXmlScript.pcmf_createPBody(l_remCall);
0321: } else {
0322: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0323: ScXmlScript.pcmf_addProc(l_remCall, null);
0324: }
0325: ;
0326: ScXmlScript.pcmf_addCall(l_remCall, null, this
0327: .pcmf_getRemName(), "pcmf_addElement");
0328: ScXmlScript.pcmf_addCallPar(l_remCall, xName, "false",
0329: "java.lang.String");
0330: ScXmlScript.pcmf_addCallPar(l_remCall, xNode.pcmf_getRemName(),
0331: "true", "de.ug2t.kernel.KeTreeElement");
0332: ScXmlScript.pcmf_endAll(l_remCall);
0333:
0334: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0335:
0336: if (xNode instanceof IUnContextMenu)
0337: this .pdmf_setHasCtxMenu(true);
0338:
0339: return (super .pcmf_addElement(xName, xNode));
0340: };
0341:
0342: public KeTreeElement pcmf_removeLocalElement(String xName) {
0343: KeTreeElement l_ret = super .pcmf_removeElement(xName);
0344: if (l_ret instanceof IUnContextMenu)
0345: this .pdmf_setHasCtxMenu(false);
0346:
0347: return (l_ret);
0348: };
0349:
0350: public KeTreeElement pcmf_removeElement(String xName) {
0351: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0352: "");
0353:
0354: if (this .pdm_session.pcmf_isInTransaction()) {
0355: ScXmlScript.pcmf_createPBody(l_remCall);
0356: } else {
0357: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0358: ScXmlScript.pcmf_addProc(l_remCall, null);
0359: }
0360: ;
0361: ScXmlScript.pcmf_addCall(l_remCall, null, this
0362: .pcmf_getRemName(), "pcmf_addElement");
0363: ScXmlScript.pcmf_addCallPar(l_remCall, xName, "false",
0364: "java.lang.String");
0365: ScXmlScript.pcmf_endAll(l_remCall);
0366:
0367: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0368:
0369: KeTreeElement l_ret = super .pcmf_removeElement(xName);
0370: if (l_ret instanceof IUnContextMenu)
0371: this .pdmf_setHasCtxMenu(false);
0372:
0373: return (l_ret);
0374: };
0375:
0376: public void pcmf_setValue(Object xValue) {
0377: this .pcmf_setOnlyValue(xValue);
0378: this .pcmf_updateRefs();
0379: };
0380:
0381: public void pcmf_echoValue(Object xValue) {
0382: if (xValue == null)
0383: xValue = "null";
0384:
0385: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0386: "");
0387:
0388: if (this .pdm_session.pcmf_isInTransaction()) {
0389: ScXmlScript.pcmf_createPBody(l_remCall);
0390: } else {
0391: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0392: ScXmlScript.pcmf_addProc(l_remCall, null);
0393: }
0394: ;
0395: ScXmlScript.pcmf_addCall(l_remCall, null, this
0396: .pcmf_getRemName(), "pcmf_setValue");
0397:
0398: if (xValue instanceof KeRegisteredObject)
0399: ScXmlScript.pcmf_addCallPar(l_remCall,
0400: ((KeRegisteredObject) xValue).pcmf_getRemName(),
0401: "true", "java.lang.Object");
0402: else if (xValue != null)
0403: ScXmlScript.pcmf_addCallPar(l_remCall, xValue.toString(),
0404: "false", "java.lang.Object");
0405: else
0406: ScXmlScript.pcmf_addCallPar(l_remCall, "null", "false",
0407: "java.lang.Object");
0408:
0409: ScXmlScript.pcmf_endAll(l_remCall);
0410:
0411: this .pdm_session.pcmf_echoCall(l_remCall.toString());
0412:
0413: return;
0414: }
0415:
0416: public void pcmf_setOnlyValue(Object xValue) {
0417: if (xValue == null)
0418: xValue = "null";
0419:
0420: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0421: "");
0422:
0423: if (this .pdm_session.pcmf_isInTransaction()) {
0424: ScXmlScript.pcmf_createPBody(l_remCall);
0425: } else {
0426: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0427: ScXmlScript.pcmf_addProc(l_remCall, null);
0428: }
0429: ;
0430: ScXmlScript.pcmf_addCall(l_remCall, null, this
0431: .pcmf_getRemName(), "pcmf_setValue");
0432:
0433: if (xValue instanceof KeRegisteredObject)
0434: ScXmlScript.pcmf_addCallPar(l_remCall,
0435: ((KeRegisteredObject) xValue).pcmf_getRemName(),
0436: "true", "java.lang.Object");
0437: else if (xValue != null)
0438: ScXmlScript.pcmf_addCallPar(l_remCall, xValue.toString(),
0439: "false", "java.lang.Object");
0440: else
0441: ScXmlScript.pcmf_addCallPar(l_remCall, "null", "false",
0442: "java.lang.Object");
0443:
0444: ScXmlScript.pcmf_endAll(l_remCall);
0445:
0446: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0447:
0448: super .pcmf_setLocalValue(xValue);
0449:
0450: return;
0451: };
0452:
0453: public void pcmf_setRemoteValue(Object xValue) {
0454: if (xValue == null)
0455: xValue = "null";
0456:
0457: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0458: "");
0459:
0460: if (this .pdm_session.pcmf_isInTransaction()) {
0461: ScXmlScript.pcmf_createPBody(l_remCall);
0462: } else {
0463: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0464: ScXmlScript.pcmf_addProc(l_remCall, null);
0465: }
0466: ;
0467: ScXmlScript.pcmf_addCall(l_remCall, null, this
0468: .pcmf_getRemName(), "pcmf_setValue");
0469:
0470: if (xValue instanceof KeRegisteredObject)
0471: ScXmlScript.pcmf_addCallPar(l_remCall,
0472: ((KeRegisteredObject) xValue).pcmf_getRemName(),
0473: "true", "java.lang.Object");
0474: else if (xValue != null)
0475: ScXmlScript.pcmf_addCallPar(l_remCall, xValue.toString(),
0476: "false", "java.lang.Object");
0477: else
0478: ScXmlScript.pcmf_addCallPar(l_remCall, "null", "false",
0479: "java.lang.Object");
0480:
0481: ScXmlScript.pcmf_endAll(l_remCall);
0482:
0483: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0484:
0485: return;
0486: };
0487:
0488: public void pcmf_disable() {
0489: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0490: "");
0491:
0492: if (this .pdm_session.pcmf_isInTransaction()) {
0493: ScXmlScript.pcmf_createPBody(l_remCall);
0494: } else {
0495: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0496: ScXmlScript.pcmf_addProc(l_remCall, null);
0497: }
0498: ;
0499: ScXmlScript.pcmf_addCall(l_remCall, null, this
0500: .pcmf_getRemName(), "pcmf_disable");
0501: ScXmlScript.pcmf_endAll(l_remCall);
0502:
0503: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0504:
0505: super .pcmf_disable();
0506: };
0507:
0508: public void pcmf_enable() {
0509: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0510: "");
0511:
0512: if (this .pdm_session.pcmf_isInTransaction()) {
0513: ScXmlScript.pcmf_createPBody(l_remCall);
0514: } else {
0515: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0516: ScXmlScript.pcmf_addProc(l_remCall, null);
0517: }
0518: ;
0519: ScXmlScript.pcmf_addCall(l_remCall, null, this
0520: .pcmf_getRemName(), "pcmf_enable");
0521: ScXmlScript.pcmf_endAll(l_remCall);
0522:
0523: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0524:
0525: super .pcmf_enable();
0526: };
0527:
0528: public void pcmf_enableSubmit() {
0529: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0530: "");
0531:
0532: if (this .pdm_session.pcmf_isInTransaction()) {
0533: ScXmlScript.pcmf_createPBody(l_remCall);
0534: } else {
0535: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0536: ScXmlScript.pcmf_addProc(l_remCall, null);
0537: }
0538: ;
0539: ScXmlScript.pcmf_addCall(l_remCall, null, this
0540: .pcmf_getRemName(), "pcmf_enableSubmit");
0541: ScXmlScript.pcmf_endAll(l_remCall);
0542:
0543: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0544:
0545: super .pcmf_enableSubmit();
0546: };
0547:
0548: public void pcmf_disableSubmit() {
0549: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0550: "");
0551:
0552: if (this .pdm_session.pcmf_isInTransaction()) {
0553: ScXmlScript.pcmf_createPBody(l_remCall);
0554: } else {
0555: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0556: ScXmlScript.pcmf_addProc(l_remCall, null);
0557: }
0558: ;
0559: ScXmlScript.pcmf_addCall(l_remCall, null, this
0560: .pcmf_getRemName(), "pcmf_disableSubmit");
0561: ScXmlScript.pcmf_endAll(l_remCall);
0562:
0563: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0564:
0565: super .pcmf_disableSubmit();
0566: };
0567:
0568: public UnComponent pcmf_setPosition(String xName, int xPos,
0569: int yPos, int xWidth, int xHeigth, int xAlign) {
0570: throw (new UnsupportedOperationException());
0571: };
0572:
0573: public UnComponent pcmf_setPosition(UnComponent xObj, int xPos,
0574: int yPos, int xWidth, int xHeigth, int xAlign) {
0575: throw (new UnsupportedOperationException());
0576: };
0577:
0578: public abstract AHoSrvGenericComponent pcmf_buildRefObj()
0579: throws Exception;
0580:
0581: public void pcmf_addRef(AHoSrvGenericComponent xObj)
0582:
0583: {
0584: if (this .pem_myRefs == null)
0585: this .pem_myRefs = new ArrayList();
0586:
0587: this .pem_myRefs.add(xObj);
0588:
0589: return;
0590: };
0591:
0592: public void pcmf_setRefFrom(AHoSrvGenericComponent xObj) {
0593: this .pem_refFrom = xObj;
0594:
0595: return;
0596: };
0597:
0598: public void pcmf_updateRefs() {
0599: if (this .pcmf_isSubmit())
0600: return;
0601: if (this .pem_refFrom != null) {
0602: if (this .pcmf_isDisabled())
0603: this .pem_refFrom.pcmf_disable();
0604: else
0605: this .pem_refFrom.pcmf_enable();
0606:
0607: this .pem_refFrom.pcmf_setOnlyValue(this .pcmf_getValue());
0608: }
0609: ;
0610: if (this .pem_myRefs != null) {
0611: Iterator it = this .pem_myRefs.iterator();
0612: AHoSrvGenericComponent l_obj = null;
0613: while (it.hasNext()) {
0614: l_obj = (AHoSrvGenericComponent) it.next();
0615: if (this .pcmf_isDisabled())
0616: l_obj.pcmf_disable();
0617: else
0618: l_obj.pcmf_enable();
0619:
0620: l_obj.pcmf_setValue(this .pcmf_getValue());
0621: }
0622: ;
0623: }
0624: ;
0625:
0626: return;
0627: };
0628:
0629: public void pcmf_reRegister(String xName) {
0630: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0631: "");
0632:
0633: if (this .pdm_session.pcmf_isInTransaction()) {
0634: ScXmlScript.pcmf_createPBody(l_remCall);
0635: } else {
0636: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0637: ScXmlScript.pcmf_addProc(l_remCall, null);
0638: }
0639: ;
0640: ScXmlScript.pcmf_addCall(l_remCall, null, this
0641: .pcmf_getRemName(), "pcmf_registerGlobal2NewName");
0642: ScXmlScript.pcmf_addCallPar(l_remCall, xName, "false",
0643: "java.lang.String");
0644: ScXmlScript.pcmf_endAll(l_remCall);
0645:
0646: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0647:
0648: this .pcmf_unRegister();
0649: this .pcmf_register(xName);
0650:
0651: return;
0652: };
0653:
0654: public void pcmf_setCursor(String xCursor) {
0655: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0656: "");
0657:
0658: if (this .pdm_session.pcmf_isInTransaction()) {
0659: ScXmlScript.pcmf_createPBody(l_remCall);
0660: } else {
0661: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0662: ScXmlScript.pcmf_addProc(l_remCall, null);
0663: }
0664: ;
0665: ScXmlScript.pcmf_addCall(l_remCall, null, this
0666: .pcmf_getRemName(), "pcmf_setCursor");
0667: ScXmlScript.pcmf_addCallPar(l_remCall, xCursor, "false",
0668: "java.lang.String");
0669: ScXmlScript.pcmf_endAll(l_remCall);
0670:
0671: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0672:
0673: super .pcmf_setCursor(xCursor);
0674:
0675: return;
0676: };
0677:
0678: public void pcmf_setToolTip(String xTip) {
0679: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0680: "");
0681:
0682: if (this .pdm_session.pcmf_isInTransaction()) {
0683: ScXmlScript.pcmf_createPBody(l_remCall);
0684: } else {
0685: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0686: ScXmlScript.pcmf_addProc(l_remCall, null);
0687: }
0688: ;
0689: ScXmlScript.pcmf_addCall(l_remCall, null, this
0690: .pcmf_getRemName(), "pcmf_setToolTip");
0691: ScXmlScript.pcmf_addCallPar(l_remCall, xTip, "false",
0692: "java.lang.String");
0693: ScXmlScript.pcmf_endAll(l_remCall);
0694:
0695: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0696:
0697: super .pcmf_setToolTip(xTip);
0698:
0699: return;
0700: };
0701:
0702: public void pcmf_setFgColor(String xCol) {
0703: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0704: "");
0705:
0706: if (this .pdm_session.pcmf_isInTransaction()) {
0707: ScXmlScript.pcmf_createPBody(l_remCall);
0708: } else {
0709: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0710: ScXmlScript.pcmf_addProc(l_remCall, null);
0711: }
0712: ;
0713: ScXmlScript.pcmf_addCall(l_remCall, null, this
0714: .pcmf_getRemName(), "pcmf_setFgColor");
0715: ScXmlScript.pcmf_addCallPar(l_remCall, xCol, "false",
0716: "java.lang.String");
0717: ScXmlScript.pcmf_endAll(l_remCall);
0718:
0719: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0720:
0721: super .pcmf_setFgColor(xCol);
0722:
0723: return;
0724: };
0725:
0726: public void pcmf_setBgColor(String xCol) {
0727: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0728: "");
0729:
0730: if (this .pdm_session.pcmf_isInTransaction()) {
0731: ScXmlScript.pcmf_createPBody(l_remCall);
0732: } else {
0733: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0734: ScXmlScript.pcmf_addProc(l_remCall, null);
0735: }
0736: ;
0737: ScXmlScript.pcmf_addCall(l_remCall, null, this
0738: .pcmf_getRemName(), "pcmf_setBgColor");
0739: ScXmlScript.pcmf_addCallPar(l_remCall, xCol, "false",
0740: "java.lang.String");
0741: ScXmlScript.pcmf_endAll(l_remCall);
0742:
0743: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0744:
0745: super .pcmf_setBgColor(xCol);
0746:
0747: return;
0748: };
0749:
0750: public void pcmf_repaint() {
0751: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0752: "");
0753:
0754: if (this .pdm_session.pcmf_isInTransaction()) {
0755: ScXmlScript.pcmf_createPBody(l_remCall);
0756: } else {
0757: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0758: ScXmlScript.pcmf_addProc(l_remCall, null);
0759: }
0760: ;
0761: ScXmlScript.pcmf_addCall(l_remCall, null, this
0762: .pcmf_getRemName(), "pcmf_repaint");
0763: ScXmlScript.pcmf_endAll(l_remCall);
0764:
0765: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0766:
0767: return;
0768: };
0769:
0770: public void pcmf_draw() {
0771: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0772: "");
0773:
0774: if (this .pdm_session.pcmf_isInTransaction()) {
0775: ScXmlScript.pcmf_createPBody(l_remCall);
0776: } else {
0777: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0778: ScXmlScript.pcmf_addProc(l_remCall, null);
0779: }
0780: ;
0781: ScXmlScript.pcmf_addCall(l_remCall, null, this
0782: .pcmf_getRemName(), "pcmf_draw");
0783: ScXmlScript.pcmf_endAll(l_remCall);
0784:
0785: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0786:
0787: return;
0788: };
0789:
0790: public void pcmf_delete() throws Exception {
0791: if (this .pdm_deleted == true)
0792: return;
0793:
0794: String l_remName = this .pcmf_getRemName();
0795: super .pcmf_delete();
0796:
0797: if (l_remName != null) {
0798: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0799: "");
0800:
0801: if (this .pdm_session.pcmf_isInTransaction()) {
0802: ScXmlScript.pcmf_createPBody(l_remCall);
0803: } else {
0804: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0805: ScXmlScript.pcmf_addProc(l_remCall, null);
0806: }
0807: ;
0808:
0809: ScXmlScript.pcmf_addCall(l_remCall, null, l_remName,
0810: "pcmf_delete");
0811: ScXmlScript.pcmf_endAll(l_remCall);
0812:
0813: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0814: }
0815:
0816: return;
0817: }
0818:
0819: public void pcmf_setFont(UnFontDescriptor xFont) {
0820: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0821: "");
0822:
0823: if (this .pdm_session.pcmf_isInTransaction()) {
0824: ScXmlScript.pcmf_createPBody(l_remCall);
0825: } else {
0826: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0827: ScXmlScript.pcmf_addProc(l_remCall, null);
0828: }
0829: ;
0830: ScXmlScript.pcmf_addCall(l_remCall, null, this
0831: .pcmf_getRemName(), "pcmf_setFont");
0832: ScXmlScript.pcmf_addCallPar(l_remCall, xFont.pcmf_getRemName(),
0833: "true", "de.ug2t.unifiedGui.UnFontDescriptor");
0834: ScXmlScript.pcmf_endAll(l_remCall);
0835:
0836: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0837:
0838: super .pcmf_setFont(xFont);
0839:
0840: return;
0841: }
0842:
0843: /**
0844: * <p>
0845: * Requests focus for this widget
0846: * </p>
0847: * <p>
0848: *
0849: */
0850: public void pcmf_requestFocus() {
0851: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0852: "");
0853:
0854: if (this .pdm_session.pcmf_isInTransaction()) {
0855: ScXmlScript.pcmf_createPBody(l_remCall);
0856: } else {
0857: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0858: ScXmlScript.pcmf_addProc(l_remCall, null);
0859: }
0860: ;
0861: ScXmlScript.pcmf_addCall(l_remCall, null, this
0862: .pcmf_getRemName(), "pcmf_requestFocus");
0863: ScXmlScript.pcmf_endAll(l_remCall);
0864:
0865: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0866:
0867: return;
0868: }
0869:
0870: public void pcmf_setBorder(int xBorder, String xColor, int xWidth) {
0871: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0872: "");
0873:
0874: if (this .pdm_session.pcmf_isInTransaction()) {
0875: ScXmlScript.pcmf_createPBody(l_remCall);
0876: } else {
0877: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0878: ScXmlScript.pcmf_addProc(l_remCall, null);
0879: }
0880: ;
0881: ScXmlScript.pcmf_addCall(l_remCall, null, this
0882: .pcmf_getRemName(), "pcmf_setBorder");
0883: ScXmlScript.pcmf_addCallPar(l_remCall, Integer
0884: .toString(xBorder), "false", "int");
0885: ScXmlScript.pcmf_addCallPar(l_remCall, xColor, "false",
0886: "java.lang.String");
0887: ScXmlScript.pcmf_addCallPar(l_remCall,
0888: Integer.toString(xWidth), "false", "int");
0889: ScXmlScript.pcmf_endAll(l_remCall);
0890:
0891: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0892:
0893: super .pcmf_setBorder(xBorder, xColor, xWidth);
0894:
0895: return;
0896: }
0897:
0898: public void pcmf_setFixedSize(int w, int h, int type) {
0899: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0900: "");
0901:
0902: if (this .pdm_session.pcmf_isInTransaction()) {
0903: ScXmlScript.pcmf_createPBody(l_remCall);
0904: } else {
0905: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0906: ScXmlScript.pcmf_addProc(l_remCall, null);
0907: }
0908: ;
0909: ScXmlScript.pcmf_addCall(l_remCall, null, this
0910: .pcmf_getRemName(), "pcmf_setFixedSize");
0911: ScXmlScript.pcmf_addCallPar(l_remCall, Integer.toString(w),
0912: "false", "int");
0913: ScXmlScript.pcmf_addCallPar(l_remCall, Integer.toString(h),
0914: "false", "int");
0915: ScXmlScript.pcmf_addCallPar(l_remCall, Integer.toString(type),
0916: "false", "int");
0917: ScXmlScript.pcmf_endAll(l_remCall);
0918:
0919: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0920:
0921: super .pcmf_setFixedSize(w, h, type);
0922:
0923: return;
0924: }
0925:
0926: public void pcmf_deleteFixedSize() {
0927: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0928: "");
0929:
0930: if (this .pdm_session.pcmf_isInTransaction()) {
0931: ScXmlScript.pcmf_createPBody(l_remCall);
0932: } else {
0933: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0934: ScXmlScript.pcmf_addProc(l_remCall, null);
0935: }
0936: ;
0937: ScXmlScript.pcmf_addCall(l_remCall, null, this
0938: .pcmf_getRemName(), "pcmf_deleteFixedSize");
0939: ScXmlScript.pcmf_endAll(l_remCall);
0940:
0941: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0942:
0943: super .pcmf_deleteFixedSize();
0944:
0945: return;
0946: }
0947:
0948: public final void pcmf_clearAndRelease() {
0949: String l_remName = this .pcmf_getRemName();
0950: if (l_remName != null) {
0951: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0952: "");
0953:
0954: if (this .pdm_session.pcmf_isInTransaction()) {
0955: ScXmlScript.pcmf_createPBody(l_remCall);
0956: } else {
0957: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0958: ScXmlScript.pcmf_addProc(l_remCall, null);
0959: }
0960: ;
0961:
0962: ScXmlScript.pcmf_addCall(l_remCall, null, l_remName,
0963: "pcmf_clearAndRelease");
0964: ScXmlScript.pcmf_endAll(l_remCall);
0965:
0966: this .pdm_session.pcmf_beginTr();
0967: super .pcmf_clearAndRelease();
0968: this .pdm_session.pcmf_commitTr();
0969:
0970: this .pdm_session.pcmf_call(l_remCall.toString(), this );
0971:
0972: } else
0973: super .pcmf_clearAndRelease();
0974:
0975: return;
0976: }
0977:
0978: public final void pcmf_clear() {
0979: String l_remName = this .pcmf_getRemName();
0980: if (l_remName != null) {
0981: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
0982: "");
0983:
0984: if (this .pdm_session.pcmf_isInTransaction()) {
0985: ScXmlScript.pcmf_createPBody(l_remCall);
0986: } else {
0987: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
0988: ScXmlScript.pcmf_addProc(l_remCall, null);
0989: }
0990: ;
0991:
0992: ScXmlScript.pcmf_addCall(l_remCall, null, l_remName,
0993: "pcmf_clear");
0994: ScXmlScript.pcmf_endAll(l_remCall);
0995:
0996: this .pdm_session.pcmf_beginTr();
0997: super .pcmf_clear();
0998: this .pdm_session.pcmf_commitTr();
0999:
1000: this .pdm_session.pcmf_call(l_remCall.toString(), this );
1001:
1002: } else
1003: super .pcmf_clear();
1004:
1005: return;
1006: }
1007:
1008: public final void pcmf_releaseSubs() {
1009: String l_remName = this .pcmf_getRemName();
1010: if (l_remName != null) {
1011: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
1012: "");
1013:
1014: if (this .pdm_session.pcmf_isInTransaction()) {
1015: ScXmlScript.pcmf_createPBody(l_remCall);
1016: } else {
1017: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
1018: ScXmlScript.pcmf_addProc(l_remCall, null);
1019: }
1020: ;
1021:
1022: ScXmlScript.pcmf_addCall(l_remCall, null, l_remName,
1023: "pcmf_releaseSubs");
1024: ScXmlScript.pcmf_endAll(l_remCall);
1025:
1026: this .pdm_session.pcmf_beginTr();
1027: super .pcmf_releaseSubs();
1028: this .pdm_session.pcmf_commitTr();
1029:
1030: this .pdm_session.pcmf_call(l_remCall.toString(), this );
1031: } else
1032: super .pcmf_releaseSubs();
1033:
1034: return;
1035: }
1036:
1037: public void pcmf_toggleHideState() {
1038: if (this .pcmf_isHidden())
1039: this .pcmf_unhide();
1040: else
1041: this .pcmf_hide();
1042:
1043: return;
1044: };
1045:
1046: public void pcmf_hide() {
1047: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
1048: "");
1049:
1050: if (this .pdm_session.pcmf_isInTransaction()) {
1051: ScXmlScript.pcmf_createPBody(l_remCall);
1052: } else {
1053: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
1054: ScXmlScript.pcmf_addProc(l_remCall, null);
1055: }
1056: ;
1057: ScXmlScript.pcmf_addCall(l_remCall, null, this
1058: .pcmf_getRemName(), "pcmf_hide");
1059: ScXmlScript.pcmf_endAll(l_remCall);
1060:
1061: this .pdm_session.pcmf_call(l_remCall.toString(), this );
1062:
1063: super .pcmf_hide();
1064: return;
1065: };
1066:
1067: public void pcmf_unhide() {
1068: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
1069: "");
1070:
1071: if (this .pdm_session.pcmf_isInTransaction()) {
1072: ScXmlScript.pcmf_createPBody(l_remCall);
1073: } else {
1074: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
1075: ScXmlScript.pcmf_addProc(l_remCall, null);
1076: }
1077: ;
1078: ScXmlScript.pcmf_addCall(l_remCall, null, this
1079: .pcmf_getRemName(), "pcmf_unhide");
1080: ScXmlScript.pcmf_endAll(l_remCall);
1081:
1082: this .pdm_session.pcmf_call(l_remCall.toString(), this );
1083:
1084: super .pcmf_unhide();
1085: return;
1086: };
1087:
1088: public void pcmf_setRenderIfHidden(boolean xRiH) {
1089: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
1090: "");
1091:
1092: if (this .pdm_session.pcmf_isInTransaction()) {
1093: ScXmlScript.pcmf_createPBody(l_remCall);
1094: } else {
1095: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
1096: ScXmlScript.pcmf_addProc(l_remCall, null);
1097: }
1098: ;
1099: ScXmlScript.pcmf_addCall(l_remCall, null, this
1100: .pcmf_getRemName(), "pcmf_setRenderIfHidden");
1101: ScXmlScript.pcmf_addCallPar(l_remCall, xRiH ? "true" : "false",
1102: "false", "boolean");
1103: ScXmlScript.pcmf_endAll(l_remCall);
1104:
1105: this .pdm_session.pcmf_call(l_remCall.toString(), this );
1106:
1107: super .pcmf_setRenderIfHidden(xRiH);
1108:
1109: return;
1110: };
1111:
1112: public void pcmf_setCssClass(String xClass) {
1113: super .pcmf_setCssClass(xClass);
1114:
1115: this .pcmf_setFgColor(this .pcmf_getFgColor());
1116: this .pdm_colorSet = false;
1117: this .pcmf_setBgColor(this .pcmf_getBgColor());
1118:
1119: this .pcmf_setBorder(this .pcmf_getBorder(), this
1120: .pcmf_getBorderColor(), this .pcmf_getBorderWidth());
1121:
1122: UnFontDescriptor l_font = this .pcmf_getFont();
1123: if (l_font != null)
1124: this .pcmf_setFont(l_font);
1125:
1126: return;
1127: }
1128:
1129: public void pcmf_disableThis() {
1130: if (pdm_session != null) {
1131: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
1132: "");
1133:
1134: if (this .pdm_session.pcmf_isInTransaction()) {
1135: ScXmlScript.pcmf_createPBody(l_remCall);
1136: } else {
1137: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
1138: ScXmlScript.pcmf_addProc(l_remCall, null);
1139: }
1140: ;
1141: ScXmlScript.pcmf_addCall(l_remCall, null, this
1142: .pcmf_getRemName(), "pcmf_disableThis");
1143: ScXmlScript.pcmf_endAll(l_remCall);
1144:
1145: this .pdm_session.pcmf_call(l_remCall.toString(), this );
1146: }
1147: ;
1148: super .pcmf_disableThis();
1149: };
1150:
1151: public void pcmf_enableThis() {
1152: if (pdm_session != null) {
1153: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
1154: "");
1155:
1156: if (this .pdm_session.pcmf_isInTransaction()) {
1157: ScXmlScript.pcmf_createPBody(l_remCall);
1158: } else {
1159: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
1160: ScXmlScript.pcmf_addProc(l_remCall, null);
1161: }
1162: ;
1163: ScXmlScript.pcmf_addCall(l_remCall, null, this
1164: .pcmf_getRemName(), "pcmf_enableThis");
1165: ScXmlScript.pcmf_endAll(l_remCall);
1166:
1167: this .pdm_session.pcmf_call(l_remCall.toString(), this );
1168: }
1169: ;
1170: super .pcmf_enableThis();
1171: };
1172:
1173: public void pcmf_resetColorSettings() {
1174: String l_red = Integer
1175: .toHexString(SystemColor.control.getRed());
1176: if (l_red.length() == 1)
1177: l_red = "0" + l_red;
1178: String l_green = Integer.toHexString(SystemColor.control
1179: .getGreen());
1180: if (l_green.length() == 1)
1181: l_green = "0" + l_green;
1182: String l_blue = Integer.toHexString(SystemColor.control
1183: .getBlue());
1184: if (l_blue.length() == 1)
1185: l_blue = "0" + l_blue;
1186:
1187: this .pcmf_setBgColor("#" + l_red + l_green + l_blue);
1188:
1189: l_red = Integer.toHexString(SystemColor.controlText.getRed());
1190: if (l_red.length() == 1)
1191: l_red = "0" + l_red;
1192: l_green = Integer.toHexString(SystemColor.controlText
1193: .getGreen());
1194: if (l_green.length() == 1)
1195: l_green = "0" + l_green;
1196: l_blue = Integer.toHexString(SystemColor.controlText.getBlue());
1197: if (l_blue.length() == 1)
1198: l_blue = "0" + l_blue;
1199:
1200: this .pcmf_setFgColor("#" + l_red + l_green + l_blue);
1201: };
1202:
1203: public void pcmf_setAutoEcho(boolean xAuto) {
1204: this .pem_autoEcho = xAuto;
1205: }
1206:
1207: public boolean pcmf_doAutoEcho() {
1208: return (this .pem_autoEcho);
1209: }
1210:
1211: public void pcmf_setIterativeEventLatency(int xLatency) {
1212: KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
1213: "");
1214:
1215: if (this .pdm_session.pcmf_isInTransaction()) {
1216: ScXmlScript.pcmf_createPBody(l_remCall);
1217: } else {
1218: ScXmlScript.pcmf_createxScriptString(l_remCall, null);
1219: ScXmlScript.pcmf_addProc(l_remCall, null);
1220: }
1221: ;
1222: ScXmlScript.pcmf_addCall(l_remCall, null, this
1223: .pcmf_getRemName(), "pcmf_setIterativeEventLatency");
1224: ScXmlScript.pcmf_addCallPar(l_remCall, Integer
1225: .toString(xLatency), "false", "int");
1226: ScXmlScript.pcmf_endAll(l_remCall);
1227:
1228: this .pdm_session.pcmf_call(l_remCall.toString(), this );
1229:
1230: this .pem_eventLatency = xLatency;
1231:
1232: return;
1233: }
1234:
1235: public int pcmf_getIterativeEventLatency() {
1236: return (this.pem_eventLatency);
1237: }
1238: }
|