org.openoffice.ide.eclipse.core.editors.main
Class LocaleSelector

java.lang.Object
  extended by 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.
 
Method Summary
protected  void addListener(ILocaleListener pListener)
           
protected  java.util.Locale getCurrentLocale()
           
protected  void loadLocales(java.util.ArrayList<java.util.Locale> pLocales)
          Replace all the previous locales by these new ones.
protected  void removeListener(ILocaleListener pListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 creation
pParent - the page composite
Method Detail

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.