Class ValidatorTestsPreference
java.lang.Object
org.openstreetmap.josm.gui.preferences.validator.ValidatorTestsPreference
- All Implemented Interfaces:
PreferenceSetting,SubPreferenceSetting
The general validator preferences, allowing to enable/disable tests.
- Since:
- 6666
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFactory used to create a newValidatorTestsPreference. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the GUI elements to the dialog.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 Details
-
prefUseIgnore
-
prefUseLayer
-
prefOtherUpload
-
prefOther
-
allTests
The list of all tests
-
-
Constructor Details
-
ValidatorTestsPreference
public ValidatorTestsPreference()
-
-
Method Details
-
addGui
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
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
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
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
-