public class LocaleSelector
extends java.lang.Object
| Constructor and Description |
|---|
LocaleSelector(org.eclipse.ui.forms.widgets.FormToolkit pToolkit,
org.eclipse.swt.widgets.Composite pParent)
Creates the control on a form.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ILocaleListener pListener) |
protected java.util.Locale |
getCurrentLocale() |
void |
loadLocales(java.util.ArrayList<java.util.Locale> pLocales)
Replace all the previous locales by these new ones.
|
protected void |
removeListener(ILocaleListener pListener) |
public LocaleSelector(org.eclipse.ui.forms.widgets.FormToolkit pToolkit,
org.eclipse.swt.widgets.Composite pParent)
pToolkit - the toolkit to use for the controls creationpParent - the page compositepublic void addListener(ILocaleListener pListener)
pListener - the listener to addprotected void removeListener(ILocaleListener pListener)
pListener - the listener to remove.protected java.util.Locale getCurrentLocale()
null if no locale selected.public void loadLocales(java.util.ArrayList<java.util.Locale> pLocales)
pLocales - the new locales to set.