Package org.apache.jmeter.testbeans
Class BeanInfoSupport
-
- All Implemented Interfaces:
-
java.beans.BeanInfo
public abstract class BeanInfoSupport extends SimpleBeanInfo
Support class for test bean beanInfo objects. It will help using the introspector to get most of the information, to then modify it at will.
To use, subclass it, create a subclass with a parameter-less constructor that:
- Calls super(beanClass)
- Modifies the property descriptors, bean descriptor, etc. at will.
Even before any such modifications, a resource bundle named xxxResources (where xxx is the fully qualified bean class name) will be obtained if available and used to localize the following:
- Bean's display name -- from property displayName.
- Properties' display names -- from properties propertyName.displayName.
- Properties' short descriptions -- from properties propertyName.shortDescription.
The resource bundle will be stored as the bean descriptor's "resourceBundle" attribute, so that it can be used for further localization. TestBeanGUI, for example, uses it to obtain the group's display names from properties groupName.displayName.
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
TAGS
public final static String
NOT_UNDEFINED
public final static String
NOT_EXPRESSION
public final static String
NOT_OTHER
public final static String
MULTILINE
public final static String
DEFAULT
public final static String
DEFAULT_NOT_SAVED
public final static String
RESOURCE_BUNDLE
public final static String
TEXT_LANGUAGE
public final BeanDescriptor
beanDescriptor
public final static int
ICON_COLOR_16x16
public final static int
ICON_COLOR_32x32
public final static int
ICON_MONO_16x16
public final static int
ICON_MONO_32x32
-
Method Summary
Modifier and Type Method Description BeanDescriptor
getBeanDescriptor()
Array<BeanInfo>
getAdditionalBeanInfo()
int
getDefaultEventIndex()
int
getDefaultPropertyIndex()
Array<EventSetDescriptor>
getEventSetDescriptors()
Image
getIcon(intĀ iconKind)
Array<MethodDescriptor>
getMethodDescriptors()
Array<PropertyDescriptor>
getPropertyDescriptors()
-
-
Method Detail
-
getBeanDescriptor
BeanDescriptor getBeanDescriptor()
-
getAdditionalBeanInfo
Array<BeanInfo> getAdditionalBeanInfo()
-
getDefaultEventIndex
int getDefaultEventIndex()
-
getDefaultPropertyIndex
int getDefaultPropertyIndex()
-
getEventSetDescriptors
Array<EventSetDescriptor> getEventSetDescriptors()
-
getMethodDescriptors
Array<MethodDescriptor> getMethodDescriptors()
-
getPropertyDescriptors
Array<PropertyDescriptor> getPropertyDescriptors()
-
-
-
-