1 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 mainFrame_li implements base_guiListener 26 { 27 public void pcmf_execListener(base_guiObj xParam) throws Exception 28 { 29 base_appl_if l_appl = xParam.pcmf_getAppl(); 30 raptor_mainModel l_model= (raptor_mainModel)l_appl.pcmf_getGuiObj().pcmf_getModel(); 31 32 if (xParam.pcmf_getValue().equals(base_appl_if.APPL_CLOSING)) 33 { 34 l_model.pcmf_writeDesktopSettings(); 35 ((base_appl_if)xParam).pcmf_close(); 36 } 37 else 38 { 39 String l_value = xParam.pcmf_getValue().toString(); 40 if (l_value.indexOf(base_appl_if.APPL_RESIZED) != -1) 41 { 42 l_model.setPem_mainFrameHi(base_tools.pcmf_getHeight(l_value)); 43 l_model.setPem_mainFrameWi(base_tools.pcmf_getWidth(l_value)); 44 } 45 } 46 } 47 } 48 | Popular Tags |