no.sesat.search.mode.config
Class AbstractBeanInfoHelper

java.lang.Object
  extended by java.beans.SimpleBeanInfo
      extended by 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.


Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
AbstractBeanInfoHelper(Class<?> cls)
          Populate the descriptors with the standard JavaBean descriptors, using the supplied class.
 
Method Summary
protected  void add(String name, String getter, String setter)
          Add a descriptor
 PropertyDescriptor[] getPropertyDescriptors()
           
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

add

protected final void add(String name,
                         String getter,
                         String setter)
                  throws IntrospectionException
Add a descriptor

Parameters:
name - name of the property
getter - name of the getter, null if none
setter - 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.