001package jmri.jmrit.operations.setup;
002
003import javax.swing.JComponent;
004import jmri.jmrit.operations.OperationsPanel;
005import jmri.swing.PreferencesPanel;
006
007/**
008 *
009 * @author Randall Wood randall.h.wood@alexandriasoftware.com
010 */
011public abstract class OperationsPreferencesPanel extends OperationsPanel implements PreferencesPanel {
012
013    @Override
014    public String getPreferencesItem() {
015        return "OPERATIONS"; // NOI18N
016    }
017
018    @Override
019    public String getPreferencesItemText() {
020        return Bundle.getMessage("MenuOperations"); // NOI18N
021    }
022
023    @Override
024    public String getLabelKey() {
025        return null;
026    }
027
028    @Override
029    public JComponent getPreferencesComponent() {
030        return this;
031    }
032
033    @Override
034    public boolean isPersistant() {
035        return false;
036    }
037
038    @Override
039    public boolean isRestartRequired() {
040        return false;
041    }
042
043    @Override
044    public boolean isPreferencesValid() {
045        return true; // no validity checking performed
046    }
047}