Synergy Home Page

au.edu.swin.synergy.plugin.dialect
Class BLocale

java.lang.Object
  |
  +--au.edu.swin.synergy.plugin.dialect.BLocale

public class BLocale
extends Object

This version of Locale simply allows us to the toString() method to return the display name rather than the codes.

Author:
Tristan Austin

Constructor Summary
BLocale(String language, String country, String variant)
          Creates a BLocale object as per the java.util.Locale constructor.
 
Method Summary
 Locale getLocale()
          Gets the locale this object represents
 String toString()
          This will use the display name as the value to show the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BLocale

public BLocale(String language,
               String country,
               String variant)
Creates a BLocale object as per the java.util.Locale constructor.
Parameters:
language - The language of the locale
country - The country of the locale
variant - Any variant required
See Also:
Locale
Method Detail

toString

public String toString()
This will use the display name as the value to show the user.
Returns:
The display name for the user
Overrides:
toString in class Object

getLocale

public Locale getLocale()
Gets the locale this object represents
Returns:
The actual locale object

Synergy Home Page