public class LafPreference extends Object implements SubPreferenceSetting
| Modifier and Type | Class and Description |
|---|---|
static class |
LafPreference.Factory
Factory used to create a new
LafPreference. |
| Modifier and Type | Field and Description |
|---|---|
private JCheckBox |
dynamicButtons |
private JCheckBox |
isoDates |
private JosmComboBox<UIManager.LookAndFeelInfo> |
lafCombo
ComboBox with all look and feels.
|
private JCheckBox |
modeless |
private JCheckBox |
nativeFileChoosers |
(package private) JPanel |
panel |
private JCheckBox |
showID |
private JCheckBox |
showLocalizedName |
private JCheckBox |
showSplashScreen |
| Constructor and Description |
|---|
LafPreference() |
| 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.
|
private JosmComboBox<UIManager.LookAndFeelInfo> lafCombo
private final JCheckBox showSplashScreen
private final JCheckBox showLocalizedName
private final JCheckBox dynamicButtons
private final JCheckBox nativeFileChoosers
public LafPreference()
public void addGui(PreferenceTabbedPane gui)
PreferenceSettingaddGui in interface PreferenceSettinggui - the preferences tab panepublic boolean ok()
PreferenceSettingok in interface PreferenceSettingtrue if restart is requiredpublic boolean isExpert()
PreferenceSettingisExpert in interface PreferenceSettingpublic TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
SubPreferenceSettinggetTabPreferenceSetting in interface SubPreferenceSettinggui - preferences tabbed pane