1 23 24 package org.enhydra.kelp.forte; 25 26 import java.awt.Image ; 27 import java.beans.*; 28 29 import org.openide.util.NbBundle; 30 31 35 public class DeploySettingsBeanInfo extends SimpleBeanInfo { 36 37 public PropertyDescriptor[] getPropertyDescriptors () { 38 try { 39 PropertyDescriptor deployRoot = new PropertyDescriptor ("deployRoot", DeploySettings.class); 40 deployRoot.setDisplayName (NbBundle.getMessage (DeploySettingsBeanInfo.class, "PROP_enhydra.deploy.root")); 41 deployRoot.setShortDescription (NbBundle.getMessage (DeploySettingsBeanInfo.class, "HINT_enhydra.deploy.root")); 42 return new PropertyDescriptor[] { deployRoot}; 43 } catch (IntrospectionException ie) { 44 if (Boolean.getBoolean ("netbeans.debug.exceptions")) 45 ie.printStackTrace (); 46 return null; 47 } 48 49 } 50 51 public BeanDescriptor getBeanDescriptor() 52 { 53 return new BeanDescriptor(DeploySettings.class, DeploySettingsCustomizer.class); 54 } 55 56 private static Image icon, icon32; 57 public Image getIcon (int type) { 58 if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) { 59 if (icon == null) 60 icon = loadImage ("enhydraObject.gif"); 61 return icon; 62 } else { 63 if (icon32 == null) 64 icon32 = loadImage ("enhdyraObject32.gif"); 65 return icon32; 66 } 67 } 68 69 } 70 | Popular Tags |