﻿Type.registerNamespace("Nws.UI");

Nws.UI.AjaxLabel = function(element) {
	Nws.UI.AjaxLabel.initializeBase(this, [element]);
}
Nws.UI.AjaxLabel.prototype = {
	get_text : function() {
		var e = this.get_element();
		if(e.firstChild)
			return e.firstChild.nodeValue;
		return "";
	},
	set_text : function(value) {
		var e = this.get_element();
		if(e.firstChild)
			e.firstChild.nodeValue = value;
		else
			e.appendChild(document.createTextNode(value));
	},
	
	dispose : function() {
		Nws.UI.AjaxLabel.callBaseMethod(this, "dispose");
	},
	initialize : function() {
		Nws.UI.AjaxLabel.callBaseMethod(this, "initialize");
	}
}
Nws.UI.AjaxLabel.registerClass("Nws.UI.AjaxLabel", Nws.UI.ControlBase);
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();