KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Raptor > transactions > swingPreview_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 /**
28  * @author Dirk
29  *
30  * date: 10.08.2003
31  * project: WiSer-Builder
32  *
33  * <p>
34  * ...
35  * </p>
36  */

37 public class swingPreview_tr extends base_transaction
38 {
39   public swingPreview_tr()
40   {
41     super();
42     
43     this.pcmf_setWorkFct(new work ());
44   }
45   
46   class work implements base_executableObject_if
47   {
48     public Object JavaDoc pcmf_execObj(Object JavaDoc xObj)
49     {
50       base_guiObj l_obj = (base_guiObj)xObj;
51       base_appl_if l_appl = l_obj.pcmf_getAppl();
52       raptor_mainModel l_model= (raptor_mainModel)l_appl.pcmf_getGuiObj().pcmf_getModel();
53       
54       l_model.pcmf_createSwingPreview();
55       l_appl.pcmf_setActive(null);
56       
57       return (null);
58     };
59   };
60 }
Popular Tags