Basic HTML version of Foils prepared Aug 14 1997

Foil 11 Constrained Properties

From JavaBeans Examples UC Web applications Certificate -- Aug 11,14 97. by Nancy McCracken


A related concept is when another bean wants to have a possible veto over a change to a property.
The set method of the property throws an exception called java.beans.PropertyVetoException.
The object must also support (by having add and remove methods) a VetoableChangeListener.
Then each bean that wants to be able to veto property changes implements VetoableChangeListener.
If more than one bean wants to veto property changes, then it may be quite complicated to work out when to keep the old value or move to the new value.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Jan 8 1998