public interface PropertyInfo
java.beans.
PropertyDescriptor but it aims to be a complementary and ligther version of it.
The properties of a JavaBean are describe using the PropertyDescriptor returned by the
BeanInfo. If you provide an explicit BeanInfo you can use the
PropertyDescriptor to specify the needed information (expert, hidden, PropertyEditor ...) and you do
not need to use this interface.
If you do not provide an explicit BeanInfo you cannot specify that information as the
PropertyDescriptor will be automatically generated by the Introspector. In this case, you
can returned an array of PropertyInfo specifying the proper information directly from your bean.
The node representing the bean will invoke the method to get that array of PropertyInfo and use the
information from it.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName()
Returns the display name of the property
|
java.lang.String |
getName()
Returns the name of the property
|
java.lang.Class |
getPropertyEditorClass()
Gets an explicit PropertyEditor Class for this property.
|
java.lang.Boolean |
isCacheable()
Returns a boolean indicating the caching strategy for this property.
|
boolean |
isExpert()
Returns if this property is expert.
|
boolean |
isHidden()
Returns if this property is hidden.
|
void |
updatePropertyDescriptor(java.beans.PropertyDescriptor propertyDescriptor)
Update the given
PropertyDescriptor with the information contained in this PropertyInfo |
java.lang.String getName()
java.lang.String getDisplayName()
boolean isExpert()
boolean isHidden()
java.lang.Boolean isCacheable()
java.lang.Class getPropertyEditorClass()
void updatePropertyDescriptor(java.beans.PropertyDescriptor propertyDescriptor)
PropertyDescriptor with the information contained in this PropertyInfopropertyDescriptor - the PropertyDescriptor to update