001package jmri.jmrit.operations.rollingstock.cars.tools;
002
003import java.awt.event.ActionEvent;
004
005import javax.swing.AbstractAction;
006
007import org.slf4j.Logger;
008import org.slf4j.LoggerFactory;
009
010/**
011 * Frame for adding and editing the car roster for operations.
012 *
013 * @author Daniel Boudreau Copyright (C) 2009, 2010, 2011
014 */
015final class CarLoadAttributeAction extends AbstractAction {
016
017    public CarLoadAttributeAction(CarLoadEditFrame clef) {
018        super(Bundle.getMessage("CarQuantity"));
019        this.clef = clef;
020    }
021
022    CarLoadEditFrame clef;
023
024    @Override
025    public void actionPerformed(ActionEvent ae) {
026        log.debug("Show attribute quanity");
027        clef.toggleShowQuanity();
028    }
029
030    private final static Logger log = LoggerFactory.getLogger(CarLoadAttributeAction.class);
031}