1 23 24 package org.enhydra.kelp.forte.node; 25 26 import java.awt.Image ; 27 import java.beans.*; 28 29 import org.openide.util.NbBundle; 30 31 import org.enhydra.kelp.common.swing.KelpIconSet; 32 33 37 public class XMLCDataLoaderBeanInfo extends SimpleBeanInfo { 38 39 public BeanInfo[] getAdditionalBeanInfo () { 40 try { 41 return new BeanInfo[] 43 { Introspector.getBeanInfo (XMLCDataLoader.class.getSuperclass ()) }; 44 } catch (IntrospectionException ie) { 45 if (Boolean.getBoolean ("netbeans.debug.exceptions")) 46 ie.printStackTrace (); 47 return null; 48 } 49 } 50 51 private static Image icon, icon32; 52 public Image getIcon (int type) { 53 if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) { 54 if (icon == null) 55 icon = loadImage ("smallicon.gif"); 56 return icon; 57 } else { 58 if (icon32 == null) 59 icon = loadImage ("largeicon.gif"); 60 return icon32; 61 } 62 } 63 64 } 65 | Popular Tags |