org.openstreetmap.josm.gui.preferences
Class ServerAccessPreference

java.lang.Object
  extended by org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
      extended by org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
          extended by org.openstreetmap.josm.gui.preferences.ServerAccessPreference
All Implemented Interfaces:
PreferenceSetting, TabPreferenceSetting

public class ServerAccessPreference
extends DefaultTabPreferenceSetting


Nested Class Summary
static class ServerAccessPreference.Factory
           
 
Field Summary
private  OsmApiUrlInputPanel pnlApiUrlPreferences
           
private  AuthenticationPreferencesPanel pnlAuthPreferences
          panel for configuring authentication preferences
private  ProxyPreferencesPanel pnlProxyPreferences
          panel for configuring proxy preferences
private  javax.swing.JTabbedPane tpServerPreferences
           
 
Constructor Summary
private ServerAccessPreference()
           
 
Method Summary
 void addGui(PreferenceTabbedPane gui)
          Add the GUI elements to the dialog.
protected  javax.swing.JPanel buildContentPanel()
          Builds the panel for entering the server access preferences
protected  javax.swing.JPanel buildTabbedServerPreferences()
          Builds the tabbed pane with the server preferences
 void initFromPreferences()
          Initializes the configuration panel with values from the preferences
 boolean ok()
          Saves the values to the preferences
protected  javax.swing.JScrollPane wrapVerticallyScrollablePanel(VerticallyScrollablePanel panel)
          Embeds a vertically scrollable panel in a JScrollPane
 
Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
createPreferenceTabWithScrollPane, getDescription, getIconName, getTitle, getTooltip
 
Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
isExpert
 
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
 

Field Detail

pnlApiUrlPreferences

private OsmApiUrlInputPanel pnlApiUrlPreferences

tpServerPreferences

private javax.swing.JTabbedPane tpServerPreferences

pnlAuthPreferences

private AuthenticationPreferencesPanel pnlAuthPreferences
panel for configuring authentication preferences


pnlProxyPreferences

private ProxyPreferencesPanel pnlProxyPreferences
panel for configuring proxy preferences

Constructor Detail

ServerAccessPreference

private ServerAccessPreference()
Method Detail

wrapVerticallyScrollablePanel

protected javax.swing.JScrollPane wrapVerticallyScrollablePanel(VerticallyScrollablePanel panel)
Embeds a vertically scrollable panel in a JScrollPane

Parameters:
panel - the panel
Returns:
the scroll pane

buildTabbedServerPreferences

protected javax.swing.JPanel buildTabbedServerPreferences()
Builds the tabbed pane with the server preferences

Returns:

buildContentPanel

protected javax.swing.JPanel buildContentPanel()
Builds the panel for entering the server access preferences

Returns:

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.


initFromPreferences

public void initFromPreferences()
Initializes the configuration panel with values from the preferences


ok

public boolean ok()
Saves the values to the preferences



JOSM