Example usage for java.beans BeanDescriptor BeanDescriptor

List of usage examples for java.beans BeanDescriptor BeanDescriptor

Introduction

In this page you can find the example usage for java.beans BeanDescriptor BeanDescriptor.

Prototype

public BeanDescriptor(Class<?> beanClass, Class<?> customizerClass) 

Source Link

Document

Create a BeanDescriptor for a bean that has a customizer.

Usage

From source file:facebean.FaceBeanBeanInfo.java

private static BeanDescriptor getBdescriptor() {
    BeanDescriptor beanDescriptor = new BeanDescriptor(facebean.FaceBean.class, null); // NOI18N//GEN-HEADEREND:BeanDescriptor

    // Here you can add code for customizing the BeanDescriptor.

    return beanDescriptor;
}

From source file:com.twinsoft.convertigo.beans.core.MySimpleBeanInfo.java

@Override
public BeanDescriptor getBeanDescriptor() {
    BeanDescriptor beanDescriptor = new BeanDescriptor(beanClass, null);
    beanDescriptor.setDisplayName(displayName);
    beanDescriptor.setShortDescription(shortDescription);
    if (iconNameC16 != null) {
        beanDescriptor.setValue("icon" + BeanInfo.ICON_COLOR_16x16, iconNameC16);
    }//from w w w  .j ava  2  s .c o m
    if (iconNameC32 != null) {
        beanDescriptor.setValue("icon" + BeanInfo.ICON_COLOR_32x32, iconNameC32);
    }
    if (iconNameM16 != null) {
        beanDescriptor.setValue("icon" + BeanInfo.ICON_MONO_16x16, iconNameM16);
    }
    if (iconNameM32 != null) {
        beanDescriptor.setValue("icon" + BeanInfo.ICON_MONO_32x32, iconNameM32);
    }
    return beanDescriptor;
}