A
ValueModel implementation that avoids null values.
It wraps another ValueModel and returns a (non-null) default value
if the wrapped ValueModel returns null.
Note that value change events fired by this model may use null
as old and/or new value. This is because PropertyChangeEvents use null
to indicate that the old and/or new value is not provided by the event.
Note: This class is not yet part of the binary Binding
library; it comes with the Binding distributions as an extra.
The API is work in progress and may change without notice;
this class may even be completely removed from future distributions.
If you want to use this class, you may consider copying it into
your code base.
author: Karsten Lentzsch version: $Revision: 1.6 $ since: 1.1 |