1 19 20 package org.netbeans.modules.web.jsf.editor.jspel; 21 22 import javax.swing.Icon ; 23 import javax.swing.ImageIcon ; 24 import org.netbeans.modules.web.core.syntax.completion.ResultItemPaintComponent; 25 26 30 public class JSFResultItemPaintComponent { 31 32 public static class JSFBeanPaintComponent extends ResultItemPaintComponent.ELBeanPaintComponent { 33 private static final String BEAN_PATH = "org/netbeans/modules/web/jsf/editor/jspel/resources/jsf_bean_16.png"; private String typeName; 35 36 protected Icon getIcon(){ 37 return new ImageIcon (org.openide.util.Utilities.loadImage(BEAN_PATH)); 38 } 39 } 40 41 public static class JSFMethodPaintComponent extends ResultItemPaintComponent.ELPropertyPaintComponent { 42 private static final String METHOD_PATH = "org/netbeans/modules/web/jsf/editor/jspel/resources/method_16.png"; private String typeName; 44 45 protected Icon getIcon(){ 46 return new ImageIcon (org.openide.util.Utilities.loadImage(METHOD_PATH)); 47 } 48 } 49 50 } 51 | Popular Tags |