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 WizardSettings implements IUnSAXAppFactHandler {
042: public Object pcmf_hdlSaxEvent(UnApplFactSAXHandler l_hdl,
043: String qName, Attributes attributes) throws Exception {
044: String xDlgObj = KeTools.pcmf_deRef(attributes
045: .getValue("dlgObject"));
046: String xTitle = KeTools
047: .pcmf_deRef(attributes.getValue("title"));
048:
049: String xAbortLabel = KeTools.pcmf_deRef(attributes
050: .getValue("abortLabel"));
051: String xAbortKey = KeTools.pcmf_deRef(attributes
052: .getValue("abortKey"));
053: String xSaveLabel = KeTools.pcmf_deRef(attributes
054: .getValue("saveLabel"));
055: String xSaveKey = KeTools.pcmf_deRef(attributes
056: .getValue("saveKey"));
057: String xPrevLabel = KeTools.pcmf_deRef(attributes
058: .getValue("prevLabel"));
059: String xPrevKey = KeTools.pcmf_deRef(attributes
060: .getValue("prevKey"));
061: String xNextLabel = KeTools.pcmf_deRef(attributes
062: .getValue("nextLabel"));
063: String xNextKey = KeTools.pcmf_deRef(attributes
064: .getValue("nextKey"));
065:
066: String xMess = KeTools.pcmf_deRef(attributes
067: .getValue("messages"));
068:
069: String xAuth = KeTools.pcmf_deRef(attributes.getValue("auth"));
070: String xInit = KeTools.pcmf_deRef(attributes.getValue("init"));
071:
072: WizardPlugin l_pl = ((WizardPlugin) KeRegisteredObject
073: .pcmf_getObjByName(PlBasicComponentAggregat.MY_CURRENTPARSED_PLUGIN));
074: if (xAuth != null)
075: l_pl.pcmf_setAuthentifikator((IWizardAuthentificator) Class
076: .forName(xAuth).newInstance());
077: if (xInit != null)
078: l_pl.pcmf_setInit((IWizardInit) Class.forName(xInit)
079: .newInstance());
080:
081: if (xAbortLabel != null)
082: l_pl.pcmf_setAbortLabel(xAbortLabel,
083: xAbortKey != null ? xAbortKey : " ");
084: if (xSaveLabel != null)
085: l_pl.pcmf_setSaveLabel(xSaveLabel,
086: xSaveKey != null ? xSaveKey : " ");
087: if (xPrevLabel != null)
088: l_pl.pcmf_setPrevLabel(xPrevLabel,
089: xPrevKey != null ? xPrevKey : " ");
090: if (xNextLabel != null)
091: l_pl.pcmf_setNextLabel(xNextLabel,
092: xNextKey != null ? xNextKey : " ");
093:
094: if (xMess != null && xMess.equalsIgnoreCase("false"))
095: l_pl.pcmf_showMessages(false);
096:
097: l_pl.pcmf_setDlgFrame((IUnDialog) KeRegisteredObject
098: .pcmf_getObjByName(xDlgObj));
099: l_pl.pcmf_setTitle(xTitle);
100:
101: l_hdl.pcmf_doExecStack(l_hdl.pcmf_getActNode(), l_hdl
102: .pcmf_getActNode(), l_hdl.pcmf_getActName());
103: return (l_hdl.pcmf_getActNode());
104: }
105: }
|