package sun.beanbox.beans;
import java.beans.*;

//
// Marketing department wants to put the right
// spin on the class name when publicly viewed
// in builder tools.
//
public class NervousText07BeanInfo extends SimpleBeanInfo {
  private final static Class beanClass =
    NervousText07.class;
  public BeanDescriptor getBeanDescriptor() {
    System.err.println("ENTER---> NervousText07BeanInfo.getBeanDescriptor");
    BeanDescriptor bd = new BeanDescriptor(beanClass);
    bd.setDisplayName("Uneasy Text 07");
    System.err.println("EXIT----> NervousText07BeanInfo.getBeanDescriptor");
    return bd;
  }
  // ----\/------------------------------------
  public PropertyDescriptor[] getPropertyDescriptors() {
    try {
      PropertyDescriptor textPD =
        new PropertyDescriptor("text", beanClass);
      PropertyDescriptor rv[] = {textPD};
      textPD.setPropertyEditorClass(NervousText07TextPropertyEditor.class);
      return rv;
    } catch (IntrospectionException e) {
      throw new Error(e.toString());
    }
  }
  // ----\/------------------------------------

}


