BaseKit.Widget.CoreDropDown = BaseKit.Widget.Base.extend(
{
	construct: function()
	{
		this.callBase();
		this.observeEvent('change', $(this.getID()), 'change');
	},

	serialize: function(event)
	{
		return this.getID() + '=' + escape($(this.getID()).value);
	},

	enable: function()
	{
		$(this.getID()).disabled = '';
	},

	disable: function()
	{
		$(this.getID()).disabled = 'true';
	},

	push: function(args)
	{
		var value = args[0];
		var html = args[1];

		if (html != null)
		{
			$(this.getID('container')).innerHTML = html;
		}

		if (value != null)
		{
			$(this.getID()).value = value;
		}
	}
});
