001package jmri.jmrit.symbolicprog;
002
003import javax.swing.JComboBox;
004import javax.swing.JRadioButton;
005
006/* Represents a JComboBox as a JPanel containing just the "on" button
007 *
008 * @author   Bob Jacobsen   Copyright (C) 2001
009 */
010public class ComboOnRadioButton extends ComboRadioButtons {
011
012    ComboOnRadioButton(JComboBox<String> box, EnumVariableValue var) {
013        super(box, var);
014    }
015
016    /**
017     * Make only the "on" button visible
018     */
019    @Override
020    void addToPanel(JRadioButton b, int i) {
021        if (i == 1) {
022            add(b);
023        }
024    }
025
026}