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