Class CmsCategoriesTab

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.ValueChangeHandler<java.lang.String>, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, I_CmsTruncable

    public class CmsCategoriesTab
    extends A_CmsListTab
    Provides the widget for the categories tab.

    It displays the available categories in the given sort order.

    Since:
    8.0.
    • Method Detail

      • fillContent

        public void fillContent​(java.util.List<org.opencms.gwt.shared.CmsCategoryTreeEntry> categoryRoot,
                                java.util.List<java.lang.String> selected)
        Fill the content of the categories tab panel.

        Parameters:
        categoryRoot - the category tree root entry
        selected - the selected categories
      • isInitOpen

        public boolean isInitOpen()
        Returns the isInitOpen.

        Returns:
        the isInitOpen
      • openFirstLevel

        public void openFirstLevel()
        Opens the first level in the categories tree.

      • setInitOpen

        public void setInitOpen​(boolean isInitOpen)
        Sets the isInitOpen.

        Parameters:
        isInitOpen - the isInitOpen to set
      • uncheckCategories

        public void uncheckCategories​(java.util.List<java.lang.String> categories)
        Deselect the categories in the category list.

        Parameters:
        categories - the categories to deselect
      • updateContentList

        public void updateContentList​(java.util.List<org.opencms.gwt.shared.CmsCategoryBean> categoriesBeans,
                                      java.util.List<java.lang.String> selectedCategories)
        Updates the content of the categories list.

        Parameters:
        categoriesBeans - the updates list of categories tree item beans
        selectedCategories - the categories to select in the list by update
      • updateContentTree

        public void updateContentTree​(java.util.List<org.opencms.gwt.shared.CmsCategoryTreeEntry> treeEntries,
                                      java.util.List<java.lang.String> selectedCategories)
        Updates the content of th categories tree.

        Parameters:
        treeEntries - the root category entry
        selectedCategories - the categories to select after update