I have an interface an interface for an event listener.
Now, in a class that sends the event to all listeners, I have this:
In other people's code (where I tried to figure out how to do this), this works fine. In my code, javac/jikes cannot find the eventChanged method due to eventListener being an interface.
Is there any way to call all methods that implement an interface by calling the interface? None of the registered listeners are known until registration, obviously.
This seems simple, but won't work...
thx,
gubmo
[This message was edited by gubmo on January 11, 2002 at 22:12.]
code:<HR>Code:public interface eventListener { public void eventChanged(Event event, int oldValue, int newValue) { } }
Now, in a class that sends the event to all listeners, I have this:
code:<HR>Code:eventListener el = (previously created event listener by intrested class); el.eventChanged(new Event, 0, 0);
In other people's code (where I tried to figure out how to do this), this works fine. In my code, javac/jikes cannot find the eventChanged method due to eventListener being an interface.
Is there any way to call all methods that implement an interface by calling the interface? None of the registered listeners are known until registration, obviously.
This seems simple, but won't work...
thx,
gubmo
[This message was edited by gubmo on January 11, 2002 at 22:12.]