var EditBox = Class.create(Component, {
	getClass: function() {
		return "EditBox";
	},

	setFocus: function() {
		if (this.components.length > 0)
		{
			for (var i = 0; i < this.components.length; i++)
			{
				if (this.components[i].getVisible() && this.components[i].getEditMode())
				{
					this.components[i].setFocus();
					return true;
				}
			}
		}

		return false;
	}
});
