On 01/24/2011 01:07 PM, Tudor Girba wrote:
Hi Lukas,

On 24 Jan 2011, at 15:57, Lukas Renggli wrote:

My main current question is what are the reasons for OBInteractionRequest to 
subclass Notification?

To be able to perform user interactions anywhere without having a
global OBPlatform instance, and without having to pass OBPlatform in
or store OBPlatform anywhere. There can be multiple UI platforms
active at the same time and they can even change over the lifetime of
a single browser window.

I am not sure I understand. Why did it have to be a subclass of Notification? 
Would it not be enough to have it as a subclass of Object?

Cheers,
Doru

Doru,

They are subclasses of Notification so that exception handlers can be used to intercept the notification and do something different than prompt the user for the request ... the defaultAction of the exception triggers the UI to prompt the user with an appropriate dialog box...

Dale

Reply via email to