01: // @@
02: // @@
03: /*
04: * Wi.Ser Framework
05: *
06: * Version: 1.8.1, 20-September-2007
07: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
08: *
09: * This library is free software; you can redistribute it and/or
10: * modify it under the terms of the GNU Lesser General Public
11: * License as published by the Free Software Foundation; either
12: * version 2 of the License, or (at your option) any later version.
13: *
14: * This library is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17: * Lesser General Public License for more details.
18: *
19: * You should have received a copy of the GNU Lesser General Public
20: * License along with this library located in LGPL.txt in the
21: * license directory; if not, write to the
22: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23: * Boston, MA 02111-1307, USA.
24: *
25: * If this agreement does not cover your requirements, please contact us
26: * via email to get detailed information about the commercial license
27: * or our service offerings!
28: *
29: */
30: // @@
31: package de.ug2t.unifiedGui.wizard.tags;
32:
33: import org.xml.sax.*;
34:
35: import de.ug2t.kernel.*;
36: import de.ug2t.unifiedGui.*;
37: import de.ug2t.unifiedGui.plugins.*;
38: import de.ug2t.unifiedGui.wizard.*;
39:
40: public class WizardAction implements IUnSAXAppFactHandler {
41: public Object pcmf_hdlSaxEvent(UnApplFactSAXHandler l_hdl,
42: String qName, Attributes attributes) throws Exception {
43: String xOnAbort = KeTools.pcmf_deRef(attributes
44: .getValue("onAbort"));
45: String xOnSave = KeTools.pcmf_deRef(attributes
46: .getValue("onSave"));
47:
48: WizardPlugin l_pl = ((WizardPlugin) KeRegisteredObject
49: .pcmf_getObjByName(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN));
50:
51: if (xOnAbort != null)
52: l_pl.pcmf_addAbortHandler((IWizardAbort) Class.forName(
53: xOnAbort).newInstance());
54:
55: if (xOnSave != null)
56: l_pl.pcmf_addSaveHandler((IWizardSave) Class.forName(
57: xOnSave).newInstance());
58:
59: l_hdl.pcmf_doExecStack(l_hdl.pcmf_getActNode(), l_hdl
60: .pcmf_getActNode(), l_hdl.pcmf_getActName());
61:
62: return (l_hdl.pcmf_getActNode());
63: }
64: }
|