de.gulden.framework.jjack
public abstract class JJackBeanInfoAbstract extends SimpleBeanInfo
Version: 0.3
Field Summary | |
---|---|
static String | IMAGE_PREFIX
Prefix path to internal JJack icon images. |
static String | IMAGE_SUFFIX
Suffix of internal JJack icon images. |
protected int | methodDescriptorsCount
Number of MethodDescriptor s. |
protected int | propertyDescriptorsCount
Number of PropertyDescriptor s. |
protected Class | thisClass
Bean-class that gets described by this BeanInfo-class. |
Constructor Summary | |
---|---|
protected | JJackBeanInfoAbstract(Class cl)
Constructor.
|
protected | JJackBeanInfoAbstract(Class cl, int extraPropertyDescriptorsCount, int extraMethodDescriptorsCount)
Constructor.
|
Method Summary | |
---|---|
protected void | exc(Exception e)
Outputs an Exception 's type and message.
|
BeanDescriptor | getBeanDescriptor()
Gets the beans BeanDescriptor .
|
int | getDefaultEventIndex()
A bean may have a "default" event that is the event that will mostly
commonly be used by humans when using the bean.
|
EventSetDescriptor[] | getEventSetDescriptors()
Gets the beans EventSetDescriptor s.
|
Image | getIcon(int kind)
This method returns an image object that can be used to
represent the bean in toolboxes, toolbars, etc.
|
MethodDescriptor[] | getMethodDescriptors()
Gets the beans MethodDescriptor s.
|
PropertyDescriptor[] | getPropertyDescriptors()
Gets the beans PropertyDescriptor s.
|
MethodDescriptor
s.PropertyDescriptor
s.Parameters: cl Bean-class that gets described by this BeanInfo-class.
Parameters: cl Bean-class that gets described by this BeanInfo-class. extraPropertyDescriptorsCount number of PropertyDescriptors that are additionally handled by subclass extraMethodDescriptorsCount number of MethodDescriptors that are additionally handled by subclass
Exception
's type and message.
Program execution is not interrupted.
Parameters: e the exception
BeanDescriptor
.
Returns: A BeanDescriptor providing overall information about the bean, such as its displayName, its customizer, etc.
Returns: Index of default event in the EventSetDescriptor array returned by getEventSetDescriptors.
EventSetDescriptor
s.
Returns: An array of EventSetDescriptors describing the kinds of events fired by this bean.
Parameters: kind The kind of icon requested. This should be one of the constant values ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, or ICON_MONO_32x32.
Returns: An image object representing the requested icon. May return null if no suitable icon is available.
MethodDescriptor
s.
Returns: An array of MethodDescriptors describing the externally visible methods supported by this bean.
PropertyDescriptor
s.
Returns: An array of PropertyDescriptors describing the editable properties supported by this bean.