KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Raptor > transactions > toolBoxSwitch_tr


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.transactions;
18
19 import Jmc.seviceLayer.base_transaction;
20 import Jmc.baseTools.*;
21 import Jmc.commonGui.*;
22 import Jmc.baseGui.*;
23
24 import Raptor.model.*;
25
26 /**
27  * @author Dirk
28  *
29  * date: 11.01.2004
30  * project: WiSer-Builder
31  *
32  * <p>
33  * ...
34  * </p>
35  */

36 public class toolBoxSwitch_tr extends base_transaction
37 {
38
39     /**
40      * @param xName
41      */

42     public toolBoxSwitch_tr()
43     {
44     super();
45     
46     this.pcmf_setWorkFct(new work ());
47   }
48   
49   class work implements base_executableObject_if
50   {
51     public Object JavaDoc pcmf_execObj(Object JavaDoc xObj)
52     {
53       base_guiObj l_obj = (base_guiObj)xObj;
54       base_appl_if l_appl = l_obj.pcmf_getAppl();
55       raptor_mainModel l_model = (raptor_mainModel)l_appl.pcmf_getGuiObj().pcmf_getModel();
56
57       try
58       {
59         base_guiObj l_form = (base_guiObj)l_obj.pcmf_getSubNode(l_obj.pcmf_getValue().toString());
60         base_guiObj l_select = (base_guiObj)l_form.pcmf_getSubNode("select");
61         
62         l_model.setPem_widgetSelect(l_select);
63       }
64       catch (Exception JavaDoc e)
65       {
66         base_log.pcmf_logException(l_appl.pcmf_getGuiObj().pcmf_getName(), this, e);
67       };
68
69       return (null);
70     };
71   };
72 }
Popular Tags