public final class TaggingPresetPreference extends Object implements SubPreferenceSetting
Modifier and Type | Class and Description |
---|---|
static class |
TaggingPresetPreference.Factory
Factory used to create a new
TaggingPresetPreference . |
static class |
TaggingPresetPreference.PresetPrefHelper
Helper class for tagging presets preferences.
|
(package private) static class |
TaggingPresetPreference.TaggingPresetSourceEditor |
private class |
TaggingPresetPreference.TaggingPresetValidationListener |
Modifier and Type | Field and Description |
---|---|
private static List<SourceProvider> |
presetSourceProviders |
private JCheckBox |
sortMenu |
private SourceEditor |
sources |
private PreferenceTabbedPane.ValidationListener |
validationListener |
Modifier | Constructor and Description |
---|---|
private |
TaggingPresetPreference() |
Modifier and Type | Method and Description |
---|---|
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.
|
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)
Registers a new additional preset source provider.
|
private static final List<SourceProvider> presetSourceProviders
private SourceEditor sources
private final PreferenceTabbedPane.ValidationListener validationListener
private TaggingPresetPreference()
public static boolean registerSourceProvider(SourceProvider provider)
provider
- The preset source providertrue
, if the provider has been added, false
otherwisepublic void addGui(PreferenceTabbedPane gui)
PreferenceSetting
addGui
in interface PreferenceSetting
gui
- the preferences tab panepublic boolean ok()
PreferenceSetting
ok
in interface PreferenceSetting
true
if restart is requiredpublic boolean isExpert()
PreferenceSetting
isExpert
in interface PreferenceSetting
public TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
SubPreferenceSetting
getTabPreferenceSetting
in interface SubPreferenceSetting
gui
- preferences tabbed pane