Class LocaleSelector
java.lang.Object
org.libreoffice.ide.eclipse.core.editors.utils.LocaleSelector
Component for the selection of a locale.
-
Constructor Summary
ConstructorsConstructorDescriptionLocaleSelector(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent) Creates the control on a form. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ILocaleListener listener) protected LocalevoidloadLocales(ArrayList<Locale> locales) Replace all the previous locales by these new ones.protected voidremoveListener(ILocaleListener listener)
-
Constructor Details
-
LocaleSelector
public LocaleSelector(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent) Creates the control on a form.- Parameters:
pToolkit- the toolkit to use for the controls creationpParent- the page composite
-
-
Method Details
-
addListener
- Parameters:
listener- the listener to add
-
removeListener
- Parameters:
listener- the listener to remove.
-
getCurrentLocale
- Returns:
- the currently selected locale.
nullif no locale selected.
-
loadLocales
Replace all the previous locales by these new ones.- Parameters:
locales- the new locales to set.
-