FileDocCategorySizeDatePackage
BoilerBeanInfo.javaAPI DocExample1933Wed Jun 04 00:24:14 BST 1997BeansBook.Simulator

BoilerBeanInfo

public class BoilerBeanInfo extends SimpleBeanInfo

Fields Summary
Constructors Summary
Methods Summary
public java.beans.BeanInfo[]getAdditionalBeanInfo()

      try
      {
         // create a bean info array that contains one object, which is 
         // the bean info for the base TemperatureModifier class.  this
         // bean info is retrieved via the Introspector
         BeanInfo[] bia = { Introspector.getBeanInfo(TemperatureModifier.class) };
         
         // return the bean info array
         return bia;
      }
      catch (Exception e)
      {
         return null;
      }
   
public java.beans.BeanDescriptorgetBeanDescriptor()

      // create the bean descriptor object
      BeanDescriptor bd = new BeanDescriptor(Boiler.class,
                                   BoilerCustomizer.class);
       
      // set the display name
      bd.setDisplayName("Simulated Boiler");
      
      // return the descriptor object
      return bd;
   
public java.beans.PropertyDescriptor[]getPropertyDescriptors()

      // for now this class defines none of its own properties,
      // but this is implemented as a place holder
      try
      {
         // create an empty array of descriptors
         PropertyDescriptor[] pda = { };
        
         // return the array
         return pda;
      }
      catch (Exception e)
      {
         return null;
      }