sync
[roojs1] / docs / symbols / Roo.util.Observable.json
1 {
2   "name" : "Roo.util.Observable",
3   "augments" : [],
4   "childClasses" : {
5     "Roo.bootstrap.nav.Item" : [
6       "Roo.bootstrap.nav.SidebarItem"
7     ],
8     "Roo.ContentPanel" : [
9       "Roo.GridPanel",
10       "Roo.NestedLayoutPanel",
11       "Roo.TreePanel"
12     ],
13     "Roo.LayoutRegion" : [
14       "Roo.SplitLayoutRegion",
15       "Roo.bootstrap.layout.Split"
16     ],
17     "Roo.form.Layout" : [
18       "Roo.form.Column",
19       "Roo.form.FieldSet",
20       "Roo.form.Row"
21     ],
22     "Roo.bootstrap.Column" : [
23       "Roo.bootstrap.TabGroup"
24     ],
25     "Roo.grid.EditorGrid" : [
26       "Roo.grid.PropertyGrid"
27     ],
28     "Roo.LayoutManager" : [
29       "Roo.BorderLayout"
30     ],
31     "Roo.dd.DropTarget" : [
32       "Roo.dd.DropZone"
33     ],
34     "Roo.bootstrap.Element" : [
35       "Roo.bootstrap.CardFooter",
36       "Roo.bootstrap.CardHeader",
37       "Roo.bootstrap.CardImageTop",
38       "Roo.bootstrap.DropTarget"
39     ],
40     "Roo.form.TriggerField" : [
41       "Roo.form.ComboBox",
42       "Roo.form.DateField",
43       "Roo.form.MonthField",
44       "Roo.form.Select"
45     ],
46     "Roo.form.ComboBox" : [
47       "Roo.form.ComboCheck",
48       "Roo.form.ComboNested"
49     ],
50     "Roo.View" : [
51       "Roo.JsonView"
52     ],
53     "Roo.data.DataProxy" : [
54       "Roo.data.HttpProxy"
55     ],
56     "Roo.menu.Menu" : [
57       "Roo.menu.ColorMenu",
58       "Roo.menu.DateMenu"
59     ],
60     "Roo.bootstrap.form.TriggerField" : [
61       "Roo.bootstrap.form.ComboBox",
62       "Roo.bootstrap.form.PhoneInput"
63     ],
64     "Roo.dd.DragDrop" : [
65       "Roo.dd.DD",
66       "Roo.dd.DDTarget"
67     ],
68     "Roo.tree.TreeNode" : [
69       "Roo.tree.AsyncTreeNode"
70     ],
71     "Roo.Button" : [
72       "Roo.SplitButton",
73       "Roo.Toolbar.Button"
74     ],
75     "Roo.util.Observable" : [
76       "Roo.BasicDialog",
77       "Roo.BasicLayoutRegion",
78       "Roo.Button",
79       "Roo.Component",
80       "Roo.ContentPanel",
81       "Roo.Document",
82       "Roo.LayoutManager",
83       "Roo.Resizable",
84       "Roo.SplitBar",
85       "Roo.TabPanel",
86       "Roo.TabPanelItem",
87       "Roo.UpdateManager",
88       "Roo.View",
89       "Roo.XComponent",
90       "Roo.bootstrap.SplitBar",
91       "Roo.bootstrap.layout.Basic",
92       "Roo.bootstrap.panel.Content",
93       "Roo.bootstrap.panel.TabItem",
94       "Roo.bootstrap.panel.Tabs",
95       "Roo.data.Connection",
96       "Roo.data.DataProxy",
97       "Roo.data.Node",
98       "Roo.data.Store",
99       "Roo.data.Tree",
100       "Roo.dd.DragDrop",
101       "Roo.form.BasicForm",
102       "Roo.grid.AbstractGridView",
103       "Roo.grid.AbstractSelectionModel",
104       "Roo.grid.ColumnModel",
105       "Roo.grid.Grid",
106       "Roo.grid.GridView",
107       "Roo.menu.Menu",
108       "Roo.tree.DefaultSelectionModel",
109       "Roo.tree.MultiSelectionModel",
110       "Roo.tree.TreeLoader",
111       "Roo.util.ClickRepeater",
112       "Roo.util.MixedCollection"
113     ],
114     "Roo.bootstrap.layout.Manager" : [
115       "Roo.bootstrap.layout.Border"
116     ],
117     "Roo.Component" : [
118       "Roo.BoxComponent",
119       "Roo.CalendarPanel",
120       "Roo.ColorPalette",
121       "Roo.DatePicker",
122       "Roo.Editor",
123       "Roo.HtmlEditorCore",
124       "Roo.bootstrap.Component",
125       "Roo.form.Layout",
126       "Roo.menu.BaseItem"
127     ],
128     "Roo.BorderLayout" : [
129       "Roo.ReaderLayout"
130     ],
131     "Roo.menu.Item" : [
132       "Roo.menu.CheckItem"
133     ],
134     "Roo.bootstrap.form.TextArea" : [
135       "Roo.bootstrap.form.HtmlEditor",
136       "Roo.bootstrap.form.Markdown"
137     ],
138     "Roo.form.Field" : [
139       "Roo.form.Checkbox",
140       "Roo.form.DayPicker",
141       "Roo.form.DisplayField",
142       "Roo.form.GridField",
143       "Roo.form.HtmlEditor",
144       "Roo.form.Signature",
145       "Roo.form.TextField"
146     ],
147     "Roo.form.BasicForm" : [
148       "Roo.form.Form"
149     ],
150     "Roo.SplitButton" : [
151       "Roo.Toolbar.SplitButton"
152     ],
153     "Roo.bootstrap.panel.Content" : [
154       "Roo.bootstrap.panel.Grid",
155       "Roo.bootstrap.panel.Nest"
156     ],
157     "Roo.BasicDialog" : [
158       "Roo.LayoutDialog"
159     ],
160     "Roo.menu.BaseItem" : [
161       "Roo.menu.Adapter",
162       "Roo.menu.Item",
163       "Roo.menu.Separator",
164       "Roo.menu.TextItem"
165     ],
166     "Roo.BoxComponent" : [
167       "Roo.form.ComboBoxArray.Item",
168       "Roo.form.Field",
169       "Roo.form.TextItem"
170     ],
171     "Roo.data.Store" : [
172       "Roo.data.JsonStore",
173       "Roo.data.SimpleStore"
174     ],
175     "Roo.dd.DDProxy" : [
176       "Roo.dd.DragSource",
177       "Roo.grid.SplitDragZone"
178     ],
179     "Roo.menu.Adapter" : [
180       "Roo.menu.ColorItem",
181       "Roo.menu.DateItem"
182     ],
183     "Roo.tree.TreePanel" : [
184       "Roo.tree.ColumnTree"
185     ],
186     "Roo.bootstrap.layout.Basic" : [
187       "Roo.bootstrap.layout.Region"
188     ],
189     "Roo.form.TextField" : [
190       "Roo.form.ComboBoxArray",
191       "Roo.form.Hidden",
192       "Roo.form.NumberField",
193       "Roo.form.TextArea",
194       "Roo.form.TriggerField"
195     ],
196     "Roo.form.Checkbox" : [
197       "Roo.form.Radio"
198     ],
199     "Roo.bootstrap.form.Input" : [
200       "Roo.bootstrap.form.CheckBox",
201       "Roo.bootstrap.form.DateField",
202       "Roo.bootstrap.form.MonthField",
203       "Roo.bootstrap.form.NumberField",
204       "Roo.bootstrap.form.RadioSet",
205       "Roo.bootstrap.form.SecurePass",
206       "Roo.bootstrap.form.TextArea",
207       "Roo.bootstrap.form.TimeField",
208       "Roo.bootstrap.form.TriggerField"
209     ],
210     "Roo.grid.AbstractSelectionModel" : [
211       "Roo.grid.CellSelectionModel",
212       "Roo.grid.RowSelectionModel"
213     ],
214     "Roo.bootstrap.form.ComboBox" : [
215       "Roo.bootstrap.form.MoneyField"
216     ],
217     "Roo.dd.DDTarget" : [
218       "Roo.dd.DropTarget"
219     ],
220     "Roo.bootstrap.Button" : [
221       "Roo.bootstrap.ButtonUploader",
222       "Roo.bootstrap.form.CardUploader"
223     ],
224     "Roo.bootstrap.Component" : [
225       "Roo.bootstrap.Alert",
226       "Roo.bootstrap.BezierSignature",
227       "Roo.bootstrap.Body",
228       "Roo.bootstrap.Brick",
229       "Roo.bootstrap.Button",
230       "Roo.bootstrap.ButtonGroup",
231       "Roo.bootstrap.Calendar",
232       "Roo.bootstrap.Card",
233       "Roo.bootstrap.Column",
234       "Roo.bootstrap.Container",
235       "Roo.bootstrap.DocumentManager",
236       "Roo.bootstrap.DocumentSlider",
237       "Roo.bootstrap.DocumentViewer",
238       "Roo.bootstrap.Element",
239       "Roo.bootstrap.Graph",
240       "Roo.bootstrap.Header",
241       "Roo.bootstrap.Img",
242       "Roo.bootstrap.LayoutMasonry",
243       "Roo.bootstrap.LayoutMasonryAuto",
244       "Roo.bootstrap.Link",
245       "Roo.bootstrap.LocationPicker",
246       "Roo.bootstrap.MasonryBrick",
247       "Roo.bootstrap.MessageBar",
248       "Roo.bootstrap.Modal",
249       "Roo.bootstrap.Pagination",
250       "Roo.bootstrap.PaginationItem",
251       "Roo.bootstrap.Popover",
252       "Roo.bootstrap.Progress",
253       "Roo.bootstrap.ProgressBar",
254       "Roo.bootstrap.Row",
255       "Roo.bootstrap.Slider",
256       "Roo.bootstrap.TabPanel",
257       "Roo.bootstrap.Table",
258       "Roo.bootstrap.TableBody",
259       "Roo.bootstrap.TableCell",
260       "Roo.bootstrap.TableRow",
261       "Roo.bootstrap.UploadCropbox",
262       "Roo.bootstrap.breadcrumb.Item",
263       "Roo.bootstrap.breadcrumb.Nav",
264       "Roo.bootstrap.dash.NumberBox",
265       "Roo.bootstrap.dash.TabBox",
266       "Roo.bootstrap.dash.TabPane",
267       "Roo.bootstrap.form.DateSplitField",
268       "Roo.bootstrap.form.FieldLabel",
269       "Roo.bootstrap.form.Form",
270       "Roo.bootstrap.form.Input",
271       "Roo.bootstrap.form.Radio",
272       "Roo.bootstrap.layout.Manager",
273       "Roo.bootstrap.menu.Item",
274       "Roo.bootstrap.menu.Menu",
275       "Roo.bootstrap.menu.Separator",
276       "Roo.bootstrap.nav.Bar",
277       "Roo.bootstrap.nav.Group",
278       "Roo.bootstrap.nav.Item",
279       "Roo.bootstrap.nav.ProgressBar",
280       "Roo.bootstrap.nav.ProgressBarItem"
281     ],
282     "Roo.data.Tree" : [
283       "Roo.tree.TreePanel"
284     ],
285     "Roo.dd.DD" : [
286       "Roo.dd.DDProxy"
287     ],
288     "Roo.form.TextArea" : [
289       "Roo.form.FCKeditor"
290     ],
291     "Roo.grid.Grid" : [
292       "Roo.grid.Calendar",
293       "Roo.grid.EditorGrid"
294     ],
295     "Roo.Editor" : [
296       "Roo.grid.GridEditor",
297       "Roo.tree.TreeEditor"
298     ],
299     "Roo.bootstrap.nav.Simplebar" : [
300       "Roo.bootstrap.PagingToolbar",
301       "Roo.bootstrap.PopoverNav",
302       "Roo.bootstrap.form.HtmlEditorToolbarStandard",
303       "Roo.bootstrap.nav.Headerbar"
304     ],
305     "Roo.data.Connection" : [
306       "Roo.Ajax"
307     ],
308     "Roo.dd.DragSource" : [
309       "Roo.dd.DragZone"
310     ],
311     "Roo.bootstrap.nav.Bar" : [
312       "Roo.bootstrap.nav.Sidebar",
313       "Roo.bootstrap.nav.Simplebar"
314     ],
315     "Roo.BasicLayoutRegion" : [
316       "Roo.LayoutRegion"
317     ],
318     "Roo.data.Node" : [
319       "Roo.tree.TreeNode"
320     ]
321   },
322   "tree_children" : [],
323   "tree_parent" : [],
324   "desc" : "Base class that provides a common interface for publishing events. Subclasses are expected to\nto have a property \"events\" with all the events defined.<br>\nFor example:\n<pre><code>\n Employee = function(name){\n    this.name = name;\n    this.addEvents({\n        \"fired\" : true,\n        \"quit\" : true\n    });\n }\n Roo.extend(Employee, Roo.util.Observable);\n</code></pre>",
325   "isSingleton" : false,
326   "isStatic" : true,
327   "isBuiltin" : false,
328   "isAbstract" : false,
329   "isBuilderTop" : false,
330   "memberOf" : "Observable",
331   "example" : "",
332   "deprecated" : "",
333   "since" : "",
334   "see" : "",
335   "params" : [
336     {
337       "name" : "config",
338       "type" : "Object",
339       "desc" : "properties to use (incuding events / listeners)",
340       "isOptional" : false
341     }
342   ],
343   "returns" : [],
344   "throws" : "",
345   "requires" : "",
346   "config" : [
347     {
348       "name" : "listeners",
349       "type" : "Object",
350       "desc" : "list of events and functions to call for this object, \nFor example :\n<pre><code>\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  </code></pre>",
351       "memberOf" : ""
352     }
353   ],
354   "methods" : [
355     {
356       "name" : "purgeListeners",
357       "type" : "function",
358       "desc" : "Removes all listeners for this object",
359       "sig" : "()\n{\n\n}",
360       "static" : false,
361       "memberOf" : "",
362       "isStatic" : false,
363       "isConstructor" : false,
364       "isPrivate" : false,
365       "example" : "",
366       "deprecated" : "",
367       "since" : "",
368       "see" : "",
369       "exceptions" : "",
370       "requires" : "",
371       "params" : [],
372       "returns" : []
373     },
374     {
375       "name" : "on",
376       "type" : "function",
377       "desc" : "Appends an event handler to this element (shorthand for addListener)",
378       "sig" : "(eventName, handler, scope, options)",
379       "static" : false,
380       "memberOf" : "",
381       "isStatic" : false,
382       "isConstructor" : false,
383       "isPrivate" : false,
384       "example" : "",
385       "deprecated" : "",
386       "since" : "",
387       "see" : "",
388       "exceptions" : "",
389       "requires" : "",
390       "params" : [
391         {
392           "name" : "eventName",
393           "type" : "String",
394           "desc" : "The type of event to listen for",
395           "isOptional" : false
396         },
397         {
398           "name" : "handler",
399           "type" : "Function",
400           "desc" : "The method the event invokes",
401           "isOptional" : false
402         },
403         {
404           "name" : "scope",
405           "type" : "Object",
406           "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
407           "isOptional" : false
408         },
409         {
410           "name" : "options",
411           "type" : "Object",
412           "desc" : "(optional)",
413           "isOptional" : false
414         }
415       ],
416       "returns" : []
417     },
418     {
419       "name" : "un",
420       "type" : "function",
421       "desc" : "Removes a listener (shorthand for removeListener)",
422       "sig" : "(eventName, handler, scope)",
423       "static" : false,
424       "memberOf" : "",
425       "isStatic" : false,
426       "isConstructor" : false,
427       "isPrivate" : false,
428       "example" : "",
429       "deprecated" : "",
430       "since" : "",
431       "see" : "",
432       "exceptions" : "",
433       "requires" : "",
434       "params" : [
435         {
436           "name" : "eventName",
437           "type" : "String",
438           "desc" : "The type of event to listen for",
439           "isOptional" : false
440         },
441         {
442           "name" : "handler",
443           "type" : "Function",
444           "desc" : "The handler to remove",
445           "isOptional" : false
446         },
447         {
448           "name" : "scope",
449           "type" : "Object",
450           "desc" : "(optional) The scope (this object) for the handler",
451           "isOptional" : false
452         }
453       ],
454       "returns" : []
455     },
456     {
457       "name" : "addEvents",
458       "type" : "function",
459       "desc" : "Used to define events on this Observable",
460       "sig" : "(object)",
461       "static" : false,
462       "memberOf" : "",
463       "isStatic" : false,
464       "isConstructor" : false,
465       "isPrivate" : false,
466       "example" : "",
467       "deprecated" : "",
468       "since" : "",
469       "see" : "",
470       "exceptions" : "",
471       "requires" : "",
472       "params" : [
473         {
474           "name" : "object",
475           "type" : "Object",
476           "desc" : "The object with the events defined",
477           "isOptional" : false
478         }
479       ],
480       "returns" : []
481     },
482     {
483       "name" : "releaseCapture",
484       "type" : "function",
485       "desc" : "Removes <b>all</b> added captures from the Observable.",
486       "sig" : "(o)",
487       "static" : true,
488       "memberOf" : "",
489       "isStatic" : true,
490       "isConstructor" : false,
491       "isPrivate" : false,
492       "example" : "",
493       "deprecated" : "",
494       "since" : "",
495       "see" : "",
496       "exceptions" : "",
497       "requires" : "",
498       "params" : [
499         {
500           "name" : "o",
501           "type" : "Observable",
502           "desc" : "The Observable to release",
503           "isOptional" : false
504         }
505       ],
506       "returns" : []
507     },
508     {
509       "name" : "removeListener",
510       "type" : "function",
511       "desc" : "Removes a listener",
512       "sig" : "(eventName, handler, scope)",
513       "static" : false,
514       "memberOf" : "",
515       "isStatic" : false,
516       "isConstructor" : false,
517       "isPrivate" : false,
518       "example" : "",
519       "deprecated" : "",
520       "since" : "",
521       "see" : "",
522       "exceptions" : "",
523       "requires" : "",
524       "params" : [
525         {
526           "name" : "eventName",
527           "type" : "String",
528           "desc" : "The type of event to listen for",
529           "isOptional" : false
530         },
531         {
532           "name" : "handler",
533           "type" : "Function",
534           "desc" : "The handler to remove",
535           "isOptional" : false
536         },
537         {
538           "name" : "scope",
539           "type" : "Object",
540           "desc" : "(optional) The scope (this object) for the handler",
541           "isOptional" : false
542         }
543       ],
544       "returns" : []
545     },
546     {
547       "name" : "fireEvent",
548       "type" : "function",
549       "desc" : "Fires the specified event with the passed parameters (minus the event name).",
550       "sig" : "(eventName, args)",
551       "static" : false,
552       "memberOf" : "",
553       "isStatic" : false,
554       "isConstructor" : false,
555       "isPrivate" : false,
556       "example" : "",
557       "deprecated" : "",
558       "since" : "",
559       "see" : "",
560       "exceptions" : "",
561       "requires" : "",
562       "params" : [
563         {
564           "name" : "eventName",
565           "type" : "String",
566           "desc" : "",
567           "isOptional" : false
568         },
569         {
570           "name" : "args",
571           "type" : "Object...",
572           "desc" : "Variable number of parameters are passed to handlers",
573           "isOptional" : false
574         }
575       ],
576       "returns" : [
577         {
578           "name" : "",
579           "type" : "Boolean",
580           "desc" : "returns false if any of the handlers return false otherwise it returns true"
581         }
582       ]
583     },
584     {
585       "name" : "hasListener",
586       "type" : "function",
587       "desc" : "Checks to see if this object has any listeners for a specified event",
588       "sig" : "(eventName)",
589       "static" : false,
590       "memberOf" : "",
591       "isStatic" : false,
592       "isConstructor" : false,
593       "isPrivate" : false,
594       "example" : "",
595       "deprecated" : "",
596       "since" : "",
597       "see" : "",
598       "exceptions" : "",
599       "requires" : "",
600       "params" : [
601         {
602           "name" : "eventName",
603           "type" : "String",
604           "desc" : "The name of the event to check for",
605           "isOptional" : false
606         }
607       ],
608       "returns" : [
609         {
610           "name" : "",
611           "type" : "Boolean",
612           "desc" : "True if the event is being listened for, else false"
613         }
614       ]
615     },
616     {
617       "name" : "capture",
618       "type" : "function",
619       "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.",
620       "sig" : "(o, fn, scope)",
621       "static" : true,
622       "memberOf" : "",
623       "isStatic" : true,
624       "isConstructor" : false,
625       "isPrivate" : false,
626       "example" : "",
627       "deprecated" : "",
628       "since" : "",
629       "see" : "",
630       "exceptions" : "",
631       "requires" : "",
632       "params" : [
633         {
634           "name" : "o",
635           "type" : "Observable",
636           "desc" : "The Observable to capture",
637           "isOptional" : false
638         },
639         {
640           "name" : "fn",
641           "type" : "Function",
642           "desc" : "The function to call",
643           "isOptional" : false
644         },
645         {
646           "name" : "scope",
647           "type" : "Object",
648           "desc" : "(optional) The scope (this object) for the fn",
649           "isOptional" : false
650         }
651       ],
652       "returns" : []
653     },
654     {
655       "name" : "addListener",
656       "type" : "function",
657       "desc" : "Appends an event handler to this component",
658       "sig" : "(eventName, handler, scope, options)",
659       "static" : false,
660       "memberOf" : "",
661       "isStatic" : false,
662       "isConstructor" : false,
663       "isPrivate" : false,
664       "example" : "",
665       "deprecated" : "",
666       "since" : "",
667       "see" : "",
668       "exceptions" : "",
669       "requires" : "",
670       "params" : [
671         {
672           "name" : "eventName",
673           "type" : "String",
674           "desc" : "The type of event to listen for",
675           "isOptional" : false
676         },
677         {
678           "name" : "handler",
679           "type" : "Function",
680           "desc" : "The method the event invokes",
681           "isOptional" : false
682         },
683         {
684           "name" : "scope",
685           "type" : "Object",
686           "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
687           "isOptional" : false
688         },
689         {
690           "name" : "options",
691           "type" : "Object",
692           "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:<ul>\n<li>scope {Object} The scope in which to execute the handler function. The handler function's \"this\" context.</li>\n<li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li>\n<li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li>\n<li>buffer {Number} Causes the handler to be scheduled to run in an {@link Roo.util.DelayedTask} delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>\n</ul><br>\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t<pre><code>\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n<pre><code>\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t</code></pre>\n<p>\nOr a shorthand syntax which passes the same scope object to all handlers:\n     \t<pre><code>\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t</code></pre>",
693           "isOptional" : false
694         }
695       ],
696       "returns" : []
697     }
698   ],
699   "events" : []
700 }