r25048: From the archives (patch found in one of my old working trees):
[jelmer/samba4-debian.git] / webapps / qooxdoo-0.6.5-sdk / frontend / framework / source / class / qx / component / init / AbstractInitComponent.js
1 /* ************************************************************************
2
3    qooxdoo - the new era of web development
4
5    http://qooxdoo.org
6
7    Copyright:
8      2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
9
10    License:
11      LGPL: http://www.gnu.org/licenses/lgpl.html
12      EPL: http://www.eclipse.org/org/documents/epl-v10.php
13      See the LICENSE file in the project's top-level directory for details.
14
15    Authors:
16      * Sebastian Werner (wpbasti)
17      * Andreas Ecker (ecker)
18
19 ************************************************************************ */
20
21 /* ************************************************************************
22
23 #module(core)
24
25 ************************************************************************ */
26
27 /**
28  * Abstract application initializer
29  */
30 qx.OO.defineClass("qx.component.init.AbstractInitComponent", qx.component.AbstractComponent,
31 function() {
32   qx.component.AbstractComponent.call(this);
33 });
34
35
36
37 /**
38  * Run initialisation part of component creation.
39  *
40  * @param e {Event} event object
41  */
42 qx.Proto.initialize = function(e) {
43   return qx.core.Init.getInstance().getApplicationInstance().initialize(e);
44 };
45
46
47 /**
48  * Run main  part of component creation.
49  *
50  * @param e {Event} event object
51  */
52 qx.Proto.main = function(e) {
53   return qx.core.Init.getInstance().getApplicationInstance().main(e);
54 };
55
56
57 /**
58  * Run finalization part of component creation.
59  *
60  * @param e {Event} event object
61  */
62 qx.Proto.finalize = function(e) {
63   return qx.core.Init.getInstance().getApplicationInstance().finalize(e);
64 };
65
66
67 /**
68  * Terminate this component.
69  *
70  * @param e {Event} event object
71  */
72 qx.Proto.close = function(e) {
73   return qx.core.Init.getInstance().getApplicationInstance().close(e);
74 };
75
76
77 /**
78  * Terminate this component.
79  *
80  * @param e {Event} event object
81  */
82 qx.Proto.terminate = function(e) {
83   return qx.core.Init.getInstance().getApplicationInstance().terminate(e);
84 };