@Override
    public List<CmsSearchParamPanel> getParamPanels(CmsGallerySearchBean searchObj) {

        List<CmsSearchParamPanel> result = new ArrayList<CmsSearchParamPanel>();
        for (String categoryPath : searchObj.getCategories()) {
            CmsCategoryBean categoryItem = m_categories.get(categoryPath);
            String title = "";
            if (categoryItem != null) {
                title = categoryItem.getTitle();
            }
            if (CmsStringUtil.isEmptyOrWhitespaceOnly(title)) {
                title = categoryPath;
            }
            CmsSearchParamPanel panel = new CmsSearchParamPanel(
                Messages.get().key(Messages.GUI_PARAMS_LABEL_CATEGORIES_0),
                this);
            panel.setContent(title, categoryPath);
            result.add(panel);
        }
        return result;
    }
@ Override public List < CmsSearchParamPanel > getParamPanels ( CmsGallerySearchBean searchObj ) { List < CmsSearchParamPanel > result = new ArrayList < CmsSearchParamPanel > ( ) ; for ( String categoryPath : searchObj . getCategories ( ) ) { CmsCategoryBean categoryItem = m_categories . get ( categoryPath ) ; String title = "" ; if ( categoryItem != null ) { title = categoryItem . getTitle ( ) ; } if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( title ) ) { title = categoryPath ; } CmsSearchParamPanel panel = new CmsSearchParamPanel ( Messages . get ( ) . key ( Messages . GUI_PARAMS_LABEL_CATEGORIES_0 ) , this ) ; panel . setContent ( title , categoryPath ) ; result . add ( panel ) ; } return result ; }
@see org.opencms.ade.galleries.client.ui.A_CmsTab#getParamPanels(org.opencms.ade.galleries.shared.CmsGallerySearchBean)