com.l2fprod.common.beans
Class ExtendedPropertyDescriptor
java.lang.Object
java.beans.FeatureDescriptor
java.beans.PropertyDescriptor
com.l2fprod.common.beans.ExtendedPropertyDescriptor
public class ExtendedPropertyDescriptor
- extends java.beans.PropertyDescriptor
ExtendedPropertyDescriptor.
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 |
BY_CATEGORY_COMPARATOR
public static final java.util.Comparator BY_CATEGORY_COMPARATOR
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
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