public void forceCancelAndClose() {
   ICFDbTestOptFullRangeObj focus = getJavaFXFocusAsOptFullRange();
   if (cfFormManager != null) {
     if (cfFormManager.getCurrentForm() == this) {
       cfFormManager.closeCurrentForm();
     }
   }
   if (deleteCallback != null) {
     deleteCallback.formClosed(null);
   }
 }
 public void forceCancelAndClose() {
   ICFDbTestNmTokenTypeObj focus = getJavaFXFocusAsNmTokenType();
   if (focus != null) {
     ICFDbTestNmTokenTypeEditObj editObj = (ICFDbTestNmTokenTypeEditObj) focus.getEdit();
     if (editObj != null) {
       if (editObj.getIsNew()) {
         editObj.endEdit();
         setJavaFXFocus(null);
         setPaneMode(CFPane.PaneMode.Unknown);
       } else {
         editObj.endEdit();
         setPaneMode(CFPane.PaneMode.View);
       }
     }
   }
   if (cfFormManager != null) {
     if (cfFormManager.getCurrentForm() == this) {
       cfFormManager.closeCurrentForm();
     }
   }
   if (formClosedCallback != null) {
     formClosedCallback.formClosed(null);
   }
 }