org.jbeans
Interface ConversionListener
- All Superinterfaces:
- EventListener
- All Known Implementing Classes:
- ConversionListenerAdapter
- public interface ConversionListener
- extends EventListener
This interface is the event listener interface for conversion
events. These events occur when a BeanProperty or similar class
is setting a property value and automatically converting the
property value to the correct type for the property.
The different types of events that this listener watchs are:
Before property value conversion when the property is being set
After property value conversion when the property is being set
After property value conversion when the conversion failed
- Author:
- Brian Pontarelli
handlePreConversion
public void handlePreConversion(ConversionEvent event)
- This handle method is called when the property value being set is going
to be auto-converted but has not been converted yet.
handlePostConversion
public void handlePostConversion(ConversionEvent event)
- This handle method is called when the property value being set has just been
successfully auto-converted
handleFailedConversion
public void handleFailedConversion(ConversionEvent event)
- This handle method is called when the property value being set has been
converted and the conversion failed