|
11 | 11 |
|
12 | 12 | <Class name="DeepSee.LightPivotTable"> |
13 | 13 | <Super>%DeepSee.Component.Portlet.abstractPortlet</Super> |
14 | | - <TimeChanged>63519,69139.707264</TimeChanged> |
| 14 | + <TimeChanged>63520,75672.654316</TimeChanged> |
15 | 15 | <TimeCreated>63515,61322.546099</TimeCreated> |
16 | 16 |
|
17 | 17 | <Parameter name="INCLUDEFILES"> |
|
60 | 60 | ]]></Implementation> |
61 | 61 | </Method> |
62 | 62 |
|
| 63 | + <Method name="notifyViewHandler"> |
| 64 | + <FormalSpec>reason,data1,data2,data3</FormalSpec> |
| 65 | + <Language>javascript</Language> |
| 66 | + <ClientMethod>1</ClientMethod> |
| 67 | + <Implementation><![CDATA[ |
| 68 | + if (!this.LightPivotTable) return; |
| 69 | +
|
| 70 | + var controller = this.getConnectedController(); |
| 71 | +
|
| 72 | + if (reason === "dataChange") { |
| 73 | +
|
| 74 | + this.LightPivotTable.clearFilters(); |
| 75 | +
|
| 76 | + // updateFilters |
| 77 | + for (var i in controller.filters) { |
| 78 | + this.LightPivotTable.setFilter(controller.filters[i].spec); |
| 79 | + } |
| 80 | +
|
| 81 | + this.LightPivotTable.refresh(); |
| 82 | +
|
| 83 | + } |
| 84 | +]]></Implementation> |
| 85 | + </Method> |
| 86 | + |
| 87 | + <Method name="renderContents"> |
| 88 | + <Language>javascript</Language> |
| 89 | + <ClientMethod>1</ClientMethod> |
| 90 | + <Implementation><![CDATA[ this.getConnectedController(); // to receive notifications |
| 91 | +]]></Implementation> |
| 92 | + </Method> |
| 93 | + |
63 | 94 | <Method name="onCreate"> |
64 | 95 | <Language>javascript</Language> |
65 | 96 | <ClientMethod>1</ClientMethod> |
|
169 | 200 | ]]></Implementation> |
170 | 201 | </Method> |
171 | 202 |
|
172 | | - <Method name="notifyViewHandler"> |
173 | | - <Description> |
174 | | - Notification that the dataController associated with this dataView has raised an event.</Description> |
175 | | - <FormalSpec>reason,data1,data2,data3</FormalSpec> |
176 | | - <Language>javascript</Language> |
177 | | - <ClientMethod>1</ClientMethod> |
178 | | - <Implementation><![CDATA[ |
179 | | - if (!this.LightPivotTable) return; |
180 | | -
|
181 | | - var controller = this.getConnectedController(); |
182 | | -
|
183 | | - if (reason === "dataChange") { |
184 | | -
|
185 | | - // updateFilters |
186 | | - for (var i in controller.filters) { |
187 | | - this.LightPivotTable.setFilter(controller.filters[i].spec); |
188 | | - } |
189 | | -
|
190 | | - this.LightPivotTable.refresh(); |
191 | | -
|
192 | | - } |
193 | | -]]></Implementation> |
194 | | - </Method> |
195 | | - |
196 | 203 | <Method name="adjustContentSize"> |
197 | | - <Description> |
198 | | - Notification from the containing widget that the page is loaded or the widget is resized. |
199 | | - Subclass can implement this, if they wish.</Description> |
200 | 204 | <FormalSpec>load,width,height</FormalSpec> |
201 | 205 | <Language>javascript</Language> |
202 | 206 | <ClientMethod>1</ClientMethod> |
|
0 commit comments