Mercurial > hg > extraction-interface
comparison geotemco/js/Overlayloader/OverlayloaderWidget.js @ 0:b12c99b7c3f0
commit for previous development
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 19 Jan 2015 17:13:49 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b12c99b7c3f0 |
---|---|
1 /* | |
2 * OverlayloaderWidget.js | |
3 * | |
4 * Copyright (c) 2013, Sebastian Kruse. All rights reserved. | |
5 * | |
6 * This library is free software; you can redistribute it and/or | |
7 * modify it under the terms of the GNU Lesser General Public | |
8 * License as published by the Free Software Foundation; either | |
9 * version 3 of the License, or (at your option) any later version. | |
10 * | |
11 * This library is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 * Lesser General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU Lesser General Public | |
17 * License along with this library; if not, write to the Free Software | |
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
19 * MA 02110-1301 USA | |
20 */ | |
21 | |
22 /** | |
23 * @class OverlayloaderWidget | |
24 * OverlayloaderWidget Implementation | |
25 * @author Sebastian Kruse (skruse@mpiwg-berlin.mpg.de) | |
26 * | |
27 * @param {WidgetWrapper} core wrapper for interaction to other widgets | |
28 * @param {HTML object} div parent div to append the Overlayloader widget div | |
29 * @param {JSON} options user specified configuration that overwrites options in OverlayloaderConfig.js | |
30 */ | |
31 OverlayloaderWidget = function(core, div, options) { | |
32 | |
33 this.core = core; | |
34 this.core.setWidget(this); | |
35 | |
36 this.options = (new OverlayloaderConfig(options)).options; | |
37 this.gui = new OverlayloaderGui(this, div, this.options); | |
38 | |
39 this.attachedMapWidgets = new Array(); | |
40 | |
41 this.overlayLoader = new Overlayloader(this); | |
42 } | |
43 | |
44 OverlayloaderWidget.prototype = { | |
45 | |
46 initWidget : function() { | |
47 | |
48 var overlayloaderWidget = this; | |
49 }, | |
50 | |
51 highlightChanged : function(objects) { | |
52 if( !GeoTemConfig.highlightEvents ){ | |
53 return; | |
54 } | |
55 }, | |
56 | |
57 selectionChanged : function(selection) { | |
58 if( !GeoTemConfig.selectionEvents ){ | |
59 return; | |
60 } | |
61 }, | |
62 | |
63 triggerHighlight : function(item) { | |
64 }, | |
65 | |
66 tableSelection : function() { | |
67 }, | |
68 | |
69 deselection : function() { | |
70 }, | |
71 | |
72 filtering : function() { | |
73 }, | |
74 | |
75 inverseFiltering : function() { | |
76 }, | |
77 | |
78 triggerRefining : function() { | |
79 }, | |
80 | |
81 reset : function() { | |
82 }, | |
83 | |
84 attachMapWidget : function(widget) { | |
85 this.attachedMapWidgets.push(widget); | |
86 } | |
87 }; |