|
|||||||||
| Home >> All >> org >> apache >> hivemind >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.hivemind.util
Class TestPropertyUtils.UglyBeanBeanInfo

java.lang.Objectorg.apache.hivemind.util.TestPropertyUtils.UglyBeanBeanInfo
- All Implemented Interfaces:
- java.beans.BeanInfo
- Enclosing class:
- TestPropertyUtils
- public static class TestPropertyUtils.UglyBeanBeanInfo
- extends java.lang.Object
- implements java.beans.BeanInfo
- extends java.lang.Object
| Field Summary |
| Fields inherited from interface java.beans.BeanInfo |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| Constructor Summary | |
TestPropertyUtils.UglyBeanBeanInfo()
|
|
| Method Summary | |
java.beans.BeanInfo[] |
getAdditionalBeanInfo()
Get additional BeanInfos representing this Bean. |
java.beans.BeanDescriptor |
getBeanDescriptor()
Get the general description of this Bean type. |
int |
getDefaultEventIndex()
Get the "default" event, basically the one a RAD tool user is most likely to select. |
int |
getDefaultPropertyIndex()
Get the "default" property, basically the one a RAD tool user is most likely to select. |
java.beans.EventSetDescriptor[] |
getEventSetDescriptors()
Get the events this Bean type fires. |
java.awt.Image |
getIcon(int iconKind)
Get a visual icon for this Bean. |
java.beans.MethodDescriptor[] |
getMethodDescriptors()
Get the methods this Bean type supports. |
java.beans.PropertyDescriptor[] |
getPropertyDescriptors()
Get the properties (get/set method pairs) this Bean type supports. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
TestPropertyUtils.UglyBeanBeanInfo
public TestPropertyUtils.UglyBeanBeanInfo()
| Method Detail |
getAdditionalBeanInfo
public java.beans.BeanInfo[] getAdditionalBeanInfo()
- Description copied from interface:
java.beans.BeanInfo - Get additional BeanInfos representing this Bean.
In this version of JavaBeans, this method is used so
that space and time can be saved by reading a BeanInfo
for each class in the hierarchy (super, super(super),
and so on).
The order of precedence when two pieces of BeanInfo conflict (such as two PropertyDescriptors that have the same name), in order from highest precedence to lowest, is:
- This BeanInfo object.
getAdditionalBeanInfo()[getAdditionalBeanInfo().length]- ...
getAdditionalBeanInfo()[1]getAdditionalBeanInfo()[0]
Spec Note: It is possible that returning
nullfrom this method could stop Introspection in its tracks, but it is unclear from the spec whether this is the case.- Specified by:
getAdditionalBeanInfoin interfacejava.beans.BeanInfo
getBeanDescriptor
public java.beans.BeanDescriptor getBeanDescriptor()
- Description copied from interface:
java.beans.BeanInfo - Get the general description of this Bean type.
- Specified by:
getBeanDescriptorin interfacejava.beans.BeanInfo
getDefaultEventIndex
public int getDefaultEventIndex()
- Description copied from interface:
java.beans.BeanInfo - Get the "default" event, basically the one a RAD tool
user is most likely to select.
- Specified by:
getDefaultEventIndexin interfacejava.beans.BeanInfo
getDefaultPropertyIndex
public int getDefaultPropertyIndex()
- Description copied from interface:
java.beans.BeanInfo - Get the "default" property, basically the one a RAD
tool user is most likely to select.
- Specified by:
getDefaultPropertyIndexin interfacejava.beans.BeanInfo
getEventSetDescriptors
public java.beans.EventSetDescriptor[] getEventSetDescriptors()
- Description copied from interface:
java.beans.BeanInfo - Get the events this Bean type fires.
- Specified by:
getEventSetDescriptorsin interfacejava.beans.BeanInfo
getIcon
public java.awt.Image getIcon(int iconKind)
- Description copied from interface:
java.beans.BeanInfo - Get a visual icon for this Bean.
A Bean does not have to support icons, and if it does
support icons, it does not have to support every single
type. Sun recommends that if you only support one
type, you support 16x16 color. Sun also notes that you
should try to use a type (like GIF) that allows for
transparent pixels, so that the background of the RAD
tool can show through.
Spec Note: If you do not support the type of icon that is being asked for, but you do support another type, it is unclear whether you should return the other type or not. I would presume not.
- Specified by:
getIconin interfacejava.beans.BeanInfo
getMethodDescriptors
public java.beans.MethodDescriptor[] getMethodDescriptors()
- Description copied from interface:
java.beans.BeanInfo - Get the methods this Bean type supports.
- Specified by:
getMethodDescriptorsin interfacejava.beans.BeanInfo
getPropertyDescriptors
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
- Description copied from interface:
java.beans.BeanInfo - Get the properties (get/set method pairs) this Bean
type supports.
- Specified by:
getPropertyDescriptorsin interfacejava.beans.BeanInfo
|
|||||||||
| Home >> All >> org >> apache >> hivemind >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.hivemind.util.TestPropertyUtils.UglyBeanBeanInfo