Bw.Widgets.Label =
{
	superclassName: "Bw.Widgets.Widget",
	selfclassName: "Bw.Widgets.Label",
	
	create: function (val)
	{
		var obj = document.createElement ("div");
		
		obj.setAttribute ("value", val);
		
		Bw.Core.bootstrap (obj, "Bw.Widgets.Label");
		
		return obj;
	},

	initialize: function ()
	{
		Bw.Widgets.Widget.initialize.call(this);
		
		with (this.style)
		{
			display = "inline";
			MozUserSelect = "none";
			cursor = "default";
		}
		
		this.onselectstart = function(){return false;};

		var a = this.getAttribute ("value");
		if (a != null) {
			this.setValue (a);
		}
		
		return false;
	},
	
	getValue: function ()
	{
		return this.innerHTML;
	},
	
	setValue: function (val)
	{
		this.innerHTML = val;
	}
};

