|
[Deprecated API] | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | CURRENT API | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The central interface of the Interface21 JavaBeans infrastructure.
Interface to be implemented by classes that can manipulate
Java beans.
Implementing classes have the ability to get and set
property values (individually or in bulk), get property descriptors
and query the readability and writability of properties.
| Field Summary | |
static java.lang.String |
NESTED_PROPERTY_SEPARATOR
Path separator for nested properties. |
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener that will be notified of property updates |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener l)
Add a PropertyChangeListener that will be notified of updates to a single property |
void |
addVetoableChangeListener(java.lang.String propertyName,
java.beans.VetoableChangeListener l)
Add a VetoableChangeListener that will be notified of updates to a single property |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener l)
Add a VetoableChangeListener that will be notified of property updates |
java.beans.PropertyEditor |
findCustomEditor(java.lang.Class requiredType,
java.lang.String propertyPath)
Find a custom property editor for the given type and property. |
java.lang.Object |
getIndexedPropertyValue(java.lang.String propertyName,
int index)
Get the value of an indexed property |
java.beans.PropertyDescriptor |
getPropertyDescriptor(java.lang.String propertyName)
Get the property descriptor for a particular property, or null if there is no such property |
java.beans.PropertyDescriptor[] |
getPropertyDescriptors()
Get the PropertyDescriptors standard JavaBeans introspection identified on this object. |
java.lang.Object |
getPropertyValue(java.lang.String propertyName)
Get the value of a property |
java.lang.Class |
getWrappedClass()
Convenience method to return the class of the wrapped object |
java.lang.Object |
getWrappedInstance()
Return the bean wrapped by this object. |
java.lang.Object |
invoke(java.lang.String methodName,
java.lang.Object[] args)
Invoke the named method. |
boolean |
isEventPropagationEnabled()
Should we send out event notifications? |
boolean |
isReadableProperty(java.lang.String propertyName)
Return whether this property is readable |
boolean |
isWritableProperty(java.lang.String propertyName)
Return whether this property is writable |
void |
newWrappedInstance()
This method is included for efficiency. |
BeanWrapper |
newWrapper(java.lang.Object obj)
This method is included for efficiency. |
void |
registerCustomEditor(java.lang.Class requiredType,
java.lang.String propertyPath,
java.beans.PropertyEditor propertyEditor)
Register the given custom property editor for the given type and property, or for all properties of the given type. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener that was formerly notified of property updates |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener that was notified of updates to a single property |
void |
removeVetoableChangeListener(java.lang.String propertyName,
java.beans.VetoableChangeListener l)
Remove a VetoableChangeListener that will be notified of updates to a single property |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener l)
Remove a VetoableChangeListener that will be notified of property updates |
void |
setEventPropagationEnabled(boolean flag)
Enable or disable event propogation Any existing listeners will be preserved and will again be notified of events when event propagation is reenabled. |
void |
setPropertyValue(PropertyValue pv)
Update a property value. |
void |
setPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Set a property value. |
void |
setPropertyValues(java.util.Map m)
Perform a bulk update from a Map. |
void |
setPropertyValues(PropertyValues pvs)
The preferred way to perform a bulk update. |
void |
setPropertyValues(PropertyValues pvs,
boolean ignoreUnknown,
PropertyValuesValidator pvsValidator)
Perform a bulk update with full control over behavior. |
void |
setWrappedInstance(java.lang.Object obj)
Change the wrapped object. |
| Field Detail |
public static final java.lang.String NESTED_PROPERTY_SEPARATOR
| Method Detail |
public void setPropertyValue(java.lang.String propertyName,
java.lang.Object value)
throws java.beans.PropertyVetoException,
BeansException
propertyName - name of the property to set value ofvalue - the new value
public void setPropertyValue(PropertyValue pv)
throws java.beans.PropertyVetoException,
BeansException
pv - object containing new property value
public java.lang.Object getPropertyValue(java.lang.String propertyName)
throws BeansException
propertyName - name of the property to get the value ofFatalBeanException - if there is no such property,
if the property isn't readable or if the property getter throws
an exception.
public java.lang.Object getIndexedPropertyValue(java.lang.String propertyName,
int index)
throws BeansException
propertyName - name of the property to get value ofindex - index from 0 of the propertyFatalBeanException - if there is no such indexed property
or if the getter method throws an exception.
public void setPropertyValues(java.util.Map m)
throws BeansException
m - Map to take properties from. Contains property value objects, keyed by
property nameBeansException -
public void setPropertyValues(PropertyValues pvs)
throws BeansException
pvs - PropertyValues to set on the target object
public void setPropertyValues(PropertyValues pvs,
boolean ignoreUnknown,
PropertyValuesValidator pvsValidator)
throws BeansException
pvs - PropertyValues to set on the target objectignoreUnknown - should we ignore unknown values (not found in the bean!?)pvsValidator - property values validator. Ignored if it's null.
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
throws BeansException
public java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String propertyName)
throws BeansException
propertyName - property to check status forpublic boolean isReadableProperty(java.lang.String propertyName)
propertyName - property to check status forpublic boolean isWritableProperty(java.lang.String propertyName)
propertyName - property to check status forpublic java.lang.Object getWrappedInstance()
public void setWrappedInstance(java.lang.Object obj)
throws BeansException
obj - wrapped object that we are manipulating
public void newWrappedInstance()
throws BeansException
public BeanWrapper newWrapper(java.lang.Object obj)
throws BeansException
public java.lang.Class getWrappedClass()
public void registerCustomEditor(java.lang.Class requiredType,
java.lang.String propertyPath,
java.beans.PropertyEditor propertyEditor)
requiredType - type of the property, can be null if a property is
given but should be specified in any case for consistency checkingpropertyPath - path of the property (name or nested path), or
null if registering an editor for all properties of the given typepropertyEditor - editor to register
public java.beans.PropertyEditor findCustomEditor(java.lang.Class requiredType,
java.lang.String propertyPath)
requiredType - type of the property, can be null if a property is
given but should be specified in any case for consistency checkingpropertyPath - path of the property (name or nested path), or
null if looking for an editor for all properties of the given typepublic void addVetoableChangeListener(java.beans.VetoableChangeListener l)
l - VetoableChangeListener notified of all property updatespublic void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
l - VetoableChangeListener to remove
public void addVetoableChangeListener(java.lang.String propertyName,
java.beans.VetoableChangeListener l)
l - VetoableChangeListener to addpropertyName - name of property this listeners will listen to updates for
public void removeVetoableChangeListener(java.lang.String propertyName,
java.beans.VetoableChangeListener l)
l - VetoableChangeListener to removepropertyName - name of property this listeners formerly listened to updates forpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - PropertyChangeListener notified of all property updatespublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - PropertyChangeListener to remove
public void addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener l)
propertyName - property the listener is interested inl - PropertyChangeListener notified of property updates to this property
public void removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener l)
propertyName - property the listener is interested inl - PropertyChangeListener to removepublic boolean isEventPropagationEnabled()
public void setEventPropagationEnabled(boolean flag)
flag - whether we notify listeners of property updates
public java.lang.Object invoke(java.lang.String methodName,
java.lang.Object[] args)
throws BeansException
methodName - name of the method to invokeargs - args to pass
|
[Deprecated API] | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | CURRENT API | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||