Hi Etienne

As you already guessed, ULCDialog.setDefaultCloseOperation() only applies to 
situations where the user closes the dialog using the x (close) icon. (The same 
is true for the corresponding Swing API).

Moreover, please note that ULCDialog.dispose() can only be used to dispose a 
ULCDialog (and hence the client side dialog) through an API. This server-side 
method will NOT be called as a callback method when the user clicks the close 
icon and the default close operation is set to DISPOSE_ON_CLOSE.

Cheers
Rolf

**************************************
Rolf Pfenninger
Canoo Engineering AG
Kirschgartenstrasse 7
CH-4051 Basel
Tel +41 61 228 9444
Fax +41 61 228 9449
mailto:[EMAIL PROTECTED]
http://www.canoo.com

ULC - Rich Clients for J2EE
http://www.canoo.com/ulc
************************************** 
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Etienne Studer
Sent: Freitag, 20. Oktober 2006 19:16
To: [email protected]
Subject: [ULC-developer] DISPOSE_ON_CLOSE


Hi

Why do we set
ULCDialog.setDefaultCloseOperation(ULCCarinaDialog.DISPOSE_ON_CLOSE);

if
ULCDialog.dispose()
does not get called once the dialog is hidden through 
ULCDialog.setVisible(false)?

Or is the default close operation only dealing with the user closing the dialog 
using the X (close) icon?

Thanks for any clarification.

Etienne

Reply via email to