001package jmri.jmrix.lenz.swing.lzv100;
002
003import java.awt.event.ActionEvent;
004import jmri.jmrix.lenz.swing.AbstractXPressNetAction;
005
006/**
007 * Swing action to create and register an LZV100Frame object.
008 * <p>
009 * The {@link LZV100Frame} is a configuration tool for the LZV100 command
010 * Station.
011 *
012 * @author Paul Bender Copyright (C) 2003
013 */
014public class LZV100Action extends AbstractXPressNetAction {
015
016    public LZV100Action(String s, jmri.jmrix.lenz.XNetSystemConnectionMemo memo) {
017        super(s,memo);
018    }
019
020    public LZV100Action(jmri.jmrix.lenz.XNetSystemConnectionMemo memo) {
021        this(Bundle.getMessage("MenuItemLZV100ConfigurationManager"), memo);
022    }
023
024    @Override
025    public void actionPerformed(ActionEvent e) {
026        // create an LZV100Frame
027        LZV100Frame f = new LZV100Frame(Bundle.getMessage("MenuItemLZV100ConfigurationManager"), _memo);
028        f.setVisible(true);
029    }
030
031}