Interpreting QMessages (AMarqueeEvents)

All communications from the client TCP thread and the AMarquee server arrive at your application's doorstep in the form of QMessages.

To get them in your Java-program you must call the addAMarqueeListener(AMarqueeListener obj) method in the QSession object which you create. To it you pass a reference to the object which is to handle the events.
That class must implement the AMarqueeListener. From the AMarqueeEvent object which is passed to the AMarqueeListener-methods you can get the QMessage, which contains the interesting information, by calling the getQMessage() method.

For your convenience there's an Adapter class which implements the AMarqueeListener interface. It's called AMarqueeAdapter and by letting the message handling class extending it you don't need to implement every method.

The QMessage has many fields, all of which bear explanation. You can not get them directly because they are declared as private, but there are getX() methods.

Follow this link to see what you can get from the QMessage object!

Also follow this link to learn more about what events your program may get!

(c)Håkan Parting 1998. Last update 16th June 1998