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.unifiedGui.wizard.tags;
032:
033: import org.xml.sax.*;
034:
035: import de.ug2t.kernel.*;
036: import de.ug2t.unifiedGui.*;
037: import de.ug2t.unifiedGui.interfaces.*;
038: import de.ug2t.unifiedGui.plugins.*;
039: import de.ug2t.unifiedGui.wizard.*;
040:
041: public class WizardForm implements IUnSAXAppFactHandler {
042: public Object pcmf_hdlSaxEvent(UnApplFactSAXHandler l_hdl,
043: String qName, Attributes attributes) throws Exception {
044: String xTitle = KeTools
045: .pcmf_deRef(attributes.getValue("title"));
046: String xId = KeTools.pcmf_deRef(attributes.getValue("id"));
047:
048: String xPreAction = KeTools.pcmf_deRef(attributes
049: .getValue("preAction"));
050: String xPostAction = KeTools.pcmf_deRef(attributes
051: .getValue("postAction"));
052:
053: String xPrevBActive = KeTools.pcmf_deRef(attributes
054: .getValue("prev"));
055: String xNextBActive = KeTools.pcmf_deRef(attributes
056: .getValue("next"));
057: String xSaveBActive = KeTools.pcmf_deRef(attributes
058: .getValue("save"));
059: String xAbortBActive = KeTools.pcmf_deRef(attributes
060: .getValue("abort"));
061:
062: String xScroll = KeTools.pcmf_deRef(attributes
063: .getValue("scroll"));
064:
065: String xActive = KeTools.pcmf_deRef(attributes
066: .getValue("active"));
067:
068: WizardPlugin l_pl = ((WizardPlugin) KeRegisteredObject
069: .pcmf_getObjByName(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN));
070: IUnForm l_form = IUnForm.Factory.create();
071: if (xScroll != null && xScroll.equals("false"))
072: l_form.pcmf_setScroll(false);
073:
074: l_pl
075: .pcmf_addWizForm(
076: xId,
077: xTitle,
078: xPrevBActive == null
079: || xPrevBActive
080: .equalsIgnoreCase("true") ? true
081: : false,
082: xNextBActive == null
083: || xNextBActive
084: .equalsIgnoreCase("true") ? true
085: : false,
086: xSaveBActive == null
087: || xSaveBActive
088: .equalsIgnoreCase("true") ? true
089: : false,
090: xAbortBActive == null
091: || xAbortBActive
092: .equalsIgnoreCase("true") ? true
093: : false,
094: xPreAction != null ? (IWizardPrePostAction) Class
095: .forName(xPreAction).newInstance()
096: : null,
097: xPostAction != null ? (IWizardPrePostAction) Class
098: .forName(xPostAction).newInstance()
099: : null,
100: l_form.pcmf_getUnComponent(),
101: xActive == null
102: || xActive.equalsIgnoreCase("true") ? true
103: : false);
104:
105: l_hdl.pcmf_doExecStack(l_form, l_form, l_form.pcmf_getName());
106: return (l_hdl.pcmf_getActNode());
107: }
108: }
|