Source Code Cross Referenced for HoSrvGenericDialog.java in  » J2EE » WiSerFramework » de » ug2t » channel » ho » server » generic » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » WiSerFramework » de.ug2t.channel.ho.server.generic 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        // @@
002:        // @@
003:        /*
004:         * Wi.Ser Framework
005:         *
006:         * LGPL Version: 1.8.1, 20-September-2007  
007:         * Copyright (C) 2005-2006 Dirk von der Weiden <dvdw@imail.de>
008:         *
009:         * This library is free software; you can redistribute it and/or
010:         * modify it under the terms of the GNU Lesser General Public
011:         * License as published by the Free Software Foundation; either
012:         * version 2 of the License, or (at your option) any later version.
013:         *
014:         * This library is distributed in the hope that it will be useful,
015:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
016:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
017:         * Lesser General Public License for more details.
018:         *
019:         * You should have received a copy of the GNU Lesser General Public
020:         * License along with this library located in LGPL.txt in the 
021:         * license directory; if not, write to the 
022:         * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
023:         * Boston, MA  02111-1307, USA.
024:         * 
025:         * If this agreement does not cover your requirements, please contact us
026:         * via email to get detailed information about the commercial license 
027:         * or our service offerings!
028:         *
029:         */
030:        // @@
031:        package de.ug2t.channel.ho.server.generic;
032:
033:        import de.ug2t.kernel.*;
034:        import de.ug2t.unifiedGui.*;
035:        import de.ug2t.unifiedGui.interfaces.*;
036:        import de.ug2t.unifiedGui.listener.*;
037:        import de.ug2t.xmlScript.*;
038:
039:        public final class HoSrvGenericDialog extends AHoSrvGenericContainer
040:                implements  IUnDialog, IUnGuiEventListener {
041:            private boolean pem_isShow = false;
042:            private boolean pem_isResizable = true;
043:            private boolean pem_submitReshapes = false;
044:            private boolean pem_noLayout = false;
045:            private boolean pem_modal = false;
046:
047:            /**
048:             * @param xName
049:             * @throws Exception
050:             */
051:            public HoSrvGenericDialog(String xName, boolean xNoLayout,
052:                    IUnApplication xAppl, String xClass) throws Exception {
053:                super (xName);
054:                this .pcmf_setAppl(xAppl);
055:                this .pcmf_setAutoEcho(false);
056:                this .pem_noLayout = xNoLayout;
057:
058:                this .pcmf_setLocalValue(xName);
059:
060:                if (xClass == null)
061:                    pdm_clientClass = "de.ug2t.channel.ho.client.swing.HoSwingDialog";
062:                else
063:                    pdm_clientClass = xClass;
064:
065:                KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
066:                        "");
067:
068:                if (this .pdm_session.pcmf_isInTransaction()) {
069:                    ScXmlScript.pcmf_createPBody(l_remCall);
070:                } else {
071:                    ScXmlScript.pcmf_createxScriptString(l_remCall, null);
072:                    ScXmlScript.pcmf_addProc(l_remCall, null);
073:                }
074:                ;
075:                ScXmlScript.pcmf_addDecl(l_remCall, this .pcmf_getRemName(),
076:                        this .pdm_clientClass, "global");
077:                ScXmlScript.pcmf_addDeclPar(l_remCall, xName, "false",
078:                        "java.lang.String");
079:                ScXmlScript.pcmf_addDeclPar(l_remCall, xNoLayout ? "true"
080:                        : "false", "false", "boolean");
081:                ScXmlScript.pcmf_addDeclPar(l_remCall,
082:                        ((HoSrvGenericApplication) xAppl).pcmf_getRemName(),
083:                        "true", "de.ug2t.unifiedGui.interfaces.IUnApplication");
084:
085:                ScXmlScript.pcmf_endAll(l_remCall);
086:
087:                this .pdm_session.pcmf_call(l_remCall.toString(), this );
088:
089:                this .pcmf_addListener(new UnDialogClosedListener());
090:
091:                // Debug
092:                // this.pcmf_setGenerateReshapeEvents(true);
093:                // this.pcmf_addListener(new UnPrintValueListener());
094:
095:                return;
096:            };
097:
098:            /**
099:             * <p>
100:             * Does...
101:             * </p>
102:             * <p>
103:             * 
104:             * @return a Type with
105:             *         </p>
106:             *         <p>
107:             * @param
108:             *         </p>
109:             */
110:            public void pcmf_displayDialog() {
111:                KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
112:                        "");
113:
114:                if (this .pdm_session.pcmf_isInTransaction()) {
115:                    ScXmlScript.pcmf_createPBody(l_remCall);
116:                } else {
117:                    ScXmlScript.pcmf_createxScriptString(l_remCall, null);
118:                    ScXmlScript.pcmf_addProc(l_remCall, null);
119:                }
120:                ;
121:                ScXmlScript.pcmf_addCall(l_remCall, null, this 
122:                        .pcmf_getRemName(), "pcmf_displayDialog");
123:                ScXmlScript.pcmf_endAll(l_remCall);
124:
125:                this .pdm_session.pcmf_call(l_remCall.toString(), this );
126:                this .pem_isShow = true;
127:
128:                return;
129:            }
130:
131:            /**
132:             * <p>
133:             * Does...
134:             * </p>
135:             * <p>
136:             * 
137:             * @return a Type with
138:             *         </p>
139:             *         <p>
140:             * @param
141:             *         </p>
142:             */
143:            public void pcmf_hideDialog() {
144:                KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
145:                        "");
146:
147:                if (this .pdm_session.pcmf_isInTransaction()) {
148:                    ScXmlScript.pcmf_createPBody(l_remCall);
149:                } else {
150:                    ScXmlScript.pcmf_createxScriptString(l_remCall, null);
151:                    ScXmlScript.pcmf_addProc(l_remCall, null);
152:                }
153:                ;
154:                ScXmlScript.pcmf_addCall(l_remCall, null, this 
155:                        .pcmf_getRemName(), "pcmf_hideDialog");
156:                ScXmlScript.pcmf_endAll(l_remCall);
157:
158:                this .pdm_session.pcmf_call(l_remCall.toString(), this );
159:                this .pem_isShow = false;
160:
161:                return;
162:            }
163:
164:            public void pcmf_toFront() {
165:                KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
166:                        "");
167:
168:                if (this .pdm_session.pcmf_isInTransaction()) {
169:                    ScXmlScript.pcmf_createPBody(l_remCall);
170:                } else {
171:                    ScXmlScript.pcmf_createxScriptString(l_remCall, null);
172:                    ScXmlScript.pcmf_addProc(l_remCall, null);
173:                }
174:                ;
175:                ScXmlScript.pcmf_addCall(l_remCall, null, this 
176:                        .pcmf_getRemName(), "pcmf_toFront");
177:                ScXmlScript.pcmf_endAll(l_remCall);
178:
179:                this .pdm_session.pcmf_call(l_remCall.toString(), this );
180:
181:                return;
182:            }
183:
184:            /**
185:             * <p>
186:             * Does...
187:             * </p>
188:             * <p>
189:             * 
190:             * @return a Type with
191:             *         </p>
192:             *         <p>
193:             * @param
194:             *         </p>
195:             */
196:            public boolean pcmf_isDisplay() {
197:                return (this .pem_isShow);
198:            }
199:
200:            /**
201:             * <p>
202:             * Does...
203:             * </p>
204:             * <p>
205:             * 
206:             * @return a Type with
207:             *         </p>
208:             *         <p>
209:             * @param
210:             *         </p>
211:             */
212:            public void pcmf_execListener(UnComponent xParam) throws Exception {
213:                this .pcmf_displayDialog();
214:            }
215:
216:            public Object pcmf_execObj(Object xObj) {
217:                this .pcmf_displayDialog();
218:
219:                return (this );
220:            }
221:
222:            /**
223:             * <p>
224:             * Sets the dialogue to be resizable
225:             * </p>
226:             * <p>
227:             * 
228:             * </p>
229:             * <p>
230:             * 
231:             * @param xSizable
232:             *          true indicates that the dialogue is resizable, false does the
233:             *          opposite
234:             *          </p>
235:             */
236:            public void pcmf_setResizable(boolean xSizable) {
237:                KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
238:                        "");
239:
240:                if (this .pdm_session.pcmf_isInTransaction()) {
241:                    ScXmlScript.pcmf_createPBody(l_remCall);
242:                } else {
243:                    ScXmlScript.pcmf_createxScriptString(l_remCall, null);
244:                    ScXmlScript.pcmf_addProc(l_remCall, null);
245:                }
246:                ;
247:                ScXmlScript.pcmf_addCall(l_remCall, null, this 
248:                        .pcmf_getRemName(), "pcmf_setResizable");
249:                ScXmlScript.pcmf_addCallPar(l_remCall, xSizable ? "true"
250:                        : "false", "false", "boolean");
251:                ScXmlScript.pcmf_endAll(l_remCall);
252:
253:                this .pdm_session.pcmf_call(l_remCall.toString(), this );
254:
255:                this .pem_isResizable = xSizable;
256:                return;
257:            }
258:
259:            /**
260:             * <p>
261:             * Informs about the resizability of the dialogue
262:             * </p>
263:             * <p>
264:             * 
265:             * </p>
266:             * <p>
267:             * </p>
268:             */
269:            public boolean pcmf_isResizable() {
270:                return (this .pem_isResizable);
271:            }
272:
273:            public String pcmf_getTitle() {
274:                return (super .pcmf_getName());
275:            }
276:
277:            public void pcmf_setTitle(String xTitle) {
278:                KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
279:                        "");
280:
281:                if (this .pdm_session.pcmf_isInTransaction()) {
282:                    ScXmlScript.pcmf_createPBody(l_remCall);
283:                } else {
284:                    ScXmlScript.pcmf_createxScriptString(l_remCall, null);
285:                    ScXmlScript.pcmf_addProc(l_remCall, null);
286:                }
287:                ;
288:                ScXmlScript.pcmf_addCall(l_remCall, null, this 
289:                        .pcmf_getRemName(), "pcmf_setTitle");
290:                ScXmlScript.pcmf_addCallPar(l_remCall, xTitle, "false",
291:                        "java.lang.String");
292:                ScXmlScript.pcmf_endAll(l_remCall);
293:
294:                this .pdm_session.pcmf_call(l_remCall.toString(), this );
295:                this .pcmf_setName(xTitle);
296:
297:                return;
298:            }
299:
300:            public void pcmf_setDecoration(boolean xDeco) {
301:                KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
302:                        "");
303:
304:                if (this .pdm_session.pcmf_isInTransaction()) {
305:                    ScXmlScript.pcmf_createPBody(l_remCall);
306:                } else {
307:                    ScXmlScript.pcmf_createxScriptString(l_remCall, null);
308:                    ScXmlScript.pcmf_addProc(l_remCall, null);
309:                }
310:                ;
311:                ScXmlScript.pcmf_addCall(l_remCall, null, this 
312:                        .pcmf_getRemName(), "pcmf_setDecoration");
313:                ScXmlScript.pcmf_addCallPar(l_remCall,
314:                        xDeco ? "true" : "false", "false", "boolean");
315:                ScXmlScript.pcmf_endAll(l_remCall);
316:
317:                this .pdm_session.pcmf_call(l_remCall.toString(), this );
318:
319:                return;
320:            }
321:
322:            public void pcmf_setModal(boolean xModal) {
323:                KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
324:                        "");
325:
326:                if (this .pdm_session.pcmf_isInTransaction()) {
327:                    ScXmlScript.pcmf_createPBody(l_remCall);
328:                } else {
329:                    ScXmlScript.pcmf_createxScriptString(l_remCall, null);
330:                    ScXmlScript.pcmf_addProc(l_remCall, null);
331:                }
332:                ;
333:                ScXmlScript.pcmf_addCall(l_remCall, null, this 
334:                        .pcmf_getRemName(), "pcmf_setModal");
335:                ScXmlScript.pcmf_addCallPar(l_remCall, xModal ? "true"
336:                        : "false", "false", "boolean");
337:                ScXmlScript.pcmf_endAll(l_remCall);
338:
339:                this .pdm_session.pcmf_call(l_remCall.toString(), this );
340:
341:                this .pem_modal = xModal;
342:
343:                return;
344:            }
345:
346:            public boolean pcmf_isModal() {
347:                return (this .pem_modal);
348:            }
349:
350:            public void pcmf_hideDialogLocal() {
351:                this .pem_isShow = false;
352:            }
353:
354:            public void pcmf_setGenerateReshapeEvents(boolean xReshapes) {
355:                KeStringTemplateWrapper l_remCall = new KeStringTemplateWrapper(
356:                        "");
357:
358:                if (this .pdm_session.pcmf_isInTransaction()) {
359:                    ScXmlScript.pcmf_createPBody(l_remCall);
360:                } else {
361:                    ScXmlScript.pcmf_createxScriptString(l_remCall, null);
362:                    ScXmlScript.pcmf_addProc(l_remCall, null);
363:                }
364:                ;
365:                ScXmlScript.pcmf_addCall(l_remCall, null, this 
366:                        .pcmf_getRemName(), "pcmf_setGenerateReshapeEvents");
367:                ScXmlScript.pcmf_addCallPar(l_remCall, xReshapes ? "true"
368:                        : "false", "false", "boolean");
369:                ScXmlScript.pcmf_endAll(l_remCall);
370:
371:                this .pdm_session.pcmf_call(l_remCall.toString(), this );
372:
373:                this .pem_submitReshapes = xReshapes;
374:
375:                return;
376:            }
377:
378:            public boolean pcmf_getGenerateReshapeEvents() {
379:                return (this .pem_submitReshapes);
380:            }
381:
382:            public AHoSrvGenericComponent pcmf_buildRefObj() throws Exception {
383:                AHoSrvGenericComponent l_obj = new HoSrvGenericDialog(this 
384:                        .pcmf_getName(), this .pem_noLayout,
385:                        this .pcmf_getAppl(), this .pdm_clientClass);
386:                l_obj.pcmf_setGlobal(true);
387:                l_obj.pcmf_setAutoEcho(this .pcmf_doAutoEcho());
388:                this .pcmf_setGlobal(true);
389:                l_obj.pcmf_setRefFrom(this );
390:                this .pcmf_addRef(l_obj);
391:
392:                return l_obj;
393:            };
394:
395:            public void pcmf_setPosition(int xPos, int yPos, int xWi, int xHi) {
396:                ((IUnApplication) this .pcmf_getParentNode())
397:                        .pcmf_setGuiObjPosition(this , xPos, yPos, xWi, xHi,
398:                                "WEST");
399:            }
400:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.