Class ServerAccessPreference
- java.lang.Object
-
- org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
-
- org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
-
- org.openstreetmap.josm.gui.preferences.server.ServerAccessPreference
-
- All Implemented Interfaces:
PreferenceSetting
,TabPreferenceSetting
public final class ServerAccessPreference extends DefaultTabPreferenceSetting
Connection preferences, including authentication and proxy sub-preferences.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerAccessPreference.Factory
Factory used to create a newServerAccessPreference
.
-
Field Summary
Fields Modifier and Type Field Description private OsmApiUrlInputPanel
pnlApiUrlPreferences
indicates whether to use the default OSM URL or notprivate AuthenticationPreferencesPanel
pnlAuthPreferences
private FeaturesPanel
pnlFeaturesPreferences
the panel for messages notifier preferencesprivate OverpassServerPanel
pnlOverpassPreferences
-
Constructor Summary
Constructors Modifier Constructor Description private
ServerAccessPreference()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addApiUrlChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener that will be notified of API URL change.void
addGui(PreferenceTabbedPane gui)
Add the GUI elements to the dialog.private static GBC
eopFilledHorizontal()
java.lang.String
getHelpContext()
Returns the help context for this preferences settings tab.boolean
ok()
Saves the values to the preferences-
Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
addSubTab, addSubTab, canBeHidden, createPreferenceTabWithScrollPane, getDescription, getIconName, getSelectedSubTab, getSubTab, getTabPane, getTitle, getTooltip, registerSubTab, selectSubTab
-
Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
isExpert, saveBoolean, saveDouble, saveInt
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.gui.preferences.PreferenceSetting
isExpert
-
Methods inherited from interface org.openstreetmap.josm.gui.preferences.TabPreferenceSetting
getIcon
-
-
-
-
Field Detail
-
pnlApiUrlPreferences
private final OsmApiUrlInputPanel pnlApiUrlPreferences
indicates whether to use the default OSM URL or not
-
pnlAuthPreferences
private final AuthenticationPreferencesPanel pnlAuthPreferences
-
pnlFeaturesPreferences
private final FeaturesPanel pnlFeaturesPreferences
the panel for messages notifier preferences
-
pnlOverpassPreferences
private final OverpassServerPanel pnlOverpassPreferences
-
-
Constructor Detail
-
ServerAccessPreference
private ServerAccessPreference()
-
-
Method Detail
-
addApiUrlChangeListener
public void addApiUrlChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener that will be notified of API URL change.- Parameters:
listener
- the listener- Since:
- 6523
-
eopFilledHorizontal
private static GBC eopFilledHorizontal()
-
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.- Parameters:
gui
- the preferences tab pane
-
ok
public boolean ok()
Saves the values to the preferences- Returns:
true
if restart is required
-
getHelpContext
public java.lang.String getHelpContext()
Description copied from interface:TabPreferenceSetting
Returns the help context for this preferences settings tab.- Specified by:
getHelpContext
in interfaceTabPreferenceSetting
- Overrides:
getHelpContext
in classDefaultTabPreferenceSetting
- Returns:
- the help context for this preferences settings tab
-
-