@Override
    protected Component getComponentForState(String state) {

        addToolbarButtons();

        m_table = new CmsResourceTypesTable(this);
        m_resourcetypeTableFilter = new TextField();
        m_resourcetypeTableFilter.setIcon(FontOpenCms.FILTER);
        m_resourcetypeTableFilter.setInputPrompt(
            Messages.get().getBundle(UI.getCurrent().getLocale()).key(Messages.GUI_EXPLORER_FILTER_0));
        m_resourcetypeTableFilter.addStyleName(ValoTheme.TEXTFIELD_INLINE_ICON);
        m_resourcetypeTableFilter.setWidth("200px");
        m_resourcetypeTableFilter.addTextChangeListener(new TextChangeListener() {

            private static final long serialVersionUID = 1L;

            public void textChange(TextChangeEvent event) {

                m_table.filterTable(event.getText());
            }
        });
        m_infoLayout.addComponent(m_resourcetypeTableFilter);
        m_rootLayout.setMainHeightFull(true);
        return m_table;
    }
@ Override protected Component getComponentForState ( String state ) { addToolbarButtons ( ) ; m_table = new CmsResourceTypesTable ( this ) ; m_resourcetypeTableFilter = new TextField ( ) ; m_resourcetypeTableFilter . setIcon ( FontOpenCms . FILTER ) ; m_resourcetypeTableFilter . setInputPrompt ( Messages . get ( ) . getBundle ( UI . getCurrent ( ) . getLocale ( ) ) . key ( Messages . GUI_EXPLORER_FILTER_0 ) ) ; m_resourcetypeTableFilter . addStyleName ( ValoTheme . TEXTFIELD_INLINE_ICON ) ; m_resourcetypeTableFilter . setWidth ( "200px" ) ; m_resourcetypeTableFilter . addTextChangeListener ( new TextChangeListener ( ) { private static final long serialVersionUID = 1L ; public void textChange ( TextChangeEvent event ) { m_table . filterTable ( event . getText ( ) ) ; } } ) ; m_infoLayout . addComponent ( m_resourcetypeTableFilter ) ; m_rootLayout . setMainHeightFull ( true ) ; return m_table ; }
@see org.opencms.ui.apps.A_CmsWorkplaceApp#getComponentForState(java.lang.String)