1 19 20 21 package org.netbeans.modules.form; 22 23 import java.awt.Image ; 24 import java.beans.BeanInfo ; 25 import java.beans.IntrospectionException ; 26 import java.beans.Introspector ; 27 import java.beans.SimpleBeanInfo ; 28 import org.openide.loaders.MultiFileLoader; 29 import org.openide.util.Utilities; 30 31 35 public class FormDataLoaderBeanInfo extends SimpleBeanInfo { 36 37 @Override 38 public BeanInfo [] getAdditionalBeanInfo() { 39 try { 40 return new BeanInfo [] { Introspector.getBeanInfo(MultiFileLoader.class) }; 41 } catch (IntrospectionException ie) { 42 org.openide.ErrorManager.getDefault().notify(ie); 43 return null; 44 } 45 } 46 47 48 51 @Override 52 public Image getIcon(final int type) { 53 if ((type == java.beans.BeanInfo.ICON_COLOR_16x16) || 54 (type == java.beans.BeanInfo.ICON_MONO_16x16)) { 55 return Utilities.loadImage("org/netbeans/modules/form/resources/form.gif"); } else { 57 return Utilities.loadImage("org/netbeans/modules/form/resources/form32.gif"); } 59 } 60 61 } 62 | Popular Tags |