code: public void updateGalleryData(
          CmsGallerySearchBean searchObj,
          CmsGalleryDataBean dialogBean,
          CmsGalleryController controller) {
  
          if ((m_galleryDialog.getGalleriesTab() != null) && (dialogBean.getGalleries() != null)) {
              Collections.sort(dialogBean.getGalleries(), new CmsComparatorTitle(true));
              setGalleriesTabContent(dialogBean.getGalleries(), searchObj.getGalleries());
          }
          if ((m_galleryDialog.getTypesTab() != null) && (dialogBean.getTypes() != null)) {
              setTypesTabContent(controller.getSearchTypes(), searchObj.getTypes());
          }
          if ((m_galleryDialog.getCategoriesTab() != null) && (dialogBean.getCategories() != null)) {
              setCategoriesTabContent(dialogBean.getCategories(), searchObj.getCategories());
          }
      }
docs: Updates the gallery data.<p>
  
  @param searchObj the current search object
  @param dialogBean the gallery data
  @param controller he gallery controller