UniVista Programmer's Guide

UniVista.beaninfo

VariableBeanBeanInfo


Intent | Structure | Participants | Sample Code | Known Uses

Intent

All of the beans for UniVista Variables use this as their BeanInfo base class.  It is not abstract, since it extends java.beans.SimpleBeanInfo.

Structure

Participants

Sample Code

The following code shows how one of the methods are implemented and how the beanClass is related.
public class VariableBeanBeanInfo extends SimpleBeanInfo {
    private final static Class beanClass = VariableBean.class;

    public BeanDescriptor getBeanDescriptor() {
    BeanDescriptor bd = new BeanDescriptor(beanClass,
                            VariableBeanCustomizer.class);
    bd.setDisplayName("Variable Bean");
    return bd;
}
//...

The simplest way to use the class is by calling its methods within a subclass, such as the following excerpt shows.
public class ShortVariableBeanInfo extends
                                  VariableBeanBeanInfo {

private final static Class beanClass =
                        ShortVariable.class;

//...
public MethodDescriptor[] getMethodDescriptors() {
    return super.getMethodDescriptors();
}
//...

Known Uses


Contact the UniVista Team | Main Page | Table of Contents