no.sesat.search.mode.config
Class AbstractBeanInfoHelper
java.lang.Object
java.beans.SimpleBeanInfo
no.sesat.search.mode.config.AbstractBeanInfoHelper
- All Implemented Interfaces:
- BeanInfo
- Direct Known Subclasses:
- CommandConfigBeanInfo
public class AbstractBeanInfoHelper
- extends SimpleBeanInfo
Helper class to make it easy to non standard PropertyDescriptors in a BeanInfo.
|
Constructor Summary |
AbstractBeanInfoHelper(Class<?> cls)
Populate the descriptors with the standard JavaBean descriptors, using the supplied class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBeanInfoHelper
public AbstractBeanInfoHelper(Class<?> cls)
throws IntrospectionException
- Populate the descriptors with the standard JavaBean descriptors, using the supplied class.
- Parameters:
cls - Class that we are making a BeanInfo for.
- Throws:
IntrospectionException
add
protected final void add(String name,
String getter,
String setter)
throws IntrospectionException
- Add a descriptor
- Parameters:
name - name of the propertygetter - name of the getter, null if nonesetter - name of the setter, null if none
- Throws:
IntrospectionException
getPropertyDescriptors
public final PropertyDescriptor[] getPropertyDescriptors()
- Specified by:
getPropertyDescriptors in interface BeanInfo- Overrides:
getPropertyDescriptors in class SimpleBeanInfo
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.