KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Raptor > listeners > messageWin_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, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * Dirk von der Weiden - initial API and implementation
10  *
11  * Created on 20.07.2005
12  *
13  * date: 20.07.2005
14  * project:
15  *
16  * *******************************************************************************/

17
18 package Raptor.listeners;
19
20 import Jmc.baseGui.*;
21 import Jmc.commonGui.*;
22 import Jmc.baseTools.*;
23 import Raptor.model.*;
24
25 public class messageWin_li implements base_guiListener
26 {
27
28     public void pcmf_execListener(base_guiObj xParam) throws Exception JavaDoc
29     {
30     base_appl_if l_appl = xParam.pcmf_getAppl();
31     raptor_mainModel l_model= (raptor_mainModel)l_appl.pcmf_getGuiObj().pcmf_getModel();
32
33         String JavaDoc l_value = xParam.pcmf_getValue().toString();
34         if (l_value.indexOf(base_guiPage_if.PAGE_RESIZED) != -1)
35         {
36             l_model.setPem_messageHi(base_tools.pcmf_getHeight(l_value));
37             l_model.setPem_messageWi(base_tools.pcmf_getWidth(l_value));
38         }
39         else
40         if (l_value.indexOf(base_guiPage_if.PAGE_MOVED) != -1)
41         {
42             l_model.setPem_messageX(base_tools.pcmf_getX(l_value));
43             l_model.setPem_messageY(base_tools.pcmf_getY(l_value));
44         }
45         else
46         if (l_value.indexOf(base_guiPage_if.PAGE_CLOSING) != -1)
47             l_model.setPem_messageState(base_guiPage_if.PAGE_CLOSED);
48         else
49         if (l_value.indexOf(base_guiPage_if.PAGE_OPENED) != -1)
50             l_model.setPem_messageState(base_guiPage_if.PAGE_OPENED);
51     }
52 }
53
Popular Tags