/**
 *
 * The Combobox object is used to maintain information about a checkbox widget
 * @contructor
 */

function Combobox( id_text, id_button, id_list ) {
  this.id_text = id_text;
  this.id_button = id_button;
  this.id_list = id_list;  
}

/**
 * init is a subclass of Combobox and is used to initialize the event handlers 
 *
 * @member Combobox
 *
 * @return nothing
 */

Combobox.prototype.init = function() {

  this.node_text   = document.getElementById(this.id_text);
  this.node_button = document.getElementById(this.id_button);
  this.node_list = document.getElementById(this.id_list);

  var obj = this; 

  browser.addEvent(this.node_text, "keydown", function(event) { handleComboboxTextKeyDownEvent(event, obj);}, false);
  browser.addEvent(this.node_text, "click",   function(event) { handleComboboxTextClickEvent(event, obj);},   false);

}


/**
 * handleComboboxGroupKeyDownEvent processes keys associated with a radio button group
 *
 * @param ( event ) event is the event handler for the event
 * @param ( Combobox object ) combobox is the combobox object that is the target of the keyboard event
 *
 * @return false if mouse event was used by combobox, else true
 */

handleComboboxKeyDownEvent = function(event, combobox) {

  switch( event.keyCode ) {

    case KEY_DOWN:
	     
         browser.stopPropagation( event );
         return false;
         break;

  }  // end switch

  return true;

}

/**
 * handleCheckboxClickEvent processes pointer click events with in the radio group
 *
 * @param ( event ) event is the event handler for the event
 * @param ( Combobox object ) combobox is the Combobox object that is the target of the pointer event
 *
 * @return false if mouse event was used by combobox, else true
 */

function handleCheckboxClickEvent( event, combobox ) {
		
  if( combobox.node == browser.target(event) ) {
		
  } // endif

}



