Toolkit Productivity Tools, Do not close window OptionDialog after pressing

Hello,
I have a question about the AddOn “Toolkit Productivity Tools.”
In fact for the “OptionDialog” component it be possible to control for example after pressing “OK” and possibly not close the “CustomDialog” if the control is not good?
What I mean exactly is that the button “OK” does not always close the window “OptionDialog.”
Is it possible?
Thank you for your help.

Hi everyone,
Maybe I’m not well expressed.
Here’s what I want to do:

[code]
OptionDialog dlg = new OptionDialog(TPTApplication.getCurrentApplication());
dlg.showConfirmationDialog(“Save”, “Do you want to save your changes?”,
new OptionDialog.OptionDialogResultListener() {
//Listner for Button OK
public void onclickButtonOK(){
//Make sure controls
//…
if(controleOK){
// execute treatment
//…
//close OptionDialog
dialogClosed(closeEvent);
}else{
//TODO
//Without closing the window
}
}

            @Override
            public void dialogClosed(OptionKind closeEvent) {
                        
            }

});
[/code]I seek similar event “onclickButtonOK”.
Does it exist?
Thank you for any help.