--- a/org.symbian.tools.wrttools/projecttemplates/WRTKit/UI/SelectionControl.js Fri Feb 05 09:22:26 2010 -0800
+++ b/org.symbian.tools.wrttools/projecttemplates/WRTKit/UI/SelectionControl.js Fri Feb 05 11:54:28 2010 -0800
@@ -82,12 +82,12 @@
this.selected = selected;
}
this.validateSelected();
-}
+};
// Returns true if the control is a multiple selection control; false if single.
SelectionControl.prototype.isMultipleSelection = function() {
return this.multipleSelection;
-}
+};
// Returns true if the specified option is selected; false if not.
SelectionControl.prototype.isSelected = function(option) {
@@ -104,7 +104,7 @@
// single selection
return (this.selected == option);
}
-}
+};
// Returns the currently selected option in a single selection control or
// an array of selected options in a multiple selection control. If there are
@@ -112,7 +112,7 @@
// selection control returns an empty array.
SelectionControl.prototype.getSelected = function() {
return this.multipleSelection ? this.selected.slice(0) : this.selected;
-}
+};
// Sets the currently selected options. Pass a single option in a single selection
// control or an array of selected controls in a multiple selection control. To
@@ -123,7 +123,7 @@
this.selected = this.multipleSelection ? selected.slice(0) : selected;
// make sure the selected option or options are legal
this.validateSelected();
-}
+};
// Ensures that the selected option or options exist among the options in this control.
SelectionControl.prototype.validateSelected = function() {
@@ -161,13 +161,13 @@
this.selected = null;
}
}
-}
+};
// Returns the options in the control as an array of option objects with
// a value and text property.
SelectionControl.prototype.getOptions = function() {
return this.options;
-}
+};
// Sets the options in the control.
// Override in sublcasses to provide full implementation.
@@ -175,7 +175,7 @@
this.options = options.slice(0);
// make sure the selected option or options are legal
this.validateSelected();
-}
+};
// Returns the option that has the specified value; null if none.
SelectionControl.prototype.getOptionForValue = function(value) {
@@ -186,4 +186,4 @@
}
}
return null;
-}
+};