FileDocCategorySizeDatePackage
MoleculeBeanInfo.javaAPI DocExample658Sat Apr 23 22:35:42 BST 2005magicbeans.sunw.demo.molecule

MoleculeBeanInfo

public class MoleculeBeanInfo extends SimpleBeanInfo
BeanInfo for a molecule. We simply expose a single property the molecule name, with a custome proeprty editor.

Fields Summary
Constructors Summary
Methods Summary
public java.beans.PropertyDescriptor[]getPropertyDescriptors()

	try {
	    PropertyDescriptor pd = new PropertyDescriptor("moleculeName",
					    		Molecule.class);
	    pd.setPropertyEditorClass(MoleculeNameEditor.class);
	    PropertyDescriptor result[] = { pd };
	    return result;
	} catch (Exception ex) {
	    System.err.println("MoleculeBeanInfo: unexpected exeption: " + ex);
	    return null;
	}