com.l2fprod.common.beans
Class ExtendedPropertyDescriptor

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by java.beans.PropertyDescriptor
          extended by com.l2fprod.common.beans.ExtendedPropertyDescriptor

public class ExtendedPropertyDescriptor
extends java.beans.PropertyDescriptor

ExtendedPropertyDescriptor.


Field Summary
static java.util.Comparator BY_CATEGORY_COMPARATOR
           
 
Constructor Summary
ExtendedPropertyDescriptor(java.lang.String propertyName, java.lang.Class beanClass)
           
ExtendedPropertyDescriptor(java.lang.String propertyName, java.lang.Class beanClass, java.lang.String getterName, java.lang.String setterName)
           
ExtendedPropertyDescriptor(java.lang.String propertyName, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
           
 
Method Summary
 java.lang.String getCategory()
           
 java.lang.Class getPropertyTableRendererClass()
           
static ExtendedPropertyDescriptor newPropertyDescriptor(java.lang.String propertyName, java.lang.Class beanClass)
           
 ExtendedPropertyDescriptor setCategory(java.lang.String category)
          Sets this property category
 void setPropertyTableRendererClass(java.lang.Class tableCellRendererClass)
          You can associate a special tablecellrenderer with a particular Property.
 ExtendedPropertyDescriptor setReadOnly()
          Force this property to be readonly
 
Methods inherited from class java.beans.PropertyDescriptor
createPropertyEditor, equals, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, hashCode, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
 
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BY_CATEGORY_COMPARATOR

public static final java.util.Comparator BY_CATEGORY_COMPARATOR
Constructor Detail

ExtendedPropertyDescriptor

public ExtendedPropertyDescriptor(java.lang.String propertyName,
                                  java.lang.Class beanClass)
                           throws java.beans.IntrospectionException
Throws:
java.beans.IntrospectionException

ExtendedPropertyDescriptor

public ExtendedPropertyDescriptor(java.lang.String propertyName,
                                  java.lang.reflect.Method getter,
                                  java.lang.reflect.Method setter)
                           throws java.beans.IntrospectionException
Throws:
java.beans.IntrospectionException

ExtendedPropertyDescriptor

public ExtendedPropertyDescriptor(java.lang.String propertyName,
                                  java.lang.Class beanClass,
                                  java.lang.String getterName,
                                  java.lang.String setterName)
                           throws java.beans.IntrospectionException
Throws:
java.beans.IntrospectionException
Method Detail

setCategory

public ExtendedPropertyDescriptor setCategory(java.lang.String category)
Sets this property category

Parameters:
category -
Returns:
this property for chaining calls.

getCategory

public java.lang.String getCategory()
Returns:
the category in which this property belongs

setReadOnly

public ExtendedPropertyDescriptor setReadOnly()
Force this property to be readonly

Returns:
this property for chaining calls.

setPropertyTableRendererClass

public void setPropertyTableRendererClass(java.lang.Class tableCellRendererClass)
You can associate a special tablecellrenderer with a particular Property. If set to null default renderer will be used.

Parameters:
tableCellRendererClass -

getPropertyTableRendererClass

public java.lang.Class getPropertyTableRendererClass()
Returns:
null or a custom TableCellRenderer-Class for this property

newPropertyDescriptor

public static ExtendedPropertyDescriptor newPropertyDescriptor(java.lang.String propertyName,
                                                               java.lang.Class beanClass)
                                                        throws java.beans.IntrospectionException
Throws:
java.beans.IntrospectionException