org.openoffice.ide.eclipse.core.editors.main
Class LocaleSelector
java.lang.Object
org.openoffice.ide.eclipse.core.editors.main.LocaleSelector
public class LocaleSelector
- extends java.lang.Object
Component for the selection of a locale.
- Author:
- cbosdonnat
Constructor Summary |
LocaleSelector(org.eclipse.ui.forms.widgets.FormToolkit pToolkit,
org.eclipse.swt.widgets.Composite pParent)
Creates the control on a form. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
addListener
protected 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.
null
if no locale selected.
loadLocales
protected 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.