1 |
3032
|
perry
|
/*
|
2 |
|
|
Author: Tom Kralidis
|
3 |
|
|
License: LGPL as per: http://www.gnu.org/copyleft/lesser.html
|
4 |
|
|
|
5 |
4307
|
leinfelder
|
$Id: ObjectList.js 3094 2007-08-09 12:29:59Z gjvoosten $
|
6 |
3032
|
perry
|
*/
|
7 |
|
|
|
8 |
|
|
// Ensure this object's dependancies are loaded.
|
9 |
4307
|
leinfelder
|
mapbuilder.loadScript(baseDir+"/widget/WidgetBaseXSL.js");
|
10 |
3032
|
perry
|
|
11 |
|
|
/**
|
12 |
|
|
* @constructor
|
13 |
4307
|
leinfelder
|
* @base WidgetBaseXSL
|
14 |
3032
|
perry
|
* @param widgetNode This widget's object node from the configuration document.
|
15 |
|
|
* @param model The model that this widget is a view of.
|
16 |
|
|
*/
|
17 |
|
|
function ObjectList(widgetNode, model) {
|
18 |
|
|
WidgetBaseXSL.apply(this,new Array(widgetNode, model));
|
19 |
|
|
|
20 |
|
|
this.showDetails = function(objectType) {
|
21 |
|
|
var details = config.objects.objectDetails;
|
22 |
|
|
details.stylesheet.setParameter("objectType",objectType);
|
23 |
|
|
details.paint(details);
|
24 |
|
|
}
|
25 |
|
|
}
|