public void initUI(I_CmsAppUIContext context) {

        m_appContext = context;
        m_appContext.setAttribute(ATTR_KEY, this);
        m_appContext.setMenuDialogContext(
            new CmsExplorerDialogContext(ContextType.appToolbar, m_fileTable, this, null));
        HorizontalSplitPanel sp = new HorizontalSplitPanel();
        sp.setSizeFull();
        sp.setFirstComponent(m_fileTree);
        CmsFileExplorerSettings settings;
        try {
            settings = OpenCms.getWorkplaceAppManager().getAppSettings(
                A_CmsUI.getCmsObject(),
                CmsFileExplorerSettings.class);

            m_fileTable.setTableState(settings);
        } catch (Exception e) {
            LOG.error("Error while reading file explorer settings from user.", e);
        }
        sp.setSecondComponent(m_fileTable);

        sp.setSplitPosition(LAYOUT_SPLIT_POSITION, Unit.PIXELS);

        context.setAppContent(sp);
        context.showInfoArea(true);
        HorizontalLayout inf = new HorizontalLayout();
        inf.setSizeFull();
        inf.setSpacing(true);
        inf.setMargin(true);
        m_siteSelector.setWidth("379px");
        inf.addComponent(m_siteSelector);
        CssLayout crumbWrapper = new CssLayout();
        crumbWrapper.setSizeFull();
        crumbWrapper.setPrimaryStyleName(OpenCmsTheme.CRUMB_WRAPPER);
        crumbWrapper.addComponent(m_crumbs);

        m_infoPath.setWidth("100%");
        crumbWrapper.addComponent(m_infoPath);
        inf.addComponent(crumbWrapper);
        inf.setExpandRatio(crumbWrapper, 1);

        m_searchField.setWidth("200px");
        inf.addComponent(m_searchField);
        context.setAppInfo(inf);

        initToolbarButtons(context);
        m_fileTable.updateColumnWidths(A_CmsUI.get().getPage().getBrowserWindowWidth() - LAYOUT_SPLIT_POSITION);
    }
public void initUI ( I_CmsAppUIContext context ) { m_appContext = context ; m_appContext . setAttribute ( ATTR_KEY , this ) ; m_appContext . setMenuDialogContext ( new CmsExplorerDialogContext ( ContextType . appToolbar , m_fileTable , this , null ) ) ; HorizontalSplitPanel sp = new HorizontalSplitPanel ( ) ; sp . setSizeFull ( ) ; sp . setFirstComponent ( m_fileTree ) ; CmsFileExplorerSettings settings ; try { settings = OpenCms . getWorkplaceAppManager ( ) . getAppSettings ( A_CmsUI . getCmsObject ( ) , CmsFileExplorerSettings . class ) ; m_fileTable . setTableState ( settings ) ; } catch ( Exception e ) { LOG . error ( "Error while reading file explorer settings from user." , e ) ; } sp . setSecondComponent ( m_fileTable ) ; sp . setSplitPosition ( LAYOUT_SPLIT_POSITION , Unit . PIXELS ) ; context . setAppContent ( sp ) ; context . showInfoArea ( true ) ; HorizontalLayout inf = new HorizontalLayout ( ) ; inf . setSizeFull ( ) ; inf . setSpacing ( true ) ; inf . setMargin ( true ) ; m_siteSelector . setWidth ( "379px" ) ; inf . addComponent ( m_siteSelector ) ; CssLayout crumbWrapper = new CssLayout ( ) ; crumbWrapper . setSizeFull ( ) ; crumbWrapper . setPrimaryStyleName ( OpenCmsTheme . CRUMB_WRAPPER ) ; crumbWrapper . addComponent ( m_crumbs ) ; m_infoPath . setWidth ( "100%" ) ; crumbWrapper . addComponent ( m_infoPath ) ; inf . addComponent ( crumbWrapper ) ; inf . setExpandRatio ( crumbWrapper , 1 ) ; m_searchField . setWidth ( "200px" ) ; inf . addComponent ( m_searchField ) ; context . setAppInfo ( inf ) ; initToolbarButtons ( context ) ; m_fileTable . updateColumnWidths ( A_CmsUI . get ( ) . getPage ( ) . getBrowserWindowWidth ( ) - LAYOUT_SPLIT_POSITION ) ; }
@see org.opencms.ui.apps.I_CmsWorkplaceApp#initUI(org.opencms.ui.apps.I_CmsAppUIContext)