|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.beans.SimpleBeanInfo
de.gulden.framework.jjack.JJackBeanInfoAbstract
public abstract class JJackBeanInfoAbstract
Abstract base class for BeanInfo classes describing JJack clients as JavaBeans. If a JJack client is a subclass of JJackMonitor or JJackClient, it can be used as a JavaBean. This class makes it easy to create the corresponding BeanInfo class.
| Field Summary | |
|---|---|
static java.lang.String |
IMAGE_PREFIX
Prefix path to internal JJack icon images. |
static java.lang.String |
IMAGE_SUFFIX
Suffix of internal JJack icon images. |
protected int |
methodDescriptorsCount
Number of MethodDescriptors. |
protected int |
propertyDescriptorsCount
Number of PropertyDescriptors. |
protected java.lang.Class |
thisClass
Bean-class that gets described by this BeanInfo-class. |
| Fields inherited from interface java.beans.BeanInfo |
|---|
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| Constructor Summary | |
|---|---|
protected |
JJackBeanInfoAbstract(java.lang.Class cl)
Constructor. |
protected |
JJackBeanInfoAbstract(java.lang.Class cl,
int extraPropertyDescriptorsCount,
int extraMethodDescriptorsCount)
Constructor. |
| Method Summary | |
|---|---|
protected void |
exc(java.lang.Exception e)
Outputs an Exception's type and message. |
java.beans.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. |
java.beans.EventSetDescriptor[] |
getEventSetDescriptors()
Gets the beans EventSetDescriptors. |
java.awt.Image |
getIcon(int kind)
This method returns an image object that can be used to represent the bean in toolboxes, toolbars, etc. |
java.beans.MethodDescriptor[] |
getMethodDescriptors()
Gets the beans MethodDescriptors. |
java.beans.PropertyDescriptor[] |
getPropertyDescriptors()
Gets the beans PropertyDescriptors. |
| Methods inherited from class java.beans.SimpleBeanInfo |
|---|
getAdditionalBeanInfo, getDefaultPropertyIndex, loadImage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String IMAGE_PREFIX
public static final java.lang.String IMAGE_SUFFIX
protected java.lang.Class thisClass
protected int propertyDescriptorsCount
PropertyDescriptors.
protected int methodDescriptorsCount
MethodDescriptors.
| Constructor Detail |
|---|
protected JJackBeanInfoAbstract(java.lang.Class cl)
cl - Bean-class that gets described by this BeanInfo-class.
protected JJackBeanInfoAbstract(java.lang.Class cl,
int extraPropertyDescriptorsCount,
int extraMethodDescriptorsCount)
cl - Bean-class that gets described by this BeanInfo-class.extraPropertyDescriptorsCount - number of PropertyDescriptors that are additionally handled by subclassextraMethodDescriptorsCount - number of MethodDescriptors that are additionally handled by subclass| Method Detail |
|---|
public java.beans.BeanDescriptor getBeanDescriptor()
BeanDescriptor.
getBeanDescriptor in interface java.beans.BeanInfogetBeanDescriptor in class java.beans.SimpleBeanInfopublic java.beans.PropertyDescriptor[] getPropertyDescriptors()
PropertyDescriptors.
getPropertyDescriptors in interface java.beans.BeanInfogetPropertyDescriptors in class java.beans.SimpleBeanInfopublic java.beans.EventSetDescriptor[] getEventSetDescriptors()
EventSetDescriptors.
getEventSetDescriptors in interface java.beans.BeanInfogetEventSetDescriptors in class java.beans.SimpleBeanInfopublic int getDefaultEventIndex()
getDefaultEventIndex in interface java.beans.BeanInfogetDefaultEventIndex in class java.beans.SimpleBeanInfopublic java.beans.MethodDescriptor[] getMethodDescriptors()
MethodDescriptors.
getMethodDescriptors in interface java.beans.BeanInfogetMethodDescriptors in class java.beans.SimpleBeanInfopublic java.awt.Image getIcon(int kind)
getIcon in interface java.beans.BeanInfogetIcon in class java.beans.SimpleBeanInfokind - 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.
protected void exc(java.lang.Exception e)
Exception's type and message.
Program execution is not interrupted.
e - the exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||