source: josm/trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceSetting.java@ 7509

Last change on this file since 7509 was 6380, checked in by Don-vip, 11 years ago

update license/copyright information

  • Property svn:eol-style set to native
File size: 849 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.preferences;
3
4/**
5 * Base interface of Preferences settings, should not be directly implemented,
6 * see {@link TabPreferenceSetting} and {@link SubPreferenceSetting}.
7 */
8public interface PreferenceSetting {
9 /**
10 * Add the GUI elements to the dialog. The elements should be initialized after
11 * the current preferences.
12 */
13 void addGui(PreferenceTabbedPane gui);
14
15 /**
16 * Called when OK is pressed to save the setting in the preferences file.
17 * Return true when restart is required.
18 */
19 boolean ok();
20
21 /**
22 * Called to know if the preferences tab has only to be displayed in expert mode.
23 * @return true if the tab has only to be displayed in expert mode, false otherwise.
24 */
25 public boolean isExpert();
26}
Note: See TracBrowser for help on using the repository browser.