source:
trunk/workshop-routing-foss4g/web/GeoExt/docs/_sources/lib/GeoExt/data/FeatureRecord.txt
@
76
Revision 76, 1.4 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[76] | 1 | |
2 | .. currentmodule:: GeoExt.data | |
3 | ||
4 | :class:`GeoExt.data.FeatureRecord` | |
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:: FeatureRecord | |
21 | ||
22 | A record that represents an ``OpenLayers.Feature.Vector``. This record | |
23 | will always have at least the following fields: | |
24 | ||
25 | * state ``String`` | |
26 | * fid ``String`` | |
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | Public Methods | |
38 | -------------- | |
39 | ||
40 | Public methods in addition to those | |
41 | listed for `Ext.data.Record <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Record>`_. | |
42 | ||
43 | ||
44 | .. method:: FeatureRecord.getFeature | |
45 | ||
46 | :return: ``OpenLayers.Feature.Vector`` | |
47 | ||
48 | Gets the feature for this record. | |
49 | ||
50 | .. method:: FeatureRecord.setLayer | |
51 | ||
52 | :param layer: ``OpenLayers.Feature.Vector`` | |
53 | ||
54 | Sets the feature for this record. | |
55 | ||
56 | ||
57 | ||
58 | ||
59 | ||
60 | ||
61 | Class Methods | |
62 | ------------- | |
63 | ||
64 | Class methods in addition to static methods | |
65 | listed for `Ext.data.Record <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Record>`_. | |
66 | ||
67 | ||
68 | .. classmethod:: FeatureRecord.create | |
69 | ||
70 | :param o: ``Array`` Field definition as in ``Ext.data.Record.create``. Can | |
71 | be omitted if no additional fields are required. | |
72 | :return: ``Function`` A specialized :class:`GeoExt.data.FeatureRecord` | |
73 | constructor. | |
74 | ||
75 | Creates a constructor for a :class:`GeoExt.data.FeatureRecord`, optionally | |
76 | with additional fields. | |
77 |
Note: See TracBrowser
for help on using the repository browser.