public class PropertyInfoSupport extends java.lang.Object implements PropertyInfo
PropertyInfo.PropertyInfo,
BeanDependentPropertyEditor| Constructor and Description |
|---|
PropertyInfoSupport(java.lang.String name,
boolean isHidden)
Creates a new PropertyInfoSupport with no PropertyEditorClass that is non cached, non expert and hidden or not
depending of the given value.
|
PropertyInfoSupport(java.lang.String name,
java.lang.Class propertyEditorClass)
Creates a new PropertyInfoSupport with a given PropertyEditorClass that is non cached, non expert and non hidden.
|
PropertyInfoSupport(java.lang.String name,
java.lang.String displayName)
Creates a new PropertyInfoSupport with no PropertyEditor that is non cached, non expert and non hidden.
|
PropertyInfoSupport(java.lang.String name,
java.lang.String displayName,
java.lang.Class propertyEditorClass)
Creates a new PropertyInfoSupport with a given PropertyEditorClass that is non cached, non expert and non hidden.
|
| 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 |
setIsCached(java.lang.Boolean isCached)
Sets whether the property is cached or no.
|
void |
setIsExpert(boolean isExpert)
Sets whether the property is only visible to experts or no
|
void |
setIsHidden(boolean isHidden)
Sets whether the property is hidden or no
|
void |
updatePropertyDescriptor(java.beans.PropertyDescriptor propertyDescriptor)
Update the given
PropertyDescriptor with the information contained in this PropertyInfo |
public PropertyInfoSupport(java.lang.String name,
java.lang.Class propertyEditorClass)
name - the name of the property that PropertyInfo object is forpropertyEditorClass - the class of the property editor for this propertyBeanDependentPropertyEditorpublic PropertyInfoSupport(java.lang.String name,
java.lang.String displayName)
name - the name of the property that PropertyInfo object is forpropertyEditorClass - the class of the property editor for this propertyBeanDependentPropertyEditorpublic PropertyInfoSupport(java.lang.String name,
java.lang.String displayName,
java.lang.Class propertyEditorClass)
name - the name of the property that PropertyInfo object is fordisplayName - the display name of the propertypropertyEditorClass - the class of the property editor for this propertyBeanDependentPropertyEditorpublic PropertyInfoSupport(java.lang.String name,
boolean isHidden)
name - the name of the property that PropertyInfo object is forisHidden - whether this property is hidden or notpublic void setIsCached(java.lang.Boolean isCached)
isCached - whether the property is cached or no.public void setIsExpert(boolean isExpert)
isExpert - whether the property is only visible to experts or nopublic void setIsHidden(boolean isHidden)
isHidden - whether the property is hidden or nopublic void updatePropertyDescriptor(java.beans.PropertyDescriptor propertyDescriptor)
PropertyInfoPropertyDescriptor with the information contained in this PropertyInfoupdatePropertyDescriptor in interface PropertyInfopropertyDescriptor - the PropertyDescriptor to updatepublic java.lang.String getName()
PropertyInfogetName in interface PropertyInfopublic java.lang.String getDisplayName()
PropertyInfogetDisplayName in interface PropertyInfopublic java.lang.Class getPropertyEditorClass()
PropertyInfogetPropertyEditorClass in interface PropertyInfopublic java.lang.Boolean isCacheable()
PropertyInfoisCacheable in interface PropertyInfopublic boolean isExpert()
PropertyInfoisExpert in interface PropertyInfopublic boolean isHidden()
PropertyInfoisHidden in interface PropertyInfo