Example usage for java.beans BeanDescriptor setDisplayName

List of usage examples for java.beans BeanDescriptor setDisplayName

Introduction

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

Prototype

public void setDisplayName(String displayName) 

Source Link

Document

Sets the localized display name of this feature.

Usage

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 .jav a 2s.c  om*/
    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;
}