FileDocCategorySizeDatePackage
TemperatureModifierBeanInfo.javaAPI DocExample1069Wed Jun 04 00:08:08 BST 1997BeansBook.Simulator

TemperatureModifierBeanInfo

public class TemperatureModifierBeanInfo extends SimpleBeanInfo

Fields Summary
Constructors Summary
Methods Summary
public java.beans.PropertyDescriptor[]getPropertyDescriptors()

      try
      {
         // create a descriptor for the Rate property
         PropertyDescriptor pd1 = new PropertyDescriptor("Rate",
                              TemperatureModifier.class);
         
         // create a descriptor for the Running property                     
         PropertyDescriptor pd2 = new PropertyDescriptor("Running",
                              TemperatureModifier.class);
         
         // specify the property editor for Running
         pd2.setPropertyEditorClass(RunningEditor.class);
         
         // create an array of descriptors and return it to the caller                     
         PropertyDescriptor[] pda = { pd1, pd2 };
        
         return pda;
      }
      catch (Exception e)
      {
         return null;
      }