001: // @@
002: // @@
003: /*
004: * Wi.Ser Framework
005: *
006: * Version: 1.8.1, 20-September-2007
007: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library located in LGPL.txt in the
021: * license directory; if not, write to the
022: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
023: * Boston, MA 02111-1307, USA.
024: *
025: * If this agreement does not cover your requirements, please contact us
026: * via email to get detailed information about the commercial license
027: * or our service offerings!
028: *
029: */
030: // @@
031: package de.ug2t.channel.markup.generic;
032:
033: import java.util.*;
034:
035: import de.ug2t.unifiedGui.*;
036: import de.ug2t.workflow.*;
037:
038: // Schliesst mehrere Seiten zusammen ggf. zu einem Applikationsteil
039:
040: public class MuGenericPageCluster extends UnComponent {
041: private UnComponent pem_active = null;
042: private WfState pem_state = null;
043: private HashMap pem_clusterContext = new HashMap();
044:
045: public void pcmf_construct(WfState xState) throws Exception {
046: pem_state = xState;
047:
048: return;
049: };
050:
051: public MuGenericPageCluster(String xName, WfState xState)
052: throws Exception {
053: super (xName);
054: pcmf_construct(xState);
055:
056: return;
057: }
058:
059: public void pcmf_setState(WfState xState) {
060: pem_state = xState;
061:
062: return;
063: };
064:
065: public WfState pcmf_getState() {
066: return (pem_state);
067: };
068:
069: public MuGenericPage pcmf_addPage(String xName, MuGenericPage xPage) {
070: xPage.pcmf_setAppl((MuGenericApplication) this
071: .pcmf_getParentNode());
072:
073: return ((MuGenericPage) this .pcmf_addNode(xName, xPage));
074: };
075:
076: public MuGenericPage pcmf_addPage(String xName,
077: MuGenericTemplateLayout xPage) {
078: xPage.pcmf_setAppl((MuGenericApplication) this
079: .pcmf_getParentNode());
080:
081: return ((MuGenericPage) this .pcmf_addNode(xName, xPage));
082: };
083:
084: public UnComponent pcmf_setActive(String xName) {
085: pem_active = (UnComponent) this .pcmf_getSubNode(xName);
086:
087: return (pem_active);
088: };
089:
090: public UnComponent pcmf_getActive() {
091: return (pem_active);
092: };
093:
094: public Object pcmf_execView() {
095: try {
096: pem_active.pcmf_execPreFcts();
097: } catch (Exception e) {
098: return (e.toString());
099: }
100: ;
101: return (pem_active.pcmf_execView());
102: };
103:
104: public HashMap pcmf_getContext() {
105: return (pem_clusterContext);
106: };
107: }
|