Class CmsCategoryDialog

  • 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 CmsCategoryDialog
    extends CmsPopup
    Dialog to display and change resource categories.

    • Constructor Detail

      • CmsCategoryDialog

        public CmsCategoryDialog​(org.opencms.util.CmsUUID structureId,
                                 com.google.gwt.user.client.Command onSave,
                                 boolean collapsed)
        Constructor.

        Parameters:
        structureId - the resource structure id
        onSave - the on save command, called when categories have been changed
        collapsed - flag, indicating if the categories tree should be displayed collapsed when the dialog is opened
    • Method Detail

      • initialize

        public void initialize​(org.opencms.gwt.shared.CmsResourceCategoryInfo categoryInfo)
        Initializes the dialog content.

        Parameters:
        categoryInfo - the resource category info
      • saveCategories

        protected void saveCategories()
        Saves the selected categories and hides the dialog.