code: void cancelEdit() {
  
          // store the scroll position
          int scrollTop = RootPanel.getBodyElement().getOwnerDocument().getScrollTop();
          setEditorState(false);
          unlockResource();
          if (m_onClose != null) {
              m_onClose.execute(Boolean.valueOf(m_hasChangedSettings));
          }
          destroyForm(true);
          clearEditor();
          // restore the scroll position
          RootPanel.getBodyElement().getOwnerDocument().setScrollTop(scrollTop);
      }
docs: Cancels the editing process.<p>