protected void initContent(CmsLockReportInfo reportInfo) {

        FlowPanel content = new FlowPanel();

        m_resourceItem = new CmsListItemWidget(reportInfo.getResourceInfo());
        HeightHandler heightHandler = new HeightHandler();
        m_resourceItem.addOpenHandler(heightHandler);
        m_resourceItem.addCloseHandler(heightHandler);
        content.add(m_resourceItem);
        m_scrollPanel = new FlowPanel();
        m_scrollPanel.setStyleName(I_CmsLayoutBundle.INSTANCE.generalCss().border());
        m_scrollPanel.addStyleName(I_CmsLayoutBundle.INSTANCE.generalCss().cornerAll());
        m_scrollPanel.addStyleName(I_CmsLayoutBundle.INSTANCE.dialogCss().logReportScrollPanel());
        CmsList<CmsListItem> list = null;
        CmsMessageWidget message = new CmsMessageWidget();
        m_scrollPanel.add(message);
        message.setMessageText(
            getMessageForLock(
                reportInfo.getResourceInfo().getLockIcon(),
                !reportInfo.getLockedResourceInfos().isEmpty()));
        if (!reportInfo.getLockedResourceInfos().isEmpty()
            || ((reportInfo.getResourceInfo().getLockIcon() != null)
                && (reportInfo.getResourceInfo().getLockIcon() != LockIcon.NONE))) {
            m_unlockButton.setVisible(true);
        }
        // only show the unlock button if the resource or a descending resource is locked
        if (!reportInfo.getLockedResourceInfos().isEmpty()) {
            m_unlockButton.setText(Messages.get().key(Messages.GUI_UNLOCK_ALL_0));
            list = new CmsList<CmsListItem>();
            for (CmsListInfoBean lockedInfo : reportInfo.getLockedResourceInfos()) {
                CmsListItemWidget listItemWidget = new CmsListItemWidget(lockedInfo);
                listItemWidget.addOpenHandler(heightHandler);
                listItemWidget.addCloseHandler(heightHandler);
                list.addItem(new CmsListItem(listItemWidget));
            }
            m_scrollPanel.add(list);
        }

        content.add(m_scrollPanel);
        setMainContent(content);
        if (isShowing()) {
            m_resourceItem.truncate(TEXT_METRICS_KEY, CmsPopup.DEFAULT_WIDTH - 10);
            if (list != null) {
                list.truncate(TEXT_METRICS_KEY, CmsPopup.DEFAULT_WIDTH - 10);
            }
            adjustHeight();
        }
    }
protected void initContent ( CmsLockReportInfo reportInfo ) { FlowPanel content = new FlowPanel ( ) ; m_resourceItem = new CmsListItemWidget ( reportInfo . getResourceInfo ( ) ) ; HeightHandler heightHandler = new HeightHandler ( ) ; m_resourceItem . addOpenHandler ( heightHandler ) ; m_resourceItem . addCloseHandler ( heightHandler ) ; content . add ( m_resourceItem ) ; m_scrollPanel = new FlowPanel ( ) ; m_scrollPanel . setStyleName ( I_CmsLayoutBundle . INSTANCE . generalCss ( ) . border ( ) ) ; m_scrollPanel . addStyleName ( I_CmsLayoutBundle . INSTANCE . generalCss ( ) . cornerAll ( ) ) ; m_scrollPanel . addStyleName ( I_CmsLayoutBundle . INSTANCE . dialogCss ( ) . logReportScrollPanel ( ) ) ; CmsList < CmsListItem > list = null ; CmsMessageWidget message = new CmsMessageWidget ( ) ; m_scrollPanel . add ( message ) ; message . setMessageText ( getMessageForLock ( reportInfo . getResourceInfo ( ) . getLockIcon ( ) , ! reportInfo . getLockedResourceInfos ( ) . isEmpty ( ) ) ) ; if ( ! reportInfo . getLockedResourceInfos ( ) . isEmpty ( ) || ( ( reportInfo . getResourceInfo ( ) . getLockIcon ( ) != null ) && ( reportInfo . getResourceInfo ( ) . getLockIcon ( ) != LockIcon . NONE ) ) ) { m_unlockButton . setVisible ( true ) ; } if ( ! reportInfo . getLockedResourceInfos ( ) . isEmpty ( ) ) { m_unlockButton . setText ( Messages . get ( ) . key ( Messages . GUI_UNLOCK_ALL_0 ) ) ; list = new CmsList < CmsListItem > ( ) ; for ( CmsListInfoBean lockedInfo : reportInfo . getLockedResourceInfos ( ) ) { CmsListItemWidget listItemWidget = new CmsListItemWidget ( lockedInfo ) ; listItemWidget . addOpenHandler ( heightHandler ) ; listItemWidget . addCloseHandler ( heightHandler ) ; list . addItem ( new CmsListItem ( listItemWidget ) ) ; } m_scrollPanel . add ( list ) ; } content . add ( m_scrollPanel ) ; setMainContent ( content ) ; if ( isShowing ( ) ) { m_resourceItem . truncate ( TEXT_METRICS_KEY , CmsPopup . DEFAULT_WIDTH - 10 ) ; if ( list != null ) { list . truncate ( TEXT_METRICS_KEY , CmsPopup . DEFAULT_WIDTH - 10 ) ; } adjustHeight ( ) ; } }
Initializes the dialog content with the give report info.<p>

@param reportInfo the report info