private void addRevertColumn() {

        CmsButtonCell<CmsHistoryResourceBean> replaceCell = new CmsButtonCell<CmsHistoryResourceBean>(
            CmsHistoryMessages.titleRevert(),
            I_CmsButton.ICON_FONT + " " + I_CmsButton.RESET,
            new ActionCell.Delegate<CmsHistoryResourceBean>() {

                @SuppressWarnings("synthetic-access")
                public void execute(CmsHistoryResourceBean historyRes) {

                    m_handler.revert(historyRes);
                }
            },
            new Predicate<CmsHistoryResourceBean>() {

                public boolean apply(CmsHistoryResourceBean bean) {

                    return bean.getVersion().getVersionNumber() != null;

                }
            });
        addColumn(CmsHistoryMessages.columnReplace(), 30, new IdentityColumn<CmsHistoryResourceBean>(replaceCell));
    }
private void addRevertColumn ( ) { CmsButtonCell < CmsHistoryResourceBean > replaceCell = new CmsButtonCell < CmsHistoryResourceBean > ( CmsHistoryMessages . titleRevert ( ) , I_CmsButton . ICON_FONT + " " + I_CmsButton . RESET , new ActionCell . Delegate < CmsHistoryResourceBean > ( ) { @ SuppressWarnings ( "synthetic-access" ) public void execute ( CmsHistoryResourceBean historyRes ) { m_handler . revert ( historyRes ) ; } } , new Predicate < CmsHistoryResourceBean > ( ) { public boolean apply ( CmsHistoryResourceBean bean ) { return bean . getVersion ( ) . getVersionNumber ( ) != null ; } } ) ; addColumn ( CmsHistoryMessages . columnReplace ( ) , 30 , new IdentityColumn < CmsHistoryResourceBean > ( replaceCell ) ) ; }
Adds a table column.<p>