private void addEntryTableToLayout(
        List<CmsAccessControlEntry> entries,
        VerticalLayout layout,
        boolean editable,
        boolean inheritedRes) {

        final CmsPermissionViewTable table = new CmsPermissionViewTable(
            m_cms,
            entries,
            editable,
            inheritedRes,
            m_parents,
            this);
        HorizontalLayout hl = new HorizontalLayout();
        Label label = new Label(
            CmsVaadinUtils.getMessageText(
                Messages.GUI_PERMISSION_COUNT_1,
                new Integer(table.getContainerDataSource().size())));
        label.addStyleName("o-report");
        hl.addComponent(label);
        TextField tableFilter = new TextField();
        tableFilter.setIcon(FontOpenCms.FILTER);
        tableFilter.setInputPrompt(CmsVaadinUtils.getMessageText(org.opencms.ui.apps.Messages.GUI_EXPLORER_FILTER_0));
        tableFilter.addStyleName(ValoTheme.TEXTFIELD_INLINE_ICON);
        tableFilter.setWidth("200px");
        tableFilter.addTextChangeListener(new TextChangeListener() {

            private static final long serialVersionUID = 1L;

            public void textChange(TextChangeEvent event) {

                table.filterTable(event.getText());
            }
        });
        hl.addComponent(tableFilter);
        hl.setWidth("100%");
        hl.setExpandRatio(label, 1);
        hl.setMargin(true);
        hl.setComponentAlignment(tableFilter, com.vaadin.ui.Alignment.MIDDLE_RIGHT);
        if (table.getContainerDataSource().size() == 0) {
            layout.addComponent(CmsVaadinUtils.getInfoLayout(Messages.GUI_PERMISSION_EMPTY_0));
        } else {
            layout.addComponent(hl);
            layout.addComponent(table);
            CmsVaadinUtils.centerWindow(this);
        }
    }
private void addEntryTableToLayout ( List < CmsAccessControlEntry > entries , VerticalLayout layout , boolean editable , boolean inheritedRes ) { final CmsPermissionViewTable table = new CmsPermissionViewTable ( m_cms , entries , editable , inheritedRes , m_parents , this ) ; HorizontalLayout hl = new HorizontalLayout ( ) ; Label label = new Label ( CmsVaadinUtils . getMessageText ( Messages . GUI_PERMISSION_COUNT_1 , new Integer ( table . getContainerDataSource ( ) . size ( ) ) ) ) ; label . addStyleName ( "o-report" ) ; hl . addComponent ( label ) ; TextField tableFilter = new TextField ( ) ; tableFilter . setIcon ( FontOpenCms . FILTER ) ; tableFilter . setInputPrompt ( CmsVaadinUtils . getMessageText ( org . opencms . ui . apps . Messages . GUI_EXPLORER_FILTER_0 ) ) ; tableFilter . addStyleName ( ValoTheme . TEXTFIELD_INLINE_ICON ) ; tableFilter . setWidth ( "200px" ) ; tableFilter . addTextChangeListener ( new TextChangeListener ( ) { private static final long serialVersionUID = 1L ; public void textChange ( TextChangeEvent event ) { table . filterTable ( event . getText ( ) ) ; } } ) ; hl . addComponent ( tableFilter ) ; hl . setWidth ( "100%" ) ; hl . setExpandRatio ( label , 1 ) ; hl . setMargin ( true ) ; hl . setComponentAlignment ( tableFilter , com . vaadin . ui . Alignment . MIDDLE_RIGHT ) ; if ( table . getContainerDataSource ( ) . size ( ) == 0 ) { layout . addComponent ( CmsVaadinUtils . getInfoLayout ( Messages . GUI_PERMISSION_EMPTY_0 ) ) ; } else { layout . addComponent ( hl ) ; layout . addComponent ( table ) ; CmsVaadinUtils . centerWindow ( this ) ; } }
Adds list of entries to layout.<p>

@param entries the ace list
@param layout layout
@param editable boolean
@param inheritedRes boolean