synchronized boolean testAndSetIsDialogTerminatedEventDelivered(){
  boolean retval=this.dialogTerminatedEventDelivered;
  this.dialogTerminatedEventDelivered=true;
  return retval;
}

synchronized boolean testAndSetIsDialogTerminatedEventDelivered ( ) { boolean retval = this . dialogTerminatedEventDelivered ; this . dialogTerminatedEventDelivered = true ; return retval ; }
return true if a terminated event was delivered to the application as a result of the dialog termination .
