1 Sys._Application.prototype.getForm = function Sys$_Application$getForm() {
\r
5 Sys.Application._form = {
\r
6 _application : Sys.Application
\r
10 _globalInstance : Sys.Application,
\r
11 notifyScriptLoaded : Sys.Application.notifyScriptLoaded,
\r
13 getInstance : function Sys$Application$getInstance(formElement) {
\r
14 /// <param name="formElement" domElement="true"></param>
\r
15 /// <returns type="Sys.Application"></returns>
\r
16 var e = Function._validateParams(arguments, [
\r
17 {name: "formElement", domElement: true}
\r
19 return formElement._application;
\r
22 _initialize : function Sys$Application$_initialize(formElement) {
\r
23 if (formElement._application) {
\r
24 throw Error.invalidOperation('The Application cannot be initialized more than once.');
\r
26 formElement._application = new Sys._Application();
\r
27 formElement._application._form = formElement;
\r
31 Sys.Component.prototype.registerWithApplication = function Sys$Component$registerWithApplication(application) {
\r
32 /// <param name="application" type="Sys._Application"></param>
\r
33 var e = Function._validateParams(arguments, [
\r
34 {name: "application", type: Sys._Application}
\r
37 if(this._application)
\r
39 this._application = application;
\r
40 application.registerDisposableObject(this)
\r
43 Sys.Component.prototype.registerAsSingleton = function Sys$Component$registerAsSingleton() {
\r
44 if (arguments.length !== 0) throw Error.parameterCount();
\r
45 this.registerWithApplication(Sys.Application._globalInstance);
\r
48 Sys.Component.prototype.getApplication = function Sys$Component$getApplication() {
\r
49 return this._application;
\r
52 var $create = Sys.Component.create = function Sys$Component$createWithForm(formElement, type, properties, events, references, element) {
\r
53 /// <param name="formElement" domElement="true"></param>
\r
54 /// <param name="type" type="Type"></param>
\r
55 /// <param name="properties" optional="true" mayBeNull="true"></param>
\r
56 /// <param name="events" optional="true" mayBeNull="true"></param>
\r
57 /// <param name="references" optional="true" mayBeNull="true"></param>
\r
58 /// <param name="element" domElement="true" optional="true" mayBeNull="true"></param>
\r
59 /// <returns type="Sys.UI.Component"></returns>
\r
60 var e = Function._validateParams(arguments, [
\r
61 {name: "formElement", domElement: true},
\r
62 {name: "type", type: Type},
\r
63 {name: "properties", mayBeNull: true, optional: true},
\r
64 {name: "events", mayBeNull: true, optional: true},
\r
65 {name: "references", mayBeNull: true, optional: true},
\r
66 {name: "element", mayBeNull: true, domElement: true, optional: true}
\r
70 return Sys.Component._createInternal(formElement._application, type, properties, events, references, element);
\r