Class LocaleSelector


  • public class LocaleSelector
    extends java.lang.Object
    Component 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.
    • 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

        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. null if 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.