net/sf/jsm/widgets/++jsmWidget.js
Summary
No overview generated for 'net/sf/jsm/widgets/++jsmWidget.js'
|
Class Summary
|
| JsmWidget |
Base object for widgets
|
function JsmWidget() {
logger.error("JsmWidget is abstract and can not be instantiated");
throw new Error("JsmWidget is an abstract class and can not be instatiated");
}
JsmWidget.extendClass(JsmObject);
JsmWidget.prototype.className="JsmWidget";
JsmWidget.prototype._validators;
JsmWidget.prototype.updateModel = function(table, rowIdx, columnIdx, theViewComponent) {
alert("A JsmWidget has to implement the updateModel method");
}
JsmWidget.prototype.init = function(theTd) {
alert("A JsmWidget has to implement the init method");
}
JsmWidget.prototype.getNode = function() {
alert("A JsmWidget has to implement the getNode method");
}
JsmWidget.prototype.clone = function() {
alert("A JsmWidget has to implement the clone method");
}
JsmWidget.prototype.validate = function(table, rowIdx, columnIdx, theViewComponent) {
retVal = true;
for (var validator=0;validator<this.getValidators().length;validator++) {
if (!this.getValidators()[validator].validate(table, rowIdx, columnIdx, theViewComponent)) {
return false;
}
}
return retVal;
}
JsmWidget.prototype.addValidator = function(validator) {
if (!this._validators) {this._validators = new Array();}
this._validators.push(validator);
return this;
}
JsmWidget.prototype.getValidators = function() {
if (!this._validators) {this._validators = new Array();}
return this._validators;
}
JsmWidget.prototype.removeValidators = function() {
this._validators = new Array();
return this;
}
Documentation generated by
JSDoc on Tue Sep 26 08:42:57 2006