org.openstreetmap.josm.gui.preferences
Interface PreferenceSetting

All Known Subinterfaces:
SubPreferenceSetting, TabPreferenceSetting
All Known Implementing Classes:
AdvancedPreference, AudioPreference, BackupPreference, ColorPreference, DefaultPreferenceSetting, DefaultTabPreferenceSetting, DisplayPreference, DrawingPreference, ImageryPreference, LafPreference, LanguagePreference, MapPaintPreference, MapPreference, PluginPreference, ProjectionPreference, RemoteControlPreference, ServerAccessPreference, ShortcutPreference, TaggingPresetPreference, ToolbarPreferences.Settings, ValidatorPreference

public interface PreferenceSetting

Base interface of Preferences settings, should not be directly implemented, see TabPreferenceSetting and SubPreferenceSetting.


Method Summary
 void addGui(PreferenceTabbedPane gui)
          Add the GUI elements to the dialog.
 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.
 

Method Detail

addGui

void addGui(PreferenceTabbedPane gui)
Add the GUI elements to the dialog. The elements should be initialized after the current preferences.


ok

boolean ok()
Called when OK is pressed to save the setting in the preferences file. Return true when restart is required.


isExpert

boolean isExpert()
Called to know if the preferences tab has only to be displayed in expert mode.

Returns:
true if the tab has only to be displayed in expert mode, false otherwise.


JOSM