public void fillPreviewPanel(CmsImageInfoBean infoBean) {

        FlowPanel panel = new FlowPanel();
        panel.addStyleName(I_CmsLayoutBundle.INSTANCE.previewDialogCss().imagePanel());
        m_previewImage = new Image();
        if (CmsClientStringUtil.checkIsPathOrLinkToSvg(infoBean.getResourcePath())) {
            m_previewImage.getElement().getStyle().setWidth(100, Unit.PCT);
            m_previewImage.getElement().getStyle().setHeight(100, Unit.PCT);
        }
        StringBuffer urlScaled = new StringBuffer(128);
        String src = infoBean.getViewLink() != null
        ? infoBean.getViewLink()
        : CmsCoreProvider.get().link(infoBean.getResourcePath());
        urlScaled.append(src);
        String scalingParams = m_handler.getPreviewScaleParam(infoBean.getHeight(), infoBean.getWidth());
        urlScaled.append("?").append(scalingParams);
        // add time stamp to override image caching
        urlScaled.append("&time=").append(System.currentTimeMillis());
        m_previewImage.setUrl(urlScaled.toString());
        getHandler().getFocalPointController().updateImage(panel, m_previewImage);
        panel.add(m_previewImage);
        m_previewPanel.setWidget(panel);
    }
public void fillPreviewPanel ( CmsImageInfoBean infoBean ) { FlowPanel panel = new FlowPanel ( ) ; panel . addStyleName ( I_CmsLayoutBundle . INSTANCE . previewDialogCss ( ) . imagePanel ( ) ) ; m_previewImage = new Image ( ) ; if ( CmsClientStringUtil . checkIsPathOrLinkToSvg ( infoBean . getResourcePath ( ) ) ) { m_previewImage . getElement ( ) . getStyle ( ) . setWidth ( 100 , Unit . PCT ) ; m_previewImage . getElement ( ) . getStyle ( ) . setHeight ( 100 , Unit . PCT ) ; } StringBuffer urlScaled = new StringBuffer ( 128 ) ; String src = infoBean . getViewLink ( ) != null ? infoBean . getViewLink ( ) : CmsCoreProvider . get ( ) . link ( infoBean . getResourcePath ( ) ) ; urlScaled . append ( src ) ; String scalingParams = m_handler . getPreviewScaleParam ( infoBean . getHeight ( ) , infoBean . getWidth ( ) ) ; urlScaled . append ( "?" ) . append ( scalingParams ) ; urlScaled . append ( "&time=" ) . append ( System . currentTimeMillis ( ) ) ; m_previewImage . setUrl ( urlScaled . toString ( ) ) ; getHandler ( ) . getFocalPointController ( ) . updateImage ( panel , m_previewImage ) ; panel . add ( m_previewImage ) ; m_previewPanel . setWidget ( panel ) ; }
Fills the preview panel.<p>

@param infoBean the image info