Class CmsLockReportDialog

  • 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 final class CmsLockReportDialog
    extends CmsPopup
    The lock report dialog.

    Since:
    8.0.1
    • Method Detail

      • openDialogForResource

        public static void openDialogForResource​(java.lang.String title,
                                                 org.opencms.util.CmsUUID structureId,
                                                 com.google.gwt.user.client.Command onUnlock,
                                                 com.google.gwt.user.client.Command optionalOnCloseCommand)
        Opens the lock report dialog for the given resource.

        Parameters:
        title - the dialog title (will use a default value if null)
        structureId - the structure id of the resource
        onUnlock - the command to execute after the has been unlocked
        optionalOnCloseCommand - the optional command to execute when the lock report dialog is closed
      • adjustHeight

        protected void adjustHeight()
        Adjusts the height of the scroll panel.

      • getStructureId

        protected org.opencms.util.CmsUUID getStructureId()
        Returns the structure id of the resource to report on.

        Returns:
        the structure id
      • initContent

        protected void initContent​(org.opencms.gwt.shared.CmsLockReportInfo reportInfo)
        Initializes the dialog content with the give report info.

        Parameters:
        reportInfo - the report info
      • onUnlock

        protected void onUnlock()
        Executed on unlock.

      • unlock

        protected void unlock()
        Unlocks the resource and all descending resources.