1 19 20 package org.netbeans.modules.web.core.jsploader; 21 22 import java.beans.*; 23 import java.awt.Image ; 24 25 import org.openide.ErrorManager; 26 import org.openide.loaders.MultiFileLoader; 27 28 32 public class JspServletDataLoaderBeanInfo extends SimpleBeanInfo { 33 34 public BeanInfo[] getAdditionalBeanInfo () { 35 try { 36 return new BeanInfo[] { Introspector.getBeanInfo (MultiFileLoader.class) }; 37 } catch (IntrospectionException ie) { 38 ErrorManager.getDefault ().notify (ie); 39 return null; 40 } 41 } 42 43 46 public Image getIcon(final int type) { 47 if ((type == java.beans.BeanInfo.ICON_COLOR_16x16) || 48 (type == java.beans.BeanInfo.ICON_MONO_16x16)) { 49 return org.openide.util.Utilities.loadImage("org/netbeans/modules/web/core/resources/jspObject.gif"); } else { 52 return org.openide.util.Utilities.loadImage ("org/netbeans/modules/web/core/resources/jspObject32.gif"); } 54 } 55 56 } 57 58 | Popular Tags |