|
|||||||||
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 MethodDescriptor s. |
protected int |
propertyDescriptorsCount
Number of PropertyDescriptor s. |
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 EventSetDescriptor s. |
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 MethodDescriptor s. |
java.beans.PropertyDescriptor[] |
getPropertyDescriptors()
Gets the beans PropertyDescriptor s. |
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
PropertyDescriptor
s.
protected int methodDescriptorsCount
MethodDescriptor
s.
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 subclassMethod Detail |
---|
public java.beans.BeanDescriptor getBeanDescriptor()
BeanDescriptor
.
getBeanDescriptor
in interface java.beans.BeanInfo
getBeanDescriptor
in class java.beans.SimpleBeanInfo
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
PropertyDescriptor
s.
getPropertyDescriptors
in interface java.beans.BeanInfo
getPropertyDescriptors
in class java.beans.SimpleBeanInfo
public java.beans.EventSetDescriptor[] getEventSetDescriptors()
EventSetDescriptor
s.
getEventSetDescriptors
in interface java.beans.BeanInfo
getEventSetDescriptors
in class java.beans.SimpleBeanInfo
public int getDefaultEventIndex()
getDefaultEventIndex
in interface java.beans.BeanInfo
getDefaultEventIndex
in class java.beans.SimpleBeanInfo
public java.beans.MethodDescriptor[] getMethodDescriptors()
MethodDescriptor
s.
getMethodDescriptors
in interface java.beans.BeanInfo
getMethodDescriptors
in class java.beans.SimpleBeanInfo
public java.awt.Image getIcon(int kind)
getIcon
in interface java.beans.BeanInfo
getIcon
in class java.beans.SimpleBeanInfo
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.
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 |