|
Last change
on this file was 9231, checked in by Don-vip, 10 years ago |
|
javadoc update
|
-
Property svn:eol-style
set to
native
|
|
File size:
936 bytes
|
| Line | |
|---|
| 1 | // License: GPL. For details, see LICENSE file.
|
|---|
| 2 | package 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 | */
|
|---|
| 8 | public interface PreferenceSetting {
|
|---|
| 9 | /**
|
|---|
| 10 | * Add the GUI elements to the dialog. The elements should be initialized after
|
|---|
| 11 | * the current preferences.
|
|---|
| 12 | * @param gui the preferences tab pane
|
|---|
| 13 | */
|
|---|
| 14 | void addGui(PreferenceTabbedPane gui);
|
|---|
| 15 |
|
|---|
| 16 | /**
|
|---|
| 17 | * Called when OK is pressed to save the setting in the preferences file.
|
|---|
| 18 | * Return true when restart is required.
|
|---|
| 19 | * @return {@code true} if restart is required
|
|---|
| 20 | */
|
|---|
| 21 | boolean ok();
|
|---|
| 22 |
|
|---|
| 23 | /**
|
|---|
| 24 | * Called to know if the preferences tab has only to be displayed in expert mode.
|
|---|
| 25 | * @return true if the tab has only to be displayed in expert mode, false otherwise.
|
|---|
| 26 | */
|
|---|
| 27 | boolean isExpert();
|
|---|
| 28 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.