X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.EventManager.json;fp=docs%2Fsymbols%2FRoo.EventManager.json;h=def6ba95f9cff58251deef31d6dbed672ab37434;hb=9ff8ded6bbbd258ecd646184ba26020874e2c085;hp=0000000000000000000000000000000000000000;hpb=2542b67d1a0768025056f2f330bfe50b64d1ad38;p=roojs1 diff --git a/docs/symbols/Roo.EventManager.json b/docs/symbols/Roo.EventManager.json new file mode 100644 index 0000000000..def6ba95f9 --- /dev/null +++ b/docs/symbols/Roo.EventManager.json @@ -0,0 +1,324 @@ +{ + "name" : "Roo.EventManager", + "augments" : [ + ], + "desc" : "Registers event handlers that want to receive a normalized EventObject instead of the standard browser event and provides \nseveral useful events directly.\nSee {@link Roo.EventObject} for more details on normalized event objects.", + "isSingleton" : true, + "isStatic" : false, + "isBuiltin" : false, + "memberOf" : "EventManager", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + ], + "returns" : [ + ], + "config" : [ + ], + "methods" : [ + { + "name" : "addListener", + "desc" : "Appends an event handler to an element (shorthand for addListener)", + "isStatic" : true, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.EventManager", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "element", + "type" : "String/HTMLElement", + "desc" : "The html element or id to assign the", + "isOptional" : false + }, + { + "name" : "eventName", + "type" : "String", + "desc" : "The type of event to listen for", + "isOptional" : false + }, + { + "name" : "handler", + "type" : "Function", + "desc" : "The method the event invokes", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", + "isOptional" : false + }, + { + "name" : "options", + "type" : "Object", + "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)

\nCode:
\nel.on('click', this.onClick, this, {\n    single: true,\n    delay: 100,\n    stopEvent : true,\n    forumId: 4\n});
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\nCode:

\nel.on({\n    'click' : {\n        fn: this.onClick\n        scope: this,\n        delay: 100\n    },\n    'mouseover' : {\n        fn: this.onMouseOver\n        scope: this\n    },\n    'mouseout' : {\n        fn: this.onMouseOut\n        scope: this\n    }\n});
\n

\nOr a shorthand syntax:
\nCode:

\nel.on({\n    'click' : this.onClick,\n    'mouseover' : this.onMouseOver,\n    'mouseout' : this.onMouseOut\n    scope: this\n});
", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "onDocumentReady", + "desc" : "Fires when the document is ready (before onload and before images are loaded). Can be \naccessed shorthanded Roo.onReady().", + "isStatic" : true, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.EventManager", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "fn", + "type" : "Function", + "desc" : "The method the event invokes", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "An object that becomes the scope of the handler", + "isOptional" : false + }, + { + "name" : "options", + "type" : "boolean", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "onTextResize", + "desc" : "Fires when the user changes the active text size. Handler gets called with 2 params, the old size and the new size.", + "isStatic" : true, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.EventManager", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "fn", + "type" : "Function", + "desc" : "The method the event invokes", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "An object that becomes the scope of the handler", + "isOptional" : false + }, + { + "name" : "options", + "type" : "boolean", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "on", + "desc" : "Appends an event handler to an element (shorthand for addListener)", + "isStatic" : true, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.EventManager", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "element", + "type" : "String/HTMLElement", + "desc" : "The html element or id to assign the", + "isOptional" : false + }, + { + "name" : "eventName", + "type" : "String", + "desc" : "The type of event to listen for", + "isOptional" : false + }, + { + "name" : "handler", + "type" : "Function", + "desc" : "The method the event invokes", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", + "isOptional" : false + }, + { + "name" : "options", + "type" : "Object", + "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)

\nCode:
\nel.on('click', this.onClick, this, {\n    single: true,\n    delay: 100,\n    stopEvent : true,\n    forumId: 4\n});
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\nCode:

\nel.on({\n    'click' : {\n        fn: this.onClick\n        scope: this,\n        delay: 100\n    },\n    'mouseover' : {\n        fn: this.onMouseOver\n        scope: this\n    },\n    'mouseout' : {\n        fn: this.onMouseOut\n        scope: this\n    }\n});
\n

\nOr a shorthand syntax:
\nCode:

\nel.on({\n    'click' : this.onClick,\n    'mouseover' : this.onMouseOver,\n    'mouseout' : this.onMouseOut\n    scope: this\n});
", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "removeResizeListener", + "desc" : "Removes the passed window resize listener.", + "isStatic" : true, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.EventManager", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "fn", + "type" : "Function", + "desc" : "The method the event invokes", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "The scope of handler", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "onWindowResize", + "desc" : "Fires when the window is resized and provides resize event buffering (50 milliseconds), passes new viewport width and height to handlers.", + "isStatic" : true, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.EventManager", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "fn", + "type" : "Function", + "desc" : "The method the event invokes", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "An object that becomes the scope of the handler", + "isOptional" : false + }, + { + "name" : "options", + "type" : "boolean", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "wrap", + "desc" : "This is no longer needed and is deprecated. Places a simple wrapper around an event handler to override the browser event\nobject with a Roo.EventObject", + "isStatic" : true, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.EventManager", + "example" : "", + "deprecated" : "This has been deprecated: ", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "fn", + "type" : "Function", + "desc" : "The method the event invokes", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "An object that becomes the scope of the handler", + "isOptional" : false + }, + { + "name" : "override", + "type" : "boolean", + "desc" : "If true, the obj passed in becomes\n the execution scope of the listener", + "isOptional" : false + } + ], + "returns" : [ + { + "name" : "", + "type" : "Function", + "desc" : "The wrapped function" + } + ] + }, + { + "name" : "removeListener", + "desc" : "Removes an event handler", + "isStatic" : true, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.EventManager", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "element", + "type" : "String/HTMLElement", + "desc" : "The id or html element to remove the \n event from", + "isOptional" : false + }, + { + "name" : "eventName", + "type" : "String", + "desc" : "The type of event", + "isOptional" : false + }, + { + "name" : "fn", + "type" : "Function", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [ + { + "name" : "", + "type" : "Boolean", + "desc" : "True if a listener was actually removed" + } + ] + } + ], + "events" : [ + ] +} \ No newline at end of file