Hi Marco
The createBasicObject() method of your UIDachBasicDialog class should pass the
basic parent window argument to the constructor of the basic dialog. This
ensures that the dialog is correctly bound to its parent (icon, ...):
Window parentWindow = getBasicParentWindow(args);
if (parentWindow instanceof Frame) {
return new MyBasicDialog((Frame)parentWindow);
} else if (parentWindow instanceof Dialog) {
return new MyBasicDialog((Dialog)parentWindow);
} else {
return new MyBasicDialog();
}
Please see the JavaDoc of UIDialog.createBasicObject().
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
> [EMAIL PROTECTED]
> Sent: Donnerstag, 14. Dezember 2006 11:18
> To: [EMAIL PROTECTED]
> Subject: [ULC-developer] ulcdialog, modal, setvisible, windowclosing
>
>
>
> Hi all,
> i have some questions about dialogs:
> if I use a dialog with a client-extension, the dialog doesn't
> stay modal(when I reopen the window) and is not using parent
> properties like symbol in titlebar.
> but I have changed client-side quite nothing??:
> public class UIDachBasicDialog extends UIDialog {
> protected Object createBasicObject(Object [] a){
> return new DachBasicDialog();
> }
>
> public class DachBasicDialog extends BasicDialog{
> }
> }
>
> I want to use a dialog for detail entries and if I close the
> dialog I want to add some information in my main frame.
> first solution: give dialog a reference from the main frame and
> manipulate values inside the dialog.
> I think this solution is not so clear.
> second solution: I would prefer a behaviour like the ulcalert
> component. I want to register the windowClosing event,
> check which button was pressed on the dialog and get the
> corresponding information from the dialog.
> But I have two problems: setvalue(false) from button is not
> fireing windowClosing event, also windowClosed
> and windowClosing event client-side don't fire.
> And I don't know how to get the information in the
> windowClosing event which button or "x" was pressed.
>
> has anybody further solutions or any ideas?
> I use ulc6.1.1 and ulc-ve6.0.0
> thx very much
> marco
>
>
> _______________________________________________
> ULC-developer mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/ulc-developer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer