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 classServerAccessPreference.FactoryFactory used to create a newServerAccessPreference.
-
Field Summary
Fields Modifier and Type Field Description private OsmApiUrlInputPanelpnlApiUrlPreferencesindicates whether to use the default OSM URL or notprivate AuthenticationPreferencesPanelpnlAuthPreferencesprivate FeaturesPanelpnlFeaturesPreferencesthe panel for messages notifier preferencesprivate OverpassServerPanelpnlOverpassPreferences
-
Constructor Summary
Constructors Modifier Constructor Description privateServerAccessPreference()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddApiUrlChangeListener(java.beans.PropertyChangeListener listener)Adds a listener that will be notified of API URL change.voidaddGui(PreferenceTabbedPane gui)Add the GUI elements to the dialog.private static GBCeopFilledHorizontal()java.lang.StringgetHelpContext()Returns the help context for this preferences settings tab.booleanok()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:PreferenceSettingAdd 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:
trueif restart is required
-
getHelpContext
public java.lang.String 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
-
-