Example usage for java.beans BeanDescriptor setShortDescription

List of usage examples for java.beans BeanDescriptor setShortDescription

Introduction

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

Prototype

public void setShortDescription(String text) 

Source Link

Document

You can associate a short descriptive string with a 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  ww  .j a  va 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;
}