public class LanguagePreference extends Object implements SubPreferenceSetting
| Modifier and Type | Class and Description |
|---|---|
static class |
LanguagePreference.Factory |
private static class |
LanguagePreference.LanguageCellRenderer |
private static class |
LanguagePreference.LanguageComboBoxModel |
| Modifier and Type | Field and Description |
|---|---|
private JosmComboBox |
langCombo
the combo box with the available locales
|
private LanguagePreference.LanguageComboBoxModel |
model
the model for the combo box
|
| Constructor and Description |
|---|
LanguagePreference() |
| 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 langCombo
private LanguagePreference.LanguageComboBoxModel model
public LanguagePreference()
public void addGui(PreferenceTabbedPane gui)
PreferenceSettingaddGui in interface PreferenceSettingpublic boolean ok()
PreferenceSettingok in interface PreferenceSettingpublic boolean isExpert()
PreferenceSettingisExpert in interface PreferenceSettingpublic TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
SubPreferenceSettinggetTabPreferenceSetting in interface SubPreferenceSetting