001package jmri.jmrix.openlcb.swing.monitor;
002
003import jmri.jmrix.can.CanSystemConnectionMemo;
004
005/**
006 * Swing action to create and register a MonitorFrame object
007 *
008 * @author Bob Jacobsen Copyright (C) 2009, 2010
009 */
010public class MonitorAction extends jmri.jmrix.can.swing.CanNamedPaneAction {
011
012    public MonitorAction() {
013        super(Bundle.getMessage("MonitorTitle"),
014                new jmri.util.swing.sdi.JmriJFrameInterface(),
015                MonitorPane.class.getName(),
016                jmri.InstanceManager.getNullableDefault(CanSystemConnectionMemo.class));
017    }
018    
019    public MonitorAction(String name, jmri.util.swing.WindowInterface iface) {
020        super(name,
021                iface,
022                MonitorPane.class.getName(),
023                jmri.InstanceManager.getNullableDefault(jmri.jmrix.can.CanSystemConnectionMemo.class));        
024    }
025
026    public MonitorAction(String name, javax.swing.Icon icon, jmri.util.swing.WindowInterface iface) {
027        super(name,
028                icon, iface, 
029                MonitorPane.class.getName(),
030                jmri.InstanceManager.getNullableDefault(jmri.jmrix.can.CanSystemConnectionMemo.class));        
031    }
032}