1 19 20 package org.netbeans.modules.extbrowser; 21 22 import java.awt.Image ; 23 import java.beans.*; 24 import org.openide.ErrorManager; 25 import org.openide.util.NbBundle; 26 27 public class MozillaBrowserBeanInfo extends SimpleBeanInfo { 28 29 public BeanDescriptor getBeanDescriptor() { 30 BeanDescriptor descr = new BeanDescriptor (MozillaBrowser.class); 31 descr.setDisplayName (NbBundle.getMessage (MozillaBrowserBeanInfo.class, "CTL_MozillaBrowserName")); 32 descr.setShortDescription (NbBundle.getMessage (MozillaBrowserBeanInfo.class, "HINT_MozillaBrowserName")); 33 34 descr.setValue ("helpID", "org.netbeans.modules.extbrowser.ExtWebBrowser"); return descr; 36 } 37 38 public PropertyDescriptor[] getPropertyDescriptors() { 39 return new PropertyDescriptor [0]; 40 } 41 42 45 public Image getIcon (int type) { 46 return loadImage("/org/netbeans/modules/extbrowser/resources/extbrowser.gif"); } 48 49 54 public BeanInfo[] getAdditionalBeanInfo () { 55 try { 56 return new BeanInfo[] { Introspector.getBeanInfo (ExtWebBrowser.class) }; 57 } catch (IntrospectionException ie) { 58 ErrorManager.getDefault().notify(ie); 59 return null; 60 } 61 } 62 63 } 64 | Popular Tags |