Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 19 20 package org.netbeans.beaninfo; 21 22 import java.beans.*; 23 24 import org.openide.loaders.*; 25 import org.openide.util.Exceptions; 26 import org.openide.util.NbBundle; 27 28 29 public class UniFileLoaderBeanInfo extends SimpleBeanInfo { 30 31 public BeanInfo[] getAdditionalBeanInfo () { 32 try { 33 return new BeanInfo[] { Introspector.getBeanInfo (MultiFileLoader.class) }; 34 } catch (IntrospectionException ie) { 35 Exceptions.printStackTrace(ie); 36 return null; 37 } 38 } 39 40 public PropertyDescriptor[] getPropertyDescriptors () { 41 try { 42 PropertyDescriptor extensions = new PropertyDescriptor ("extensions", UniFileLoader.class); extensions.setDisplayName (NbBundle.getBundle (UniFileLoaderBeanInfo.class).getString ("PROP_UniFileLoader_extensions")); 44 extensions.setShortDescription (NbBundle.getBundle (UniFileLoaderBeanInfo.class).getString ("HINT_UniFileLoader_extensions")); 45 return new PropertyDescriptor[] { extensions }; 46 } catch (IntrospectionException ie) { 47 Exceptions.printStackTrace(ie); 48 return null; 49 } 50 } 51 52 } 53
| Popular Tags
|