KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Raptor > listeners > updateFactPar_li


1 /*******************************************************************************
2  * Copyright (c) 2004, Dirk von der Weiden.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution.
6  *
7  * Contributors:
8  * Dirk von der Weiden - initial API and implementation
9  *
10  * Created on 04.04.2004
11  *
12  * date: 04.04.2004
13  * project: WiSer Builder
14  *
15  *******************************************************************************/

16
17 package Raptor.listeners;
18
19 import Jmc.baseGui.*;
20 import Jmc.baseTools.*;
21 import Raptor.model.*;
22 import Jmc.commonGui.*;
23
24 /**
25  * @author Dirk
26  *
27  * date: 11.02.2004
28  * project: WiSer-Builder
29  *
30  * <p>
31  * ...
32  * </p>
33  */

34 public class updateFactPar_li implements base_guiListener
35 {
36     public void pcmf_execListener(base_guiObj xParam) throws Exception JavaDoc
37     {
38     base_appl_if l_appl = xParam.pcmf_getAppl();
39     raptor_mainModel l_model = (raptor_mainModel)l_appl.pcmf_getGuiObj().pcmf_getModel();
40
41     try
42     {
43       String JavaDoc l_path = (String JavaDoc)base_environment.pcmf_getParameter("environment.xml", xParam.pcmf_getValue().toString(), "FACTORY_DEF");
44       ((base_guiObj)base_registredObject.pcmf_getObjByName("FactField")).pcmf_setValue(l_path);
45       l_model.getPem_settings().setPem_actTplKitPar(l_path);
46       l_model.getPem_settings().setPem_actTplKit(xParam.pcmf_getValue().toString());
47       l_model.setPem_fact(new gui_objFactory (l_path));
48       l_model.pcmf_loadTplKitValues(xParam.pcmf_getValue().toString());
49       l_model.pcmf_createAutoWdgPreview();
50       ((base_guiObj)base_registredObject.pcmf_getObjByName("KitTplTable")).pcmf_repaint();
51       l_model.getPem_settings().pcmf_readPluginDef();
52       l_model.getPem_settings().pcmf_showPlDetail();
53       
54       l_appl.pcmf_getGuiObj().pcmf_repaint();
55     }
56     catch (Exception JavaDoc e)
57     {
58       l_model.pcmf_addMessage("- no widget to view selected", raptor_mainModel.RAPTOR_MESSAGE);
59       base_log.pcmf_logException(l_appl.pcmf_getGuiObj().pcmf_getName(), this, e);
60     };
61     }
62 }
Popular Tags