Hi
Etienne,
I use the same mechanism in our projects and this
is one of the few open issues for our ULC 6.0.4 -> 6.1.1
migration.
Did
you receive any answer or solved your problem yourself?
Thanks
and regards,
Michael
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Im Auftrag von Etienne Studer
Gesendet: Freitag, 3. November 2006 22:26
An: [email protected]
Betreff: [ULC-developer] extending existing event listener interfaceHiHow can I migrate the classes below to ULC 6.1.1? These classes allow me to get notified about windowClosed() events. Even though I read the extension guide, I'm still confused in how to achieve this for my scenario of extending existing ULC core classes.Thanks for your help, Etiennepublic class CarinaWindowEvent extends WindowEvent {
public CarinaWindowEvent(Object inSource, int inEventId) {
super(inSource);
_eventId = inEventId;
}public void dispatch(IEventListener inListener) {
if (_eventId == SharedCarinaDialog.WINDOW_CLOSED) {
if (inListener instanceof ICarinaWindowListener) {
((ICarinaWindowListener) inListener).windowClosed(this);
}
} else {
super.dispatch(inListener);
}
}private final int _eventId;
}[...]
