001package jmri.jmrit.operations.rollingstock.cars.tools;
002
003import java.awt.event.ActionEvent;
004
005import javax.swing.AbstractAction;
006
007import jmri.jmrit.operations.rollingstock.cars.CarsTableModel;
008
009/**
010 * Swing action to reset checkboxes in the cars window.
011 *
012 * @author Bob Jacobsen Copyright (C) 2001
013 * @author Daniel Boudreau Copyright (C) 2014
014 * 
015 */
016public class ResetCheckboxesCarsTableAction extends AbstractAction {
017
018    CarsTableModel _carsTableModel;
019
020    public ResetCheckboxesCarsTableAction(CarsTableModel carsTableModel) {
021        super(Bundle.getMessage("TitleResetCheckboxes"));
022        _carsTableModel = carsTableModel;
023    }
024
025    @Override
026    public void actionPerformed(ActionEvent e) {
027        _carsTableModel.resetCheckboxes();
028    }
029}
030
031