public CmsComplexWidgetData getWidgetData(CmsObject cms) {

        String configToUse = m_config;
        try {
            JSONObject json = new JSONObject(m_config);
            String icon = json.optString(CmsDataViewConstants.CONFIG_ICON);
            if (icon != null) {
                String iconLink = OpenCms.getLinkManager().substituteLinkForUnknownTarget(cms, icon);
                json.put(CmsDataViewConstants.CONFIG_ICON, iconLink);
                configToUse = json.toString();
            }
        } catch (Exception e) {
            LOG.error(e.getLocalizedMessage(), e);
        }

        return new CmsComplexWidgetData(CmsDataViewConstants.RENDERER_ID, configToUse, null);
    }
public CmsComplexWidgetData getWidgetData ( CmsObject cms ) { String configToUse = m_config ; try { JSONObject json = new JSONObject ( m_config ) ; String icon = json . optString ( CmsDataViewConstants . CONFIG_ICON ) ; if ( icon != null ) { String iconLink = OpenCms . getLinkManager ( ) . substituteLinkForUnknownTarget ( cms , icon ) ; json . put ( CmsDataViewConstants . CONFIG_ICON , iconLink ) ; configToUse = json . toString ( ) ; } } catch ( Exception e ) { LOG . error ( e . getLocalizedMessage ( ) , e ) ; } return new CmsComplexWidgetData ( CmsDataViewConstants . RENDERER_ID , configToUse , null ) ; }
@see org.opencms.widgets.I_CmsComplexWidget#getWidgetData(org.opencms.file.CmsObject)