1 17 package Raptor.listeners; 18 19 import Jmc.baseGui.*; 20 import Jmc.baseTools.*; 21 import Jmc.commonGui.*; 22 23 32 public class separatePreview_li implements base_guiListener 33 { 34 public void pcmf_execListener(base_guiObj xParam) throws Exception 35 { 36 base_dialog_if l_sep = (base_dialog_if)base_registredObject.pcmf_getObjByName("Aps_dlg"); 37 base_guiObj l_std = (base_guiObj)base_registredObject.pcmf_getObjByName("AutoPreview_1"); 38 39 if (xParam.pcmf_getValue().equals(base_checkBox_if.CHECKED)) 40 { 41 base_guiObj l_view = (base_guiObj)l_std.pcmf_removeNode("Preview"); 42 l_sep.pcmf_getGuiObj().pcmf_addNode("Preview", l_view); 43 l_sep.pcmf_setGuiObjPosition("Preview", 0, 0, 1, 1, "WEST"); 44 l_sep.pcmf_displayDialog(); 45 l_std.pcmf_repaint(); 46 } 47 else 48 { 49 base_guiObj l_view = (base_guiObj)l_sep.pcmf_getGuiObj().pcmf_removeNode("Preview"); 50 if (l_view == null) 51 return; 52 53 l_std.pcmf_addNode("Preview", l_view); 54 ((base_guiContainer_if)l_std).pcmf_setGuiObjPosition("Preview", 0, 0, 1, 1, "WEST"); 55 l_std.pcmf_repaint(); 56 l_sep.pcmf_hideDialog(); 57 } 58 } 59 60 } 61 | Popular Tags |