001package jmri.jmrit.operations.rollingstock.cars.tools;
002
003import java.awt.event.ActionEvent;
004
005import javax.swing.AbstractAction;
006
007/**
008 * Frame for adding and editing the car roster for operations.
009 *
010 * @author Daniel Boudreau Copyright (C) 2008, 2014
011 */
012final class CarAttributeAction extends AbstractAction {
013
014    public CarAttributeAction(CarAttributeEditFrame caef) {
015        super(Bundle.getMessage("CarQuantity"));
016        this.caef = caef;
017    }
018
019    CarAttributeEditFrame caef;
020
021    @Override
022    public void actionPerformed(ActionEvent ae) {
023        caef.toggleShowQuanity();
024    }
025}