net.clackrouter.jgraph.pad.resources
Class LocaleChangeEvent

java.lang.Object
  extended by net.clackrouter.jgraph.pad.resources.LocaleChangeEvent

public class LocaleChangeEvent
extends java.lang.Object

If the Locale changes this Event will fired by the Translator to all registered LocalChangeListeners.


Field Summary
protected  java.util.Locale newLocale
          Represents the new Locale
protected  java.util.Locale oldLocale
          Represents the old Locale or null
 
Constructor Summary
LocaleChangeEvent(java.util.Locale oldLocale, java.util.Locale newLocale)
          Creates a new Locale Change Event with the old and the new Locale.
 
Method Summary
 java.util.Locale getNewLocale()
          Returns the new Locale
 java.util.Locale getOldLocale()
          Returns the old Locale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oldLocale

protected java.util.Locale oldLocale
Represents the old Locale or null


newLocale

protected java.util.Locale newLocale
Represents the new Locale

Constructor Detail

LocaleChangeEvent

public LocaleChangeEvent(java.util.Locale oldLocale,
                         java.util.Locale newLocale)
Creates a new Locale Change Event with the old and the new Locale.

Method Detail

getOldLocale

public java.util.Locale getOldLocale()
Returns the old Locale


getNewLocale

public java.util.Locale getNewLocale()
Returns the new Locale