Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind.util
Class TestPropertyUtils.UglyBeanBeanInfo  view TestPropertyUtils.UglyBeanBeanInfo download TestPropertyUtils.UglyBeanBeanInfo.java

java.lang.Object
  extended byorg.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


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:

  1. This BeanInfo object.
  2. getAdditionalBeanInfo()[getAdditionalBeanInfo().length]
  3. ...
  4. getAdditionalBeanInfo()[1]
  5. getAdditionalBeanInfo()[0]

Spec Note: It is possible that returning null from this method could stop Introspection in its tracks, but it is unclear from the spec whether this is the case.

Specified by:
getAdditionalBeanInfo in interface java.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:
getBeanDescriptor in interface java.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:
getDefaultEventIndex in interface java.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:
getDefaultPropertyIndex in interface java.beans.BeanInfo

getEventSetDescriptors

public java.beans.EventSetDescriptor[] getEventSetDescriptors()
Description copied from interface: java.beans.BeanInfo
Get the events this Bean type fires.

Specified by:
getEventSetDescriptors in interface java.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:
getIcon in interface java.beans.BeanInfo

getMethodDescriptors

public java.beans.MethodDescriptor[] getMethodDescriptors()
Description copied from interface: java.beans.BeanInfo
Get the methods this Bean type supports.

Specified by:
getMethodDescriptors in interface java.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:
getPropertyDescriptors in interface java.beans.BeanInfo