public final class ServerAccessPreference extends DefaultTabPreferenceSetting
Modifier and Type | Class and Description |
---|---|
static class |
ServerAccessPreference.Factory
Factory used to create a new
ServerAccessPreference . |
Modifier and Type | Field and Description |
---|---|
private OsmApiUrlInputPanel |
pnlApiUrlPreferences
indicates whether to use the default OSM URL or not
|
Modifier | Constructor and Description |
---|---|
private |
ServerAccessPreference() |
Modifier and Type | Method and 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 javax.swing.JPanel |
buildContentPanel()
Builds the panel for entering the server access preferences
|
private javax.swing.JPanel |
buildTabbedServerPreferences()
Builds the tabbed pane with the server preferences
|
java.lang.String |
getHelpContext()
Returns the help context for this preferences settings tab.
|
boolean |
ok()
Saves the values to the preferences
|
addSubTab, addSubTab, createPreferenceTabWithScrollPane, getDescription, getIconName, getSubTab, getTabPane, getTitle, getTooltip, registerSubTab, selectSubTab
isExpert, saveBoolean, saveDouble, saveInt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isExpert
private final OsmApiUrlInputPanel pnlApiUrlPreferences
private ServerAccessPreference()
private javax.swing.JPanel buildTabbedServerPreferences()
private javax.swing.JPanel buildContentPanel()
public void addApiUrlChangeListener(java.beans.PropertyChangeListener listener)
listener
- the listenerpublic void addGui(PreferenceTabbedPane gui)
PreferenceSetting
gui
- the preferences tab panepublic boolean ok()
true
if restart is requiredpublic java.lang.String getHelpContext()
TabPreferenceSetting
getHelpContext
in interface TabPreferenceSetting
getHelpContext
in class DefaultTabPreferenceSetting