public class BackupPreference extends java.lang.Object implements SubPreferenceSetting
| Modifier and Type | Class and Description |
|---|---|
static class |
BackupPreference.Factory
Factory used to create a new
BackupPreference. |
| Modifier and Type | Field and Description |
|---|---|
private javax.swing.JCheckBox |
autosave |
private JosmTextField |
autosaveInterval |
private JosmTextField |
backupPerLayer |
private javax.swing.JCheckBox |
keepBackup |
private javax.swing.JCheckBox |
notification |
private static BooleanProperty |
PROP_KEEP_BACKUP |
| Constructor and Description |
|---|
BackupPreference() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGui(PreferenceTabbedPane gui)
Add the GUI elements to the dialog.
|
TabPreferenceSetting |
getTabPreferenceSetting(PreferenceTabbedPane gui)
Returns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting.
|
boolean |
isExpert()
Called to know if the preferences tab has only to be displayed in expert mode.
|
boolean |
ok()
Called when OK is pressed to save the setting in the preferences file.
|
private static final BooleanProperty PROP_KEEP_BACKUP
private javax.swing.JCheckBox notification
private javax.swing.JCheckBox keepBackup
private javax.swing.JCheckBox autosave
private final JosmTextField autosaveInterval
private final JosmTextField backupPerLayer
public BackupPreference()
public void addGui(PreferenceTabbedPane gui)
PreferenceSettingaddGui in interface PreferenceSettinggui - the preferences tab panepublic boolean ok()
PreferenceSettingok in interface PreferenceSettingtrue if restart is requiredpublic boolean isExpert()
PreferenceSettingisExpert in interface PreferenceSettingpublic TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
SubPreferenceSettinggetTabPreferenceSetting in interface SubPreferenceSettinggui - preferences tabbed pane