
netopia.create("nxg").create("dropdown").add({
Option : $extends(netopia.core.Object,
{
    ctor : function(name,value,isStyleOption)
    {       
        
        //constructor for a generic name/value pair
        this.name=name;
        this.value=value;
        this.isStyleOption = isStyleOption;
    },
    
    nameMatch : function(name)
    {
        //evaluates if the name 
        //passed in matches this
        //options name
        if (this.name == name)
        {
            return true
        }
        else
        {
            return false;
        }
    },
    
    writeXML : function(xmlEl)
    {   //writes itself (name/value) as an attribute 
        //to the passed in xml element   
        this.writeAttribute(xmlEl);    
    },
    
    updateHTML : function(domEl)
        {
            this.writeAttribute(domEl);    
    },
    
    writeAttribute : function(node)
    {   //For now, xml and html objects use this to set attribute
        //writes itself (name/value) as an attribute 
        //to the passed in dom or xml element
        node.setAttribute(this.name,this.value);    
    }
    
})
});
