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 DeployDataLoaderBeanInfo extends SimpleBeanInfo { 38 39 54 55 public BeanInfo[] getAdditionalBeanInfo () { 56 try { 57 return new BeanInfo[] 59 { Introspector.getBeanInfo (DeployDataLoader.class.getSuperclass ()) }; 60 } catch (IntrospectionException ie) { 61 if (Boolean.getBoolean ("netbeans.debug.exceptions")) 62 ie.printStackTrace (); 63 return null; 64 } 65 } 66 67 private static Image icon, icon32; 68 public Image getIcon (int type) { 69 if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) { 70 if (icon == null){ 71 icon = loadImage ("smallicon.gif"); 72 } 73 return icon; 75 } else { 76 if (icon32 == null) 77 icon32 = loadImage ("largeicon.gif"); 78 return icon32; 80 } 81 } 82 83 } 84 | Popular Tags |