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

Revision 4989, 868 bytes checked in by Don-vip, 3 months ago (diff)

Comments on the new PreferenceSettings interface hierarchy

  • Property svn:eol-style set to native
Line 
1// License: GPL. Copyright 2007 by Immanuel Scholz and others
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.