org.dishevelled.identify
Class IdentifiableBeanDescriptor

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by java.beans.BeanDescriptor
          extended by org.dishevelled.identify.IdentifiableBeanDescriptor

public abstract class IdentifiableBeanDescriptor
extends BeanDescriptor

Abstract BeanDescriptor which provides for discovery of the name property and icon bundle for a bean through introspection.

Version:
$Revision: 741 $ $Date: 2010-01-02 20:23:15 -0600 (Sat, 02 Jan 2010) $
Author:
Michael Heuer

Constructor Summary
protected IdentifiableBeanDescriptor(Class beanClass)
          Create a new abstract BeanDescriptor for an identifiable bean with the specified class.
protected IdentifiableBeanDescriptor(Class beanClass, Class customizerClass)
          Create a new abstract BeanDescriptor for an identifiable bean with the specified class and customizer class.
 
Method Summary
abstract  IconBundle getIconBundle()
          Return an icon bundle to use for all instances of the identifiable bean class this descriptor describes.
abstract  int getNamePropertyIndex()
          Return the index of the name property descriptor, or -1 if one does not exist.
 
Methods inherited from class java.beans.BeanDescriptor
getBeanClass, getCustomizerClass
 
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifiableBeanDescriptor

protected IdentifiableBeanDescriptor(Class beanClass)
Create a new abstract BeanDescriptor for an identifiable bean with the specified class.

Parameters:
beanClass - class of the identifiable bean

IdentifiableBeanDescriptor

protected IdentifiableBeanDescriptor(Class beanClass,
                                     Class customizerClass)
Create a new abstract BeanDescriptor for an identifiable bean with the specified class and customizer class.

Parameters:
beanClass - class of the identifiable bean
customizerClass - class of the customizer to use for the identifiable bean
Method Detail

getNamePropertyIndex

public abstract int getNamePropertyIndex()
Return the index of the name property descriptor, or -1 if one does not exist.

Returns:
the index of the name property descriptor, or -1 if one does not exist

getIconBundle

public abstract IconBundle getIconBundle()
Return an icon bundle to use for all instances of the identifiable bean class this descriptor describes.

Returns:
an icon bundle to use for all instances of the identifiable bean class this descriptor describes


Copyright (c) 2003-2010 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).