1 19 20 package org.netbeans.modules.image; 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 ImageDataLoaderBeanInfo 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 public Image getIcon(final int type) { 45 if ((type == java.beans.BeanInfo.ICON_COLOR_16x16) || 46 (type == java.beans.BeanInfo.ICON_MONO_16x16)) { 47 return Utilities.loadImage("org/netbeans/modules/image/imageObject.png"); } else { 49 return Utilities.loadImage ("org/netbeans/modules/image/imageObject32.gif"); } 51 } 52 53 } 54 | Popular Tags |