/**
 * @class Choix
 * Choix disponible dans une liste de sélection. Un choix correspond à
 * un élément HTML OPTION.
 *
 * @note        Copyright(C) CCI.fr SAS, 2005
 * @author      Florent LAOT <f.laot@entreprise.cci.fr>,
 * @version     $Revision: 2828 $
 * @date        $Date: 2005-09-29 11:59:12 +0200 (jeu, 29 sep 2005) $
 */

/**
 * Retourne la représentation HTML du choix
 */
function Choix_getOption() {
	return this.option;
}
 
/**
 * Classe Choix
 */
function Choix(p_texte, p_valeur, p_legende) {
    // Déclare les attributs
    this.texte = p_texte;
    this.valeur = p_valeur;
    this.legende = p_legende;
    this.option = new Option(this.texte, this.valeur);
    
    // Déclare les méthodes
    this.getOption = Choix_getOption;
    
    // Initialise l'objet
    this.option = new Option(this.texte, this.valeur);
    this.option.setAttribute('title', this.legende);
}
