Class CmsDeleteWarningDialog

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.SourcesPopupEvents, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>, I_CmsAutoHider, I_CmsTruncable

    public class CmsDeleteWarningDialog
    extends CmsConfirmDialog
    A dialog which informs the user that deleting a resource will break links from other resources.

    Since:
    8.0.0
    • Constructor Detail

      • CmsDeleteWarningDialog

        public CmsDeleteWarningDialog​(org.opencms.util.CmsUUID structureId)
        Constructor.

        Parameters:
        structureId - the structure id of the resource going to be deleted
      • CmsDeleteWarningDialog

        public CmsDeleteWarningDialog​(java.lang.String sitePath)
        Constructor.

        Parameters:
        sitePath - the site-path of the resource going to be deleted
    • Method Detail

      • loadAndShow

        public void loadAndShow​(com.google.gwt.user.client.Command callback)
        Loads and shows the delete dialog.

        Parameters:
        callback - the callback that is executed when the resource was deleted (can be null)
      • deleteResource

        protected void deleteResource()
        Deletes a resource from the vfs.

      • displayBrokenLinks

        protected void displayBrokenLinks​(org.opencms.gwt.shared.CmsDeleteResourceBean brokenLinks)
        Displays the broken links information.

        Parameters:
        brokenLinks - the broken links information
      • onAfterDeletion

        protected void onAfterDeletion()
        Method which should be called after the deletion has been performed.