1 function Sys$Component$set_id(value) {
2 var e = Function._validateParams(arguments, [{name: "value", type: String}]);
3 if (e) throw e;
4 if (this._idSet) throw Error.invalidOperation(Sys.Res.componentCantSetIdTwice);
5 this._idSet = true;
6 var oldId = this.get_id();
7 if (oldId && Sys.Application.findComponent(oldId)) throw Error.invalidOperation(Sys.Res.componentCantSetIdAfterAddedToApp);
8 this._id = value;
9 }