IWCombobox.API_ID="iwcombobox";
IWAPI._doInheritance(IWCombobox,IWFormElement);
IWAPI.registerAPI(IWCombobox.API_ID,IWCombobox);

function IWCombobox()
{
}

IWCombobox.prototype.getType = function()
{
    return "combobox";
}

IWCombobox.prototype.getOptions = function()
{
    return this.options;
}

IWCombobox.prototype.setOptions = function(options)
{
    this.options = options;
}

IWCombobox.prototype.getValue = function()
{
    return this.getOptions()[selectedIndex].value;
}

IWCombobox.prototype.setValue = function(value)
{
    if (typeof(value) == "number")
    {
        this.value = this.getOptions()[value].value;
    }
    else
    {
        this.value = value;
    }
}

