org.openstreetmap.josm.gui.preferences.map
Class BackupPreference
java.lang.Object
org.openstreetmap.josm.gui.preferences.map.BackupPreference
- All Implemented Interfaces:
- PreferenceSetting, SubPreferenceSetting
public class BackupPreference
- extends java.lang.Object
- implements SubPreferenceSetting
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_KEEP_BACKUP
private static final BooleanProperty PROP_KEEP_BACKUP
keepBackup
private javax.swing.JCheckBox keepBackup
autosave
private javax.swing.JCheckBox autosave
autosaveInterval
private final javax.swing.JTextField autosaveInterval
backupPerLayer
private final javax.swing.JTextField backupPerLayer
BackupPreference
public BackupPreference()
addGui
public void addGui(PreferenceTabbedPane gui)
- Description copied from interface:
PreferenceSetting
- Add the GUI elements to the dialog. The elements should be initialized after
the current preferences.
- Specified by:
addGui
in interface PreferenceSetting
ok
public boolean ok()
- Description copied from interface:
PreferenceSetting
- Called when OK is pressed to save the setting in the preferences file.
Return true when restart is required.
- Specified by:
ok
in interface PreferenceSetting
isExpert
public boolean isExpert()
- Description copied from interface:
PreferenceSetting
- Called to know if the preferences tab has only to be displayed in expert mode.
- Specified by:
isExpert
in interface PreferenceSetting
- Returns:
- true if the tab has only to be displayed in expert mode, false otherwise.
getTabPreferenceSetting
public TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
- Description copied from interface:
SubPreferenceSetting
- Returns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting.
- Specified by:
getTabPreferenceSetting
in interface SubPreferenceSetting
JOSM