Class ValidatorTestsPreference
- java.lang.Object
-
- org.openstreetmap.josm.gui.preferences.validator.ValidatorTestsPreference
-
- All Implemented Interfaces:
PreferenceSetting,SubPreferenceSetting
public class ValidatorTestsPreference extends java.lang.Object implements SubPreferenceSetting
The general validator preferences, allowing to enable/disable tests.- Since:
- 6666
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidatorTestsPreference.FactoryFactory used to create a newValidatorTestsPreference.
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<Test>allTestsThe list of all testsprivate javax.swing.JCheckBoxprefOtherprivate javax.swing.JCheckBoxprefOtherUploadprivate javax.swing.JCheckBoxprefUseIgnoreprivate javax.swing.JCheckBoxprefUseLayer
-
Constructor Summary
Constructors Constructor Description ValidatorTestsPreference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGui(PreferenceTabbedPane gui)Add the GUI elements to the dialog.TabPreferenceSettinggetTabPreferenceSetting(PreferenceTabbedPane gui)Returns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting.booleanisExpert()Called to know if the preferences tab has only to be displayed in expert mode.booleanok()Called when OK is pressed to save the setting in the preferences file.
-
-
-
Field Detail
-
prefUseIgnore
private javax.swing.JCheckBox prefUseIgnore
-
prefUseLayer
private javax.swing.JCheckBox prefUseLayer
-
prefOtherUpload
private javax.swing.JCheckBox prefOtherUpload
-
prefOther
private javax.swing.JCheckBox prefOther
-
-
Constructor Detail
-
ValidatorTestsPreference
public ValidatorTestsPreference()
-
-
Method Detail
-
addGui
public void addGui(PreferenceTabbedPane gui)
Description copied from interface:PreferenceSettingAdd the GUI elements to the dialog. The elements should be initialized after the current preferences.- Specified by:
addGuiin interfacePreferenceSetting- Parameters:
gui- the preferences tab pane
-
ok
public boolean ok()
Description copied from interface:PreferenceSettingCalled when OK is pressed to save the setting in the preferences file. Return true when restart is required.- Specified by:
okin interfacePreferenceSetting- Returns:
trueif restart is required
-
isExpert
public boolean isExpert()
Description copied from interface:PreferenceSettingCalled to know if the preferences tab has only to be displayed in expert mode.- Specified by:
isExpertin interfacePreferenceSetting- 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:SubPreferenceSettingReturns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting.- Specified by:
getTabPreferenceSettingin interfaceSubPreferenceSetting- Parameters:
gui- preferences tabbed pane- Returns:
- parent preference setting
-
-