source:
trunk/workshop-routing-foss4g/web/GeoExt/docs/_sources/lib/GeoExt/widgets/tree/LayerParamLoader.txt
@
76
Revision 76, 2.2 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[76] | 1 | |
2 | .. currentmodule:: GeoExt.tree | |
3 | ||
4 | :class:`GeoExt.tree.LayerParamLoader` | |
5 | ================================================================================ | |
6 | ||
7 | ||
8 | .. cssclass:: meta | |
9 | ||
10 | ||
11 | Extends | |
12 | * `Ext.util.Observable <http://dev.sencha.com/deploy/dev/docs/?class=Ext.util.Observable>`_ | |
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | .. class:: LayerParamLoader | |
21 | ||
22 | A loader that creates children from its node's layer | |
23 | (``OpenLayers.Layer.HTTPRequest``) by items in one of the values in | |
24 | the layer's params object. | |
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | Config Options | |
31 | -------------- | |
32 | ||
33 | Configuration properties in addition to | |
34 | those listed for `Ext.util.Observable <http://dev.sencha.com/deploy/dev/docs/?class=Ext.util.Observable>`_. | |
35 | ||
36 | ||
37 | .. describe:: delimiter | |
38 | ||
39 | ``String`` Delimiter of the ``param``'s value's items. Default is | |
40 | ``,`` (comma). If the ``param``'s value is an array, this property has | |
41 | no effect. | |
42 | ||
43 | .. describe:: param | |
44 | ||
45 | ``String`` Key for a param (key-value pair in the params object of the | |
46 | layer) that this loader uses to create childnodes from its items. The | |
47 | value can either be an ``Array`` or a ``String``, delimited by the | |
48 | character (or string) provided as ``delimiter`` config option. | |
49 | ||
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
55 | Public Methods | |
56 | -------------- | |
57 | ||
58 | Public methods in addition to those | |
59 | listed for `Ext.util.Observable <http://dev.sencha.com/deploy/dev/docs/?class=Ext.util.Observable>`_. | |
60 | ||
61 | ||
62 | .. method:: LayerParamLoader.createNode | |
63 | ||
64 | :param attr: ``Object`` attributes for the new node | |
65 | ||
66 | Override this function for custom TreeNode node implementation, or to | |
67 | modify the attributes at creation time. | |
68 | ||
69 | ||
70 | ||
71 | ||
72 | Events | |
73 | ------ | |
74 | ||
75 | Events in addition to those | |
76 | listed for `Ext.util.Observable <http://dev.sencha.com/deploy/dev/docs/?class=Ext.util.Observable>`_. | |
77 | ||
78 | ||
79 | .. describe:: beforeload | |
80 | ||
81 | Triggered before loading children. Return false to avoid | |
82 | loading children. | |
83 | ||
84 | Listener arguments: | |
85 | ||
86 | * loader - :class:`GeoExt.tree.LayerLoader` this loader | |
87 | * node - ``Ex.tree.TreeNode`` the node that this loader is | |
88 | configured with | |
89 | ||
90 | .. describe:: load | |
91 | ||
92 | Triggered after children were loaded. | |
93 | ||
94 | Listener arguments: | |
95 | ||
96 | * loader - :class:`GeoExt.tree.LayerLoader` this loader | |
97 | * node - ``Ex.tree.TreeNode`` the node that this loader is | |
98 | configured with | |
99 | ||
100 | ||
101 |
Note: See TracBrowser
for help on using the repository browser.