3 * (C) 2006 by Derrell Lipman
7 * LGPL 2.1: http://creativecommons.org/licenses/LGPL/2.1/
11 * Swat statistics class
13 qx.OO.defineClass("swat.module.documentation.Documentation",
14 swat.module.AbstractModule,
17 swat.module.AbstractModule.call(this);
22 * Load the documentation data
24 * This function is called the first time a module is actually selected to
25 * appear. Creation of the module's GUI has been deferred until it was
26 * actually needed (now), so we need to create it.
28 * @param module {Object} @see AbstractModule
30 qx.Proto.initialAppear = function(module)
32 qx.manager.object.AliasManager.getInstance().add("api", "./resource/image");
35 // (This is the hard way; I can't get qx.dom.StyleSheet.includeFile to load)
36 var el = document.createElement("link");
38 el.rel = "stylesheet";
39 el.href = "./resource/css/apiviewer.css";
40 var head = document.getElementsByTagName("head")[0];
43 // avoid redundant naming by api viewer
44 qx.Settings.setCustomOfClass("apiviewer.Viewer", "title", "");
46 var viewer = new api.Viewer();
47 module.canvas.add(viewer);
48 viewer.load("script/data.js");
53 * Singleton Instance Getter
55 qx.Class.getInstance = qx.util.Return.returnInstance;