FileDocCategorySizeDatePackage
CoolerBeanInfo.javaAPI DocExample1885Wed Jun 04 00:06:12 BST 1997BeansBook.Simulator

CoolerBeanInfo

public class CoolerBeanInfo 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 (IntrospectionException e)
      {
         return null;
      }
   
public java.beans.BeanDescriptorgetBeanDescriptor()

      // create the bean descriptor object
      BeanDescriptor bd = new BeanDescriptor(Cooler.class);
       
      // set the display name
      bd.setDisplayName("Simulated Cooler");
      
      // 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;
      }