1 17 18 package helloworld.renderer; 19 20 import java.awt.*; 21 22 import Jmc.commonGui.*; 23 import Jmc.commonGui.loader.*; 24 import Jmc.baseGui.gui_fixedSize; 25 import Jmc.baseTools.*; 26 27 37 public class HwListRenderer implements base_listItemRenderer_if 38 { 39 40 52 public base_guiWidget_if pcmf_getRenderWidget(Object xToRender, int xIdx, boolean xSelected, base_listWidget_if xList) 53 { 54 base_appl_if l_appl = (base_appl_if)base_registredObject.pcmf_getObjByName(base_appl_if.MY_APPL); 56 base_image_if l_img2 = (base_image_if)base_registredObject.pcmf_getObjByName("entry_icon"); 57 58 base_text_if l_text = l_appl.pcmf_getGuiObjFactory().pcmf_createText(l_appl.pcmf_getApplType(), xToRender.toString(), Integer.toString(xIdx) + ". " + xToRender.toString(), l_appl); 60 61 l_text.pcmf_setFont(new base_fontDesc("ARIAL", 15, Font.BOLD)); 63 l_text.pcmf_setFixedSize(150, 20, gui_fixedSize.FIX_SIZE); 64 l_text.pcmf_setIcon(l_img2); 65 if (xIdx % 2 == 0) 66 l_text.pcmf_setBgColor("#FFA000"); 67 else 68 l_text.pcmf_setBgColor("#A0A000"); 69 70 l_text.pcmf_setRenderIfHidden(true); 72 73 return (l_text); 74 } 75 } 76 | Popular Tags |