sync
[roojs1] / docs / symbols / Roo.grid.AbstractSelectionModel.json
1 {
2   "name" : "Roo.grid.AbstractSelectionModel",
3   "augments" : [
4     "Roo.util.Observable"
5   ],
6   "childClasses" : {
7     "Roo.grid.AbstractSelectionModel" : [
8       "Roo.grid.CellSelectionModel",
9       "Roo.grid.RowSelectionModel"
10     ]
11   },
12   "tree_children" : [],
13   "tree_parent" : [],
14   "desc" : "Abstract base class for grid SelectionModels.  It provides the interface that should be\nimplemented by descendant classes.  This class should not be directly instantiated.",
15   "isSingleton" : false,
16   "isStatic" : true,
17   "isBuiltin" : false,
18   "isAbstract" : true,
19   "isBuilderTop" : false,
20   "memberOf" : "AbstractSelectionModel",
21   "example" : "",
22   "deprecated" : "",
23   "since" : "",
24   "see" : "",
25   "params" : [],
26   "returns" : [],
27   "throws" : "",
28   "requires" : "",
29   "config" : [
30     {
31       "name" : "listeners",
32       "type" : "Object",
33       "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>",
34       "memberOf" : "Roo.util.Observable"
35     }
36   ],
37   "methods" : [
38     {
39       "name" : "lock",
40       "type" : "function",
41       "desc" : "Locks the selections.",
42       "sig" : "()\n{\n\n}",
43       "static" : false,
44       "memberOf" : "",
45       "isStatic" : false,
46       "isConstructor" : false,
47       "isPrivate" : false,
48       "example" : "",
49       "deprecated" : "",
50       "since" : "",
51       "see" : "",
52       "exceptions" : "",
53       "requires" : "",
54       "params" : [],
55       "returns" : []
56     },
57     {
58       "name" : "isLocked",
59       "type" : "function",
60       "desc" : "Returns true if the selections are locked.",
61       "sig" : "()\n{\n\n}",
62       "static" : false,
63       "memberOf" : "",
64       "isStatic" : false,
65       "isConstructor" : false,
66       "isPrivate" : false,
67       "example" : "",
68       "deprecated" : "",
69       "since" : "",
70       "see" : "",
71       "exceptions" : "",
72       "requires" : "",
73       "params" : [],
74       "returns" : [
75         {
76           "name" : "",
77           "type" : "Boolean",
78           "desc" : ""
79         }
80       ]
81     },
82     {
83       "name" : "unlock",
84       "type" : "function",
85       "desc" : "Unlocks the selections.",
86       "sig" : "()\n{\n\n}",
87       "static" : false,
88       "memberOf" : "",
89       "isStatic" : false,
90       "isConstructor" : false,
91       "isPrivate" : false,
92       "example" : "",
93       "deprecated" : "",
94       "since" : "",
95       "see" : "",
96       "exceptions" : "",
97       "requires" : "",
98       "params" : [],
99       "returns" : []
100     },
101     {
102       "name" : "purgeListeners",
103       "type" : "function",
104       "desc" : "Removes all listeners for this object",
105       "sig" : "()\n{\n\n}",
106       "static" : false,
107       "memberOf" : "Roo.util.Observable",
108       "isStatic" : false,
109       "isConstructor" : false,
110       "isPrivate" : false,
111       "example" : "",
112       "deprecated" : "",
113       "since" : "",
114       "see" : "",
115       "exceptions" : "",
116       "requires" : "",
117       "params" : [],
118       "returns" : []
119     },
120     {
121       "name" : "on",
122       "type" : "function",
123       "desc" : "Appends an event handler to this element (shorthand for addListener)",
124       "sig" : "(eventName, handler, scope, options)",
125       "static" : false,
126       "memberOf" : "Roo.util.Observable",
127       "isStatic" : false,
128       "isConstructor" : false,
129       "isPrivate" : false,
130       "example" : "",
131       "deprecated" : "",
132       "since" : "",
133       "see" : "",
134       "exceptions" : "",
135       "requires" : "",
136       "params" : [
137         {
138           "name" : "eventName",
139           "type" : "String",
140           "desc" : "The type of event to listen for",
141           "isOptional" : false
142         },
143         {
144           "name" : "handler",
145           "type" : "Function",
146           "desc" : "The method the event invokes",
147           "isOptional" : false
148         },
149         {
150           "name" : "scope",
151           "type" : "Object",
152           "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
153           "isOptional" : false
154         },
155         {
156           "name" : "options",
157           "type" : "Object",
158           "desc" : "(optional)",
159           "isOptional" : false
160         }
161       ],
162       "returns" : []
163     },
164     {
165       "name" : "un",
166       "type" : "function",
167       "desc" : "Removes a listener (shorthand for removeListener)",
168       "sig" : "(eventName, handler, scope)",
169       "static" : false,
170       "memberOf" : "Roo.util.Observable",
171       "isStatic" : false,
172       "isConstructor" : false,
173       "isPrivate" : false,
174       "example" : "",
175       "deprecated" : "",
176       "since" : "",
177       "see" : "",
178       "exceptions" : "",
179       "requires" : "",
180       "params" : [
181         {
182           "name" : "eventName",
183           "type" : "String",
184           "desc" : "The type of event to listen for",
185           "isOptional" : false
186         },
187         {
188           "name" : "handler",
189           "type" : "Function",
190           "desc" : "The handler to remove",
191           "isOptional" : false
192         },
193         {
194           "name" : "scope",
195           "type" : "Object",
196           "desc" : "(optional) The scope (this object) for the handler",
197           "isOptional" : false
198         }
199       ],
200       "returns" : []
201     },
202     {
203       "name" : "addEvents",
204       "type" : "function",
205       "desc" : "Used to define events on this Observable",
206       "sig" : "(object)",
207       "static" : false,
208       "memberOf" : "Roo.util.Observable",
209       "isStatic" : false,
210       "isConstructor" : false,
211       "isPrivate" : false,
212       "example" : "",
213       "deprecated" : "",
214       "since" : "",
215       "see" : "",
216       "exceptions" : "",
217       "requires" : "",
218       "params" : [
219         {
220           "name" : "object",
221           "type" : "Object",
222           "desc" : "The object with the events defined",
223           "isOptional" : false
224         }
225       ],
226       "returns" : []
227     },
228     {
229       "name" : "releaseCapture",
230       "type" : "function",
231       "desc" : "Removes <b>all</b> added captures from the Observable.",
232       "sig" : "(o)",
233       "static" : true,
234       "memberOf" : "Roo.util.Observable",
235       "isStatic" : true,
236       "isConstructor" : false,
237       "isPrivate" : false,
238       "example" : "",
239       "deprecated" : "",
240       "since" : "",
241       "see" : "",
242       "exceptions" : "",
243       "requires" : "",
244       "params" : [
245         {
246           "name" : "o",
247           "type" : "Observable",
248           "desc" : "The Observable to release",
249           "isOptional" : false
250         }
251       ],
252       "returns" : []
253     },
254     {
255       "name" : "removeListener",
256       "type" : "function",
257       "desc" : "Removes a listener",
258       "sig" : "(eventName, handler, scope)",
259       "static" : false,
260       "memberOf" : "Roo.util.Observable",
261       "isStatic" : false,
262       "isConstructor" : false,
263       "isPrivate" : false,
264       "example" : "",
265       "deprecated" : "",
266       "since" : "",
267       "see" : "",
268       "exceptions" : "",
269       "requires" : "",
270       "params" : [
271         {
272           "name" : "eventName",
273           "type" : "String",
274           "desc" : "The type of event to listen for",
275           "isOptional" : false
276         },
277         {
278           "name" : "handler",
279           "type" : "Function",
280           "desc" : "The handler to remove",
281           "isOptional" : false
282         },
283         {
284           "name" : "scope",
285           "type" : "Object",
286           "desc" : "(optional) The scope (this object) for the handler",
287           "isOptional" : false
288         }
289       ],
290       "returns" : []
291     },
292     {
293       "name" : "fireEvent",
294       "type" : "function",
295       "desc" : "Fires the specified event with the passed parameters (minus the event name).",
296       "sig" : "(eventName, args)",
297       "static" : false,
298       "memberOf" : "Roo.util.Observable",
299       "isStatic" : false,
300       "isConstructor" : false,
301       "isPrivate" : false,
302       "example" : "",
303       "deprecated" : "",
304       "since" : "",
305       "see" : "",
306       "exceptions" : "",
307       "requires" : "",
308       "params" : [
309         {
310           "name" : "eventName",
311           "type" : "String",
312           "desc" : "",
313           "isOptional" : false
314         },
315         {
316           "name" : "args",
317           "type" : "Object...",
318           "desc" : "Variable number of parameters are passed to handlers",
319           "isOptional" : false
320         }
321       ],
322       "returns" : [
323         {
324           "name" : "",
325           "type" : "Boolean",
326           "desc" : "returns false if any of the handlers return false otherwise it returns true"
327         }
328       ]
329     },
330     {
331       "name" : "hasListener",
332       "type" : "function",
333       "desc" : "Checks to see if this object has any listeners for a specified event",
334       "sig" : "(eventName)",
335       "static" : false,
336       "memberOf" : "Roo.util.Observable",
337       "isStatic" : false,
338       "isConstructor" : false,
339       "isPrivate" : false,
340       "example" : "",
341       "deprecated" : "",
342       "since" : "",
343       "see" : "",
344       "exceptions" : "",
345       "requires" : "",
346       "params" : [
347         {
348           "name" : "eventName",
349           "type" : "String",
350           "desc" : "The name of the event to check for",
351           "isOptional" : false
352         }
353       ],
354       "returns" : [
355         {
356           "name" : "",
357           "type" : "Boolean",
358           "desc" : "True if the event is being listened for, else false"
359         }
360       ]
361     },
362     {
363       "name" : "capture",
364       "type" : "function",
365       "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.",
366       "sig" : "(o, fn, scope)",
367       "static" : true,
368       "memberOf" : "Roo.util.Observable",
369       "isStatic" : true,
370       "isConstructor" : false,
371       "isPrivate" : false,
372       "example" : "",
373       "deprecated" : "",
374       "since" : "",
375       "see" : "",
376       "exceptions" : "",
377       "requires" : "",
378       "params" : [
379         {
380           "name" : "o",
381           "type" : "Observable",
382           "desc" : "The Observable to capture",
383           "isOptional" : false
384         },
385         {
386           "name" : "fn",
387           "type" : "Function",
388           "desc" : "The function to call",
389           "isOptional" : false
390         },
391         {
392           "name" : "scope",
393           "type" : "Object",
394           "desc" : "(optional) The scope (this object) for the fn",
395           "isOptional" : false
396         }
397       ],
398       "returns" : []
399     },
400     {
401       "name" : "addListener",
402       "type" : "function",
403       "desc" : "Appends an event handler to this component",
404       "sig" : "(eventName, handler, scope, options)",
405       "static" : false,
406       "memberOf" : "Roo.util.Observable",
407       "isStatic" : false,
408       "isConstructor" : false,
409       "isPrivate" : false,
410       "example" : "",
411       "deprecated" : "",
412       "since" : "",
413       "see" : "",
414       "exceptions" : "",
415       "requires" : "",
416       "params" : [
417         {
418           "name" : "eventName",
419           "type" : "String",
420           "desc" : "The type of event to listen for",
421           "isOptional" : false
422         },
423         {
424           "name" : "handler",
425           "type" : "Function",
426           "desc" : "The method the event invokes",
427           "isOptional" : false
428         },
429         {
430           "name" : "scope",
431           "type" : "Object",
432           "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
433           "isOptional" : false
434         },
435         {
436           "name" : "options",
437           "type" : "Object",
438           "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>",
439           "isOptional" : false
440         }
441       ],
442       "returns" : []
443     }
444   ],
445   "events" : []
446 }