Class ProxyPreference
- java.lang.Object
-
- org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
-
- org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
-
- org.openstreetmap.josm.gui.preferences.server.ProxyPreference
-
- All Implemented Interfaces:
PreferenceSetting,TabPreferenceSetting
public final class ProxyPreference extends DefaultTabPreferenceSetting
Proxy sub-preferences in server preferences.- Since:
- 6523
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProxyPreference.FactoryFactory used to create a newProxyPreference.
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<ProxyPreferenceListener>listenersprivate ProxyPreferencesPanelpnlProxyPreferences
-
Constructor Summary
Constructors Modifier Constructor Description privateProxyPreference()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGui(PreferenceTabbedPane gui)Add the GUI elements to the dialog.static booleanaddProxyPreferenceListener(ProxyPreferenceListener listener)Adds a new ProxyPreferenceListener.java.lang.StringgetHelpContext()Returns the help context for this preferences settings tab.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.static booleanremoveProxyPreferenceListener(ProxyPreferenceListener listener)Removes a ProxyPreferenceListener.-
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
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.TabPreferenceSetting
getIcon
-
-
-
-
Field Detail
-
listeners
private static final java.util.Set<ProxyPreferenceListener> listeners
-
pnlProxyPreferences
private ProxyPreferencesPanel pnlProxyPreferences
-
-
Constructor Detail
-
ProxyPreference
private ProxyPreference()
-
-
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.- 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.- 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- Overrides:
isExpertin classDefaultPreferenceSetting- Returns:
- true if the tab has only to be displayed in expert mode, false otherwise.
-
addProxyPreferenceListener
public static boolean addProxyPreferenceListener(ProxyPreferenceListener listener)
Adds a new ProxyPreferenceListener.- Parameters:
listener- the listener to add- Returns:
trueif the listener has been added,falseotherwise- Since:
- 6525
-
removeProxyPreferenceListener
public static boolean removeProxyPreferenceListener(ProxyPreferenceListener listener)
Removes a ProxyPreferenceListener.- Parameters:
listener- the listener to remove- Returns:
trueif the listener has been removed,falseotherwise- Since:
- 6525
-
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
-
-