1 19 20 package org.netbeans.modules.javadoc.search; 21 22 import java.beans.*; 23 import java.awt.*; 24 25 import org.openide.util.NbBundle; 26 import org.openide.util.Utilities; 27 28 public class JavadocSearchTypeBeanInfo extends SimpleBeanInfo { 29 30 public BeanDescriptor getBeanDescriptor () { 31 BeanDescriptor descr = new BeanDescriptor (org.netbeans.modules.javadoc.search.JavadocSearchType.class); 32 descr.setDisplayName (NbBundle.getMessage(JavadocSearchTypeBeanInfo.class,"CTL_JavadocSearchType")); descr.setShortDescription (NbBundle.getMessage(JavadocSearchTypeBeanInfo.class,"HINT_JavadocSearchType")); descr.setValue ("version", "1.1"); return descr; 36 } 37 38 public BeanInfo[] getAdditionalBeanInfo () { 39 try { 40 return new BeanInfo[] { Introspector.getBeanInfo (org.openide.ServiceType.class) }; 41 } catch (IntrospectionException ie) { 42 org.openide.ErrorManager.getDefault().notify(ie); 43 return null; 44 } 45 } 46 47 48 public Image getIcon(int type) { 49 if ((type == java.beans.BeanInfo.ICON_COLOR_16x16) || (type == java.beans.BeanInfo.ICON_MONO_16x16)) 50 return Utilities.loadImage("org/netbeans/modules/javadoc/resources/searchDoc.gif"); else 52 return Utilities.loadImage("org/netbeans/modules/javadoc/resources/searchDoc.gif"); } 54 } 55 56 | Popular Tags |