Changeset 1194
- Timestamp:
- 10/14/08 11:46:55 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/camptocamp/MapFishUnhcr/client/mfbase/mapfish/widgets/search/Form.js
r1009 r1194 24 24 * Class: mapfish.widgets.search.Form 25 25 * Extension of {<Ext.form.FormPanel>} that can be used to interact with a 26 * {<mapfish.SearchMediator>}. You have to implement the <getFilter> method 27 * and return a filter matching the parameters in the form. 28 * 29 * TODO: we could also override the sumbmit action and call 30 * mediator.triggerSearch() from there. 26 * {<mapfish.Protocol.MergeFilterDecorator>}. You have to implement the 27 * <getFilter> method and return a filter matching the parameters in the form. 31 28 */ 32 29 mapfish.widgets.search.Form = function(config) { 33 30 Ext.apply(this, config); 34 31 35 if (!this. mediator) {36 OpenLayers.Console.error('No mediatoravailable');32 if (!this.protocol) { 33 OpenLayers.Console.error('No protocol available'); 37 34 return; 38 35 } … … 44 41 } 45 42 46 this. mediator.searchers.push(this.searcher);43 this.protocol.register(this.searcher); 47 44 48 45 mapfish.widgets.search.Form.superclass.constructor.call(this);