Hello,
I need to use events in MIDP2.0, where EventObject class does not
exist. I have built a custom event WITHOUT using EventObject (see code
below: //Initially //Final) and, apparently, it has the same behaviour
as the same one extending this class. My question is:
Is it possible to build a custom event without extending EventObject
that has the same behaviour as one which extends class EventObject?
What am I missing?
//public class MyEvent extends EventObject {//Initialy
public class MyEvent {
Object _source; //Final
private MyEvent _myEvent;
public MyEvent( Object source, MyEvent myEvent ) {
//super( source );//Initially, but canīt do this now
_source=source; // now
_myEvent = myEvent;
}
public Object getSource(){ // This method was not here before, but
it is now
return _source;
}
Thank you,
P