1
|
/*
|
2
|
License: LGPL as per: http://www.gnu.org/copyleft/lesser.html
|
3
|
$Id: FeatureList.js 3091 2007-08-09 12:21:54Z gjvoosten $
|
4
|
*/
|
5
|
|
6
|
// Ensure this object's dependancies are loaded.
|
7
|
mapbuilder.loadScript(baseDir+"/widget/WidgetBaseXSL.js");
|
8
|
|
9
|
/**
|
10
|
* Functions to render and update a FeatureList from GML.
|
11
|
* @constructor
|
12
|
* @base WidgetBaseXSL
|
13
|
* @author Cameron Shorter
|
14
|
* @param widgetNode The widget's XML object node from the configuration document.
|
15
|
* @param model The model object that this widget belongs to.
|
16
|
*/
|
17
|
function FeatureList(widgetNode, model) {
|
18
|
WidgetBaseXSL.apply(this,new Array(widgetNode, model));
|
19
|
|
20
|
/**
|
21
|
* Set the value of an attribute from the FeatureList.
|
22
|
* @param objRef Reference to this object.
|
23
|
* @param xpath Xpath reference to the attribute in the GML.
|
24
|
* @param value New attribute value.
|
25
|
*/
|
26
|
this.setAttr=function(objRef,xpath,value){
|
27
|
objRef.model.setXpathValue(objRef.model,xpath,value);
|
28
|
}
|
29
|
}
|