pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jérôme Serré <jerome.michel.se...@gmail.com>
Subject DialogStateListener
Date Wed, 20 Jul 2011 15:57:22 GMT
Hello,

 

I’m trying to use a DialogStateListener but it doesn’t work !

When the window (dialog) closes the methods :

 

public void dialogCloseVetoed(Dialog arg0, Vote arg1) {

and

public Vote previewDialogClose(Dialog arg0, boolean arg1) {

are never call, only this is call

public void dialogClosed(Dialog dialog, boolean modal) {

 

What is wrong in may code ?

Someone can help me ?

 

Thank you

 

Jérôme

 

final WindowActivite windowActivite =
(WindowActivite)wtkxSerializer.readObject(WindowActivite.class.getResource("
/applet/activite.bxml"), resources);

             DialogStateListener dsl = (new DialogStateListener() {

                    public void dialogClosed(Dialog dialog, boolean modal) {

                           System.out.println("dialogClosed");

                                  

                    }

                     @Override

                    public void dialogCloseVetoed(Dialog arg0, Vote arg1) {

                          System.out.println("dialogCloseVetoed");

                          System.out.println("vote: " + arg1);

                    }

                    @Override

                    public Vote previewDialogClose(Dialog arg0, boolean
arg1) {

                           System.out.println("previewDialogClose");

                           System.out.println("boolean: " + arg1);

                           return Vote.APPROVE;

                    }

             });

             windowActivite.open(window, dsl);

 

 

 

 

 

____________________________

Manage your cellar

 <http://46.237.215.228:8000/cave> Ma cave

 

 


Mime
View raw message