net.curre.prefcount.util
Class LocaleExt

java.lang.Object
  extended by net.curre.prefcount.util.LocaleExt

public class LocaleExt
extends java.lang.Object

Object of this class represents locale with extended functionality/properties.

Created date: Jun 2, 2007

Author:
Yevgeny Nyden

Constructor Summary
LocaleExt(java.lang.String language, java.lang.String country, java.lang.String displayLanguage)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 javax.swing.ImageIcon getDisabledIcon()
          Gets the disabled icon that represents this locale.
 java.lang.String getDisplayLanguage()
          Getter for the language display name.
 javax.swing.ImageIcon getEnabledIcon()
          Gets the enabled icon that represents this locale.
 java.util.Locale getLocale()
          Getter for the reference to the locale object.
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocaleExt

public LocaleExt(java.lang.String language,
                 java.lang.String country,
                 java.lang.String displayLanguage)
Constructor.

Parameters:
language - Locale language.
country - Locale country.
displayLanguage - Language display name.
Method Detail

getLocale

public java.util.Locale getLocale()
Getter for the reference to the locale object.

Returns:
Reference to the locale object.

getDisplayLanguage

public java.lang.String getDisplayLanguage()
Getter for the language display name.

Returns:
Language display name.

getEnabledIcon

public javax.swing.ImageIcon getEnabledIcon()
Gets the enabled icon that represents this locale.

Returns:
Enabled icon that represents this locale.

getDisabledIcon

public javax.swing.ImageIcon getDisabledIcon()
Gets the disabled icon that represents this locale.

Returns:
Disabled icon that represents this locale.

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.