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.BeanDescriptor | getBeanDescriptor()
// create the bean descriptor object
BeanDescriptor bd = new BeanDescriptor(Boiler.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;
}
|