1
|
/*
|
2
|
Author: Tom Kralidis
|
3
|
License: LGPL as per: http://www.gnu.org/copyleft/lesser.html
|
4
|
|
5
|
$Id: ObjectList.js 3094 2007-08-09 12:29:59Z gjvoosten $
|
6
|
*/
|
7
|
|
8
|
// Ensure this object's dependancies are loaded.
|
9
|
mapbuilder.loadScript(baseDir+"/widget/WidgetBaseXSL.js");
|
10
|
|
11
|
/**
|
12
|
* @constructor
|
13
|
* @base WidgetBaseXSL
|
14
|
* @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
|
}
|