Custom event without EventObject class
From: P (tortcam_at_hotmail.com)
Date: 01/26/04
- Next message: Ryan Stewart: "Re: .ChartRequest is an abstract class. It can't be instantiated."
- Previous message: Uncle Al: "Re: Mars Rover Not Responding"
- Next in thread: hiwa: "Re: Custom event without EventObject class"
- Reply: hiwa: "Re: Custom event without EventObject class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Jan 2004 09:21:20 -0800
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
- Next message: Ryan Stewart: "Re: .ChartRequest is an abstract class. It can't be instantiated."
- Previous message: Uncle Al: "Re: Mars Rover Not Responding"
- Next in thread: hiwa: "Re: Custom event without EventObject class"
- Reply: hiwa: "Re: Custom event without EventObject class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]