Class AdvancedPreference
java.lang.Object
org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
org.openstreetmap.josm.gui.preferences.advanced.AdvancedPreference
- All Implemented Interfaces:
PreferenceSetting,TabPreferenceSetting
Advanced preferences, allowing to set preference entries directly.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classRequiresLogging.isDebugEnabled(), otherwise dataset is unloadedstatic classFactory used to create a newAdvancedPreference.private classprivate final classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Comparator<PrefEntry>private PreferencesTableprivate JosmTextField -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the GUI elements to the dialog.private voidprivate static File[]askUserForCustomSettingsFiles(boolean saveFileFlag, String title) private JPopupMenuprivate voidReturns the help context for this preferences settings tab.private JMenubooleanisExpert()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.prepareData(Map<String, Setting<?>> loaded, Map<String, Setting<?>> orig, Map<String, Setting<?>> defaults) private voidreadPreferences(Preferences tmpPrefs) private voidMethods inherited from class org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
addSubTab, addSubTab, canBeHidden, createPreferenceTabWithScrollPane, getDescription, getIconName, getSelectedSubTab, getSubTab, getTabPane, getTitle, getTooltip, registerSubTab, selectSubTabMethods inherited from class org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
saveBoolean, saveDouble, saveIntMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.gui.preferences.TabPreferenceSetting
getIcon
-
Field Details
-
allData
-
displayData
-
txtFilter
-
table
-
profileTypes
-
customComparator
-
-
Constructor Details
-
AdvancedPreference
private AdvancedPreference()
-
-
Method Details
-
isExpert
Description copied from interface:PreferenceSettingCalled to know if the preferences tab has only to be displayed in expert mode.- Specified by:
isExpertin interfacePreferenceSetting- Overrides:
isExpertin classDefaultPreferenceSetting- Returns:
- true if the tab has only to be displayed in expert mode, false otherwise.
-
addGui
Description copied from interface:PreferenceSettingAdd the GUI elements to the dialog. The elements should be initialized after the current preferences.- Parameters:
gui- the preferences tab pane
-
readPreferences
-
askUserForCustomSettingsFiles
-
exportSelectedToXML
-
readPreferencesFromXML
-
prepareData
-
buildPopupMenu
-
getProfileMenu
-
applyFilter
-
ok
Description copied from interface:PreferenceSettingCalled when OK is pressed to save the setting in the preferences file. Return true when restart is required.- Returns:
trueif restart is required
-
getHelpContext
Description copied from interface:TabPreferenceSettingReturns the help context for this preferences settings tab.- Specified by:
getHelpContextin interfaceTabPreferenceSetting- Overrides:
getHelpContextin classDefaultTabPreferenceSetting- Returns:
- the help context for this preferences settings tab
-