public abstract class BeanCustomizer
extends java.lang.Object
AuditProvider.getBeanCustomizers()
Constructor and Description |
---|
BeanCustomizer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
description(java.lang.Object bean,
java.lang.String itemName)
Gets the localized description for a property or property group of a bean,
or null to defer to a superclass customizer.
|
PropertyDescriptor |
descriptor(java.lang.Object bean,
java.lang.String propertyName)
Gets the descriptor for a property of a bean, or null to defer to a
superclass customizer.
|
PropertyField |
field(java.lang.Object bean,
java.lang.String propertyName)
Gets the
PropertyField which should be used to display a property
of a bean, or null to defer to a superclass customizer. |
abstract java.lang.Class<?> |
getType()
The type which this customizer customizes.
|
java.lang.String[] |
items(java.lang.Object bean,
java.lang.String groupName)
Gets an array of property and property group names for the properties of
a bean, in display order, or null to defer to a superclass customizer.
|
java.lang.String |
label(java.lang.Object bean,
java.lang.String itemName)
Gets the localized label for a property or property group of a bean, or
null to defer to a superclass customizer.
|
java.lang.Boolean |
modifiable(java.lang.Object bean,
java.lang.String itemName)
Gets whether a property or property group of the bean should be modifiable,
or null to defer to a superclass customizer.
|
java.lang.Class |
type(java.lang.Object bean,
java.lang.String propertyName)
Gets the type for a property of a bean, or null to defer to a superclass
customizer.
|
java.lang.String |
valid(java.lang.Object bean)
Gets whether the properties of this bean are valid.
|
java.lang.Boolean |
visible(java.lang.Object bean,
java.lang.String itemName)
Gets whether a property or property group of the bean should be visible,
or null to defer to a superclass customizer.
|
public abstract java.lang.Class<?> getType()
public java.lang.Boolean visible(java.lang.Object bean, java.lang.String itemName)
BeanCustomizer
implementation returns null.public java.lang.String[] items(java.lang.Object bean, java.lang.String groupName)
BeanCustomizer
implementation returns null.bean
- the instance of the bean class being displayedgroupName
- the name of a property group, or null for the notional
top level grouppublic PropertyDescriptor descriptor(java.lang.Object bean, java.lang.String propertyName)
BeanCustomizer
implementation
returns null.public java.lang.Class type(java.lang.Object bean, java.lang.String propertyName)
BeanCustomizer
implementation returns
null.public java.lang.String label(java.lang.Object bean, java.lang.String itemName)
BeanCustomizer
implementation returns null.public java.lang.String description(java.lang.Object bean, java.lang.String itemName)
BeanCustomizer
implementation returns null.public PropertyField field(java.lang.Object bean, java.lang.String propertyName)
PropertyField
which should be used to display a property
of a bean, or null to defer to a superclass customizer. The
default BeanCustomizer
implementation returns null.public java.lang.Boolean modifiable(java.lang.Object bean, java.lang.String itemName)
BeanCustomizer
implementation returns null.public java.lang.String valid(java.lang.Object bean)
BeanCustomizer
implementation returns null.