Class LocaleSelector
- java.lang.Object
-
- org.libreoffice.ide.eclipse.core.editors.utils.LocaleSelector
-
public class LocaleSelector extends java.lang.ObjectComponent for the selection of a locale.
-
-
Constructor Summary
Constructors Constructor Description LocaleSelector(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent)Creates the control on a form.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(ILocaleListener pListener)protected java.util.LocalegetCurrentLocale()voidloadLocales(java.util.ArrayList<java.util.Locale> pLocales)Replace all the previous locales by these new ones.protected voidremoveListener(ILocaleListener pListener)
-
-
-
Method Detail
-
addListener
public void addListener(ILocaleListener pListener)
- Parameters:
pListener- the listener to add
-
removeListener
protected void removeListener(ILocaleListener pListener)
- Parameters:
pListener- the listener to remove.
-
getCurrentLocale
protected java.util.Locale getCurrentLocale()
- Returns:
- the currently selected locale.
nullif no locale selected.
-
loadLocales
public void loadLocales(java.util.ArrayList<java.util.Locale> pLocales)
Replace all the previous locales by these new ones.- Parameters:
pLocales- the new locales to set.
-
-