docs: public void leavePage(final String target) {
  
          if (!m_controller.hasPageChanged() || m_controller.isEditingDisabled()) {
              m_controller.leaveUnsaved(target);
              return;
          }
          CmsAcceptDeclineCancelDialog leavingDialog = getLeaveDialog();
          leavingDialog.setHandler(new I_CmsAcceptDeclineCancelHandler() {
  
              /**
               * @see org.opencms.gwt.client.ui.I_CmsAcceptDeclineCancelHandler#onAccept()
               */
              public void onAccept() {
  
                  m_controller.saveAndLeave(target);
              }
  
              /**
               * @see org.opencms.gwt.client.ui.I_CmsCloseDialogHandler#onClose()
               */
              public void onClose() {
  
                  deactivateCurrentButton();
                  activateSelection();
              }
  
              /**
               * @see org.opencms.gwt.client.ui.I_CmsAcceptDeclineCancelHandler#onDecline()
               */
              public void onDecline() {
  
                  m_controller.leaveUnsaved(target);
              }
          });
          leavingDialog.center();
      }