001package jmri.jmrit.cabsignals;
002
003import javax.swing.Icon;
004import jmri.util.swing.JmriAbstractAction;
005import jmri.util.swing.WindowInterface;
006
007/**
008 * Swing action to create and register a CabSignalPanel object.
009 *
010 * @author Paul Bender Copyright (C) 2003
011 */
012public class CabSignalAction extends JmriAbstractAction {
013
014    public CabSignalAction(String s, WindowInterface wi) {
015        super(s, wi);
016    }
017
018    public CabSignalAction(String s, Icon i, WindowInterface wi) {
019        super(s, i, wi);
020    }
021
022    public CabSignalAction(String s) {
023        super(s);
024    }
025
026    public CabSignalAction() {
027        this(Bundle.getMessage("MenuItemCabSignalPane"));
028    }
029
030    @Override
031    public jmri.util.swing.JmriPanel makePanel() {
032       CabSignalPane retval = new CabSignalPane();
033       retval.initComponents();
034       return retval;
035    }
036
037}