r20365: SWAT updates, part 2
[jra/samba/.git] / swat / apps / swat / source / class / swat / module / statistics / Statistics.js
1 /*
2  * Copyright:
3  *   (C) 2006 by Derrell Lipman
4  *       All rights reserved
5  *
6  * License:
7  *   LGPL 2.1: http://creativecommons.org/licenses/LGPL/2.1/
8  */
9
10 /**
11  * Swat statistics class
12  */
13 qx.OO.defineClass("swat.module.statistics.Statistics",
14                   swat.module.AbstractModule,
15 function()
16 {
17   swat.module.AbstractModule.call(this);
18 });
19
20
21 /**
22  * Create the module's finite state machine and graphical user interface.
23  *
24  * This function is called the first time a module is actually selected to
25  * appear.  Creation of the module's actual FSM and GUI have been deferred
26  * until they were actually needed (now) so we need to create them.
27  *
28  * @param module {Object} @see AbstractModule
29  */
30 qx.Proto.initialAppear = function(module)
31 {
32   // Replace the existing (temporary) finite state machine with the real one
33   swat.module.statistics.Fsm.getInstance().buildFsm(module);
34
35   // Create the real gui
36   swat.module.statistics.Gui.getInstance().buildGui(module);
37 };
38
39
40 /**
41  * Singleton Instance Getter
42  */
43 qx.Class.getInstance = qx.util.Return.returnInstance;