1 19 package org.netbeans.modules.xml.catalog.impl; 20 21 import java.beans.*; 22 import java.awt.Image ; 23 24 import org.openide.util.Utilities; 25 26 public class SystemCatalogReaderBeanInfo extends SimpleBeanInfo { 27 28 private static final String ICON_DIR_BASE = "org/netbeans/modules/xml/catalog/impl/"; 30 37 public BeanDescriptor getBeanDescriptor() { 38 BeanDescriptor beanDescriptor = new BeanDescriptor ( SystemCatalogReader.class , SystemCatalogCustomizer.class ); 39 40 beanDescriptor.setDisplayName ( Util.THIS.getString("NAME_system_catalog") ); 41 beanDescriptor.setShortDescription ( Util.THIS.getString("TEXT_system_catalog_desc") ); 42 return beanDescriptor; 43 } 44 45 57 public PropertyDescriptor[] getPropertyDescriptors() { 58 return new PropertyDescriptor[0]; 59 } 60 61 68 public EventSetDescriptor[] getEventSetDescriptors() { 69 return new EventSetDescriptor[0]; 70 } 71 72 79 public MethodDescriptor[] getMethodDescriptors() { 80 return new MethodDescriptor[0]; 81 } 82 83 public Image getIcon (int type) { 84 if ((type == java.beans.BeanInfo.ICON_COLOR_16x16) || 85 (type == java.beans.BeanInfo.ICON_MONO_16x16)) { 86 87 return Utilities.loadImage (ICON_DIR_BASE + "sysCatalog.gif"); } else { 89 return null; 90 } 91 } 92 93 } 94 | Popular Tags |