1 19 20 package org.netbeans.modules.extbrowser; 21 22 import java.awt.Image ; 23 import java.beans.*; 24 import org.openide.ErrorManager; 25 26 import org.openide.util.NbBundle; 27 28 public class IExplorerBrowserBeanInfo extends SimpleBeanInfo { 29 30 public BeanDescriptor getBeanDescriptor() { 31 BeanDescriptor descr = new BeanDescriptor(IExplorerBrowser.class); 32 descr.setDisplayName (NbBundle.getMessage(IExplorerBrowserBeanInfo.class, "CTL_IExplorerBrowserName")); 33 descr.setShortDescription (NbBundle.getMessage (IExplorerBrowserBeanInfo.class, "HINT_IExplorerBrowserName")); 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 |