fix docs add optvalues
[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" : false,
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       "isOptional" : false,
353       "optvalues" : []
354     }
355   ],
356   "methods" : [
357     {
358       "name" : "purgeListeners",
359       "type" : "function",
360       "desc" : "Removes all listeners for this object",
361       "sig" : "()\n{\n\n}",
362       "static" : false,
363       "memberOf" : "",
364       "isStatic" : false,
365       "isConstructor" : false,
366       "isPrivate" : false,
367       "example" : "",
368       "deprecated" : "",
369       "since" : "",
370       "see" : "",
371       "exceptions" : "",
372       "requires" : "",
373       "params" : [],
374       "returns" : []
375     },
376     {
377       "name" : "on",
378       "type" : "function",
379       "desc" : "Appends an event handler to this element (shorthand for addListener)",
380       "sig" : "(eventName, handler, scope, options)",
381       "static" : false,
382       "memberOf" : "",
383       "isStatic" : false,
384       "isConstructor" : false,
385       "isPrivate" : false,
386       "example" : "",
387       "deprecated" : "",
388       "since" : "",
389       "see" : "",
390       "exceptions" : "",
391       "requires" : "",
392       "params" : [
393         {
394           "name" : "eventName",
395           "type" : "String",
396           "desc" : "The type of event to listen for",
397           "isOptional" : false
398         },
399         {
400           "name" : "handler",
401           "type" : "Function",
402           "desc" : "The method the event invokes",
403           "isOptional" : false
404         },
405         {
406           "name" : "scope",
407           "type" : "Object",
408           "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
409           "isOptional" : false
410         },
411         {
412           "name" : "options",
413           "type" : "Object",
414           "desc" : "(optional)",
415           "isOptional" : false
416         }
417       ],
418       "returns" : []
419     },
420     {
421       "name" : "un",
422       "type" : "function",
423       "desc" : "Removes a listener (shorthand for removeListener)",
424       "sig" : "(eventName, handler, scope)",
425       "static" : false,
426       "memberOf" : "",
427       "isStatic" : false,
428       "isConstructor" : false,
429       "isPrivate" : false,
430       "example" : "",
431       "deprecated" : "",
432       "since" : "",
433       "see" : "",
434       "exceptions" : "",
435       "requires" : "",
436       "params" : [
437         {
438           "name" : "eventName",
439           "type" : "String",
440           "desc" : "The type of event to listen for",
441           "isOptional" : false
442         },
443         {
444           "name" : "handler",
445           "type" : "Function",
446           "desc" : "The handler to remove",
447           "isOptional" : false
448         },
449         {
450           "name" : "scope",
451           "type" : "Object",
452           "desc" : "(optional) The scope (this object) for the handler",
453           "isOptional" : false
454         }
455       ],
456       "returns" : []
457     },
458     {
459       "name" : "addEvents",
460       "type" : "function",
461       "desc" : "Used to define events on this Observable",
462       "sig" : "(object)",
463       "static" : false,
464       "memberOf" : "",
465       "isStatic" : false,
466       "isConstructor" : false,
467       "isPrivate" : false,
468       "example" : "",
469       "deprecated" : "",
470       "since" : "",
471       "see" : "",
472       "exceptions" : "",
473       "requires" : "",
474       "params" : [
475         {
476           "name" : "object",
477           "type" : "Object",
478           "desc" : "The object with the events defined",
479           "isOptional" : false
480         }
481       ],
482       "returns" : []
483     },
484     {
485       "name" : "releaseCapture",
486       "type" : "function",
487       "desc" : "Removes <b>all</b> added captures from the Observable.",
488       "sig" : "(o)",
489       "static" : true,
490       "memberOf" : "",
491       "isStatic" : true,
492       "isConstructor" : false,
493       "isPrivate" : false,
494       "example" : "",
495       "deprecated" : "",
496       "since" : "",
497       "see" : "",
498       "exceptions" : "",
499       "requires" : "",
500       "params" : [
501         {
502           "name" : "o",
503           "type" : "Observable",
504           "desc" : "The Observable to release",
505           "isOptional" : false
506         }
507       ],
508       "returns" : []
509     },
510     {
511       "name" : "removeListener",
512       "type" : "function",
513       "desc" : "Removes a listener",
514       "sig" : "(eventName, handler, scope)",
515       "static" : false,
516       "memberOf" : "",
517       "isStatic" : false,
518       "isConstructor" : false,
519       "isPrivate" : false,
520       "example" : "",
521       "deprecated" : "",
522       "since" : "",
523       "see" : "",
524       "exceptions" : "",
525       "requires" : "",
526       "params" : [
527         {
528           "name" : "eventName",
529           "type" : "String",
530           "desc" : "The type of event to listen for",
531           "isOptional" : false
532         },
533         {
534           "name" : "handler",
535           "type" : "Function",
536           "desc" : "The handler to remove",
537           "isOptional" : false
538         },
539         {
540           "name" : "scope",
541           "type" : "Object",
542           "desc" : "(optional) The scope (this object) for the handler",
543           "isOptional" : false
544         }
545       ],
546       "returns" : []
547     },
548     {
549       "name" : "fireEvent",
550       "type" : "function",
551       "desc" : "Fires the specified event with the passed parameters (minus the event name).",
552       "sig" : "(eventName, args)",
553       "static" : false,
554       "memberOf" : "",
555       "isStatic" : false,
556       "isConstructor" : false,
557       "isPrivate" : false,
558       "example" : "",
559       "deprecated" : "",
560       "since" : "",
561       "see" : "",
562       "exceptions" : "",
563       "requires" : "",
564       "params" : [
565         {
566           "name" : "eventName",
567           "type" : "String",
568           "desc" : "",
569           "isOptional" : false
570         },
571         {
572           "name" : "args",
573           "type" : "Object...",
574           "desc" : "Variable number of parameters are passed to handlers",
575           "isOptional" : false
576         }
577       ],
578       "returns" : [
579         {
580           "name" : "",
581           "type" : "Boolean",
582           "desc" : "returns false if any of the handlers return false otherwise it returns true"
583         }
584       ]
585     },
586     {
587       "name" : "hasListener",
588       "type" : "function",
589       "desc" : "Checks to see if this object has any listeners for a specified event",
590       "sig" : "(eventName)",
591       "static" : false,
592       "memberOf" : "",
593       "isStatic" : false,
594       "isConstructor" : false,
595       "isPrivate" : false,
596       "example" : "",
597       "deprecated" : "",
598       "since" : "",
599       "see" : "",
600       "exceptions" : "",
601       "requires" : "",
602       "params" : [
603         {
604           "name" : "eventName",
605           "type" : "String",
606           "desc" : "The name of the event to check for",
607           "isOptional" : false
608         }
609       ],
610       "returns" : [
611         {
612           "name" : "",
613           "type" : "Boolean",
614           "desc" : "True if the event is being listened for, else false"
615         }
616       ]
617     },
618     {
619       "name" : "capture",
620       "type" : "function",
621       "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.",
622       "sig" : "(o, fn, scope)",
623       "static" : true,
624       "memberOf" : "",
625       "isStatic" : true,
626       "isConstructor" : false,
627       "isPrivate" : false,
628       "example" : "",
629       "deprecated" : "",
630       "since" : "",
631       "see" : "",
632       "exceptions" : "",
633       "requires" : "",
634       "params" : [
635         {
636           "name" : "o",
637           "type" : "Observable",
638           "desc" : "The Observable to capture",
639           "isOptional" : false
640         },
641         {
642           "name" : "fn",
643           "type" : "Function",
644           "desc" : "The function to call",
645           "isOptional" : false
646         },
647         {
648           "name" : "scope",
649           "type" : "Object",
650           "desc" : "(optional) The scope (this object) for the fn",
651           "isOptional" : false
652         }
653       ],
654       "returns" : []
655     },
656     {
657       "name" : "addListener",
658       "type" : "function",
659       "desc" : "Appends an event handler to this component",
660       "sig" : "(eventName, handler, scope, options)",
661       "static" : false,
662       "memberOf" : "",
663       "isStatic" : false,
664       "isConstructor" : false,
665       "isPrivate" : false,
666       "example" : "",
667       "deprecated" : "",
668       "since" : "",
669       "see" : "",
670       "exceptions" : "",
671       "requires" : "",
672       "params" : [
673         {
674           "name" : "eventName",
675           "type" : "String",
676           "desc" : "The type of event to listen for",
677           "isOptional" : false
678         },
679         {
680           "name" : "handler",
681           "type" : "Function",
682           "desc" : "The method the event invokes",
683           "isOptional" : false
684         },
685         {
686           "name" : "scope",
687           "type" : "Object",
688           "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
689           "isOptional" : false
690         },
691         {
692           "name" : "options",
693           "type" : "Object",
694           "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>",
695           "isOptional" : false
696         }
697       ],
698       "returns" : []
699     }
700   ],
701   "events" : []
702 }