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