/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * published by the Free Software Foundation; either version 2.1 of
 * the license, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *  
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite
 * 330, Boston, MA  02111-1307, USA.
 * 
 */
package com.k_int.AdminApp.widgets;

import java.util.ArrayList;
import java.util.Iterator;

import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import java.awt.Graphics;

/**
 * Title:		NoYesJComboController
 * @author:		rob
 * @version:	$Id: NoYesJComboController.java,v 1.1 2004/11/15 13:47:50 rob Exp $
 * Copyright:	Copyright 1999-2004 Knowledge Integration Ltd
 * Company: 	Knowledge Integration Ltd
 * Description:
 * 
 * 
 * Created:		24-Aug-2004  12:26:01
 * 
 * 
 * History:		$Log: NoYesJComboController.java,v $
 * History:		Revision 1.1  2004/11/15 13:47:50  rob
 * History:		*** empty log message ***
 * History:		
 *
 */
public class NoYesJComboController extends YesNoJComboController
{
    
    public void setSelectedItem(Object item)
    {
        super.setSelectedItem(item);
        boolean enabled=false;
        if(item.toString().trim().equals("no"))
            enabled=true;
                      
            setComponentsEnabled(enabled);       
    }
}
