Package org.olat.core.gui

Examples of org.olat.core.gui.WindowManager


    mainvc.contextPut("o_winid", String.valueOf(mainPanel.getDispatchID()));
    // add jsMath library
    mainvc.contextPut("jsMathEnabled", Boolean.valueOf(jsMathEnabled));
    mainPanel.setContent(mainvc);

    WindowManager winman = Windows.getWindows(ureq).getWindowManager();
    wbo  = winman.createWindowBackOffice("basechiefwindow", this);
    Window w = wbo.getWindow();
   
    // part that builds the css and javascript lib includes (<script src="..."> and <rel link
    // e.g.
    // <script type="text/javascript" src="/demo/g/2/js/jscalendar/calendar.js"></script>

    mainvc.put("jsCssRawHtmlHeader", w.getJsCssRawHtmlHeader())
   
    // control part for ajax-communication. returns an empty panel if ajax is not enabled, so that ajax can be turned on on the fly for development mode
    jsServerC = wbo.createAJAXController(ureq);
    mainvc.put("jsServer", jsServerC.getInitialComponent())
   
    // init with no bookmark (=empty bc)
    mainvc.contextPut("o_bc", "");
   
    // the current language; used e.g. by screenreaders
    mainvc.contextPut("lang", ureq.getLocale().toString());

    // the current GUI theme and the global settings that contains the
    // font-size. both are pushed as objects so that window.dirty always reads
    // out the correct value
    mainvc.contextPut("theme", w.getGuiTheme());   
    mainvc.contextPut("globalSettings", winman.getGlobalSettings());   
   
    // content panel
    contentPanel = new Panel("olatContentPanel");
    mainvc.put("olatContentPanel", contentPanel);
    mainvc.contextPut("o_winid", Long.valueOf(w.getDispatchID()));
View Full Code Here

TOP

Related Classes of org.olat.core.gui.WindowManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.