[Essentialdata-discuss] RE: MROTable calculated column
Brought to you by:
dankib01
From: Kibler, D. (HQP) <Dan...@rh...> - 2005-02-02 23:14:43
|
Alex Thanks for the tip on the listeners. I now have it working on my table. = It's too bad ED doesn't support the generic style add listener methods. = It would save a lot of unnecessary code.=20 In implementing this, I think I've found another MROTable scroll bug. = I'll dig into it when I get a chance. If/when I find it, I'll post any = changes here as the project is not currently being maintained. Dan >As for your issue, MROTable will listen to PropertyChangeEvents from your objects, but it doesn"t respond to the "addPropertyChangeListener(PropertyChangeListener _listener)" generic method. (BTW, I don"t mean "generic" in the java 1.5 sense). What you need to use is the "add<Foo>Listener(PropertyChangeListener _listener)" where "foo" is the name of your property. Essentially, you need to have the add and remove methods for every changable field you want to be listened to. This is the same style as the "get<Foo>Validator" methods used for validation. |