Class CmsRestoreDialog

  • 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

    public class CmsRestoreDialog
    extends CmsPopup
    A dialog used for undoing changes to a resource and restoring it to its last published state.

    • Field Detail

      • m_structureId

        protected org.opencms.util.CmsUUID m_structureId
        The structure id of the resource to undo changes for.
    • Constructor Detail

      • CmsRestoreDialog

        public CmsRestoreDialog​(org.opencms.util.CmsUUID structureId,
                                java.lang.Runnable afterRestoreAction)
        Creates a new instance of this dialog.

        Parameters:
        structureId - the structure id of the resource which should be restored
        afterRestoreAction - the action which will be executed after the resource has been restored
    • Method Detail

      • loadAndShow

        public void loadAndShow()
        Loads the necessary data for the dialog from the server and shows the dialog.