[Figleaf-developer] Validation and Observable support
Status: Alpha
Brought to you by:
steckman
|
From: Greg S. <ste...@on...> - 2004-07-11 15:45:11
|
I was working on the drag-and-drop support and thought of another case to handle with the validation framework: a property is a collection, and an element gets added to the collection. The property setter isn't called. Only "get" is needed to get the collection, then the collection add method is used. This also applies to the Observable interface - intercepting the set call alone won't work. One solution would be to add "addElement" and "deleteElement" methods to the PropertyDescriptor. This gets more complicated when you start to consider what if the type is actually a Map, or some unknown custom aggregate type, etc. Greg |