org.openstreetmap.josm.gui.preferences.map
Class TaggingPresetPreference

java.lang.Object
  extended by org.openstreetmap.josm.gui.preferences.map.TaggingPresetPreference
All Implemented Interfaces:
PreferenceSetting, SubPreferenceSetting

public class TaggingPresetPreference
extends java.lang.Object
implements SubPreferenceSetting


Nested Class Summary
static class TaggingPresetPreference.Factory
           
static class TaggingPresetPreference.PresetPrefHelper
           
(package private) static class TaggingPresetPreference.TaggingPresetSourceEditor
           
 
Field Summary
private static java.util.List<SourceProvider> presetSourceProviders
           
private  javax.swing.JCheckBox sortMenu
           
private  SourceEditor sources
           
static java.util.Collection<TaggingPreset> taggingPresets
           
private  PreferenceTabbedPane.ValidationListener validationListener
           
 
Constructor Summary
private TaggingPresetPreference()
           
 
Method Summary
 void addGui(PreferenceTabbedPane gui)
          Add the GUI elements to the dialog.
 TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
          Returns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting.
static void initialize()
          Initialize the tagging presets (load and may display error)
 boolean isExpert()
          Called to know if the preferences tab has only to be displayed in expert mode.
 boolean ok()
          Called when OK is pressed to save the setting in the preferences file.
static boolean registerSourceProvider(SourceProvider provider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

presetSourceProviders

private static final java.util.List<SourceProvider> presetSourceProviders

taggingPresets

public static java.util.Collection<TaggingPreset> taggingPresets

sources

private SourceEditor sources

sortMenu

private javax.swing.JCheckBox sortMenu

validationListener

private PreferenceTabbedPane.ValidationListener validationListener
Constructor Detail

TaggingPresetPreference

private TaggingPresetPreference()
Method Detail

registerSourceProvider

public static final boolean registerSourceProvider(SourceProvider provider)

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.

Specified by:
addGui in interface PreferenceSetting

ok

public boolean ok()
Description copied from interface: PreferenceSetting
Called when OK is pressed to save the setting in the preferences file. Return true when restart is required.

Specified by:
ok in interface PreferenceSetting

initialize

public static void initialize()
Initialize the tagging presets (load and may display error)


isExpert

public boolean isExpert()
Description copied from interface: PreferenceSetting
Called to know if the preferences tab has only to be displayed in expert mode.

Specified by:
isExpert in interface PreferenceSetting
Returns:
true if the tab has only to be displayed in expert mode, false otherwise.

getTabPreferenceSetting

public TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
Description copied from interface: SubPreferenceSetting
Returns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting.

Specified by:
getTabPreferenceSetting in interface SubPreferenceSetting


JOSM