source:
trunk/workshop-routing-foss4g/web/GeoExt/docs/_sources/lib/GeoExt/data/LayerRecord.txt
@
81
Revision 76, 1.6 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | |
2 | .. currentmodule:: GeoExt.data |
3 | |
4 | :class:`GeoExt.data.LayerRecord` |
5 | ================================================================================ |
6 | |
7 | |
8 | .. cssclass:: meta |
9 | |
10 | |
11 | Extends |
12 | * `Ext.data.Record <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Record>`_ |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | .. class:: LayerRecord |
21 | |
22 | A record that represents an ``OpenLayers.Layer``. This record |
23 | will always have at least the following fields: |
24 | |
25 | * title ``String`` |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 | Public Methods |
36 | -------------- |
37 | |
38 | Public methods in addition to those |
39 | listed for `Ext.data.Record <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Record>`_. |
40 | |
41 | |
42 | .. method:: LayerRecord.clone |
43 | |
44 | :param id: ``String`` (optional) A new Record id. |
45 | :return: class:`GeoExt.data.LayerRecord` A new layer record. |
46 | |
47 | Creates a clone of this LayerRecord. |
48 | |
49 | .. method:: LayerRecord.getLayer |
50 | |
51 | :return: ``OpenLayers.Layer`` |
52 | |
53 | Gets the layer for this record. |
54 | |
55 | .. method:: LayerRecord.setLayer |
56 | |
57 | :param layer: ``OpenLayers.Layer`` |
58 | |
59 | Sets the layer for this record. |
60 | |
61 | |
62 | |
63 | |
64 | |
65 | |
66 | Class Methods |
67 | ------------- |
68 | |
69 | Class methods in addition to static methods |
70 | listed for `Ext.data.Record <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Record>`_. |
71 | |
72 | |
73 | .. classmethod:: LayerRecord.create |
74 | |
75 | :param o: ``Array`` Field definition as in ``Ext.data.Record.create``. Can |
76 | be omitted if no additional fields are required. |
77 | :return: ``Function`` A specialized :class:`GeoExt.data.LayerRecord` |
78 | constructor. |
79 | |
80 | Creates a constructor for a :class:`GeoExt.data.LayerRecord`, optionally |
81 | with additional fields. |
82 |
Note: See TracBrowser
for help on using the repository browser.