import java.beans.*; import utilities.beans.*; //=================================================================== // The BeanInfo class for bean PlugNPray. // By subclassing from VerySimpleBeanInfo, this is a trivial exercise //=================================================================== public class PlugNPrayBeanInfo extends VerySimpleBeanInfo { private static VerySimplePropertyDescriptor[] pDescInits = { new VerySimplePropertyDescriptor("expansionType"), new VerySimplePropertyDescriptor("IRQ"), new VerySimplePropertyDescriptor("DMA"), new VerySimplePropertyDescriptor("IOBase") }; //------------------------------------------------------------------- public VerySimplePropertyDescriptor[] getPropertyDescriptionInits() { return pDescInits; } //------------------------------------------------------------------- public Class getBeanClass() { return PlugNPray.class; } //------------------------------------------------------------------- // overridden BeanInfo.getBeanDescriptor() // This allows us to specify our bean's Customizer. //------------------------------------------------------------------- public BeanDescriptor getBeanDescriptor() { return new BeanDescriptor(PlugNPray.class, PlugNPrayCustomizer.class); } } // End of Class PlugNPrayBeanInfo