org.opensourcephysics.cabrillo.tracker
Class TrackerRes

java.lang.Object
  extended by org.opensourcephysics.cabrillo.tracker.TrackerRes

public class TrackerRes
extends java.lang.Object

String resources for tracker classes.

Version:
1.0
Author:
Douglas Brown

Method Summary
static void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
          Adds a PropertyChangeListener.
static java.lang.String getString(java.lang.String key)
          Gets the localized value of a string.
static void removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
          Removes a PropertyChangeListener.
static void setLocale(java.util.Locale loc)
          Sets the locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static java.lang.String getString(java.lang.String key)
Gets the localized value of a string. If no localized value is found, the key is returned surrounded by exclamation points.

Parameters:
key - the string to localize
Returns:
the localized string

setLocale

public static void setLocale(java.util.Locale loc)
Sets the locale.

Parameters:
loc - the locale

addPropertyChangeListener

public static void addPropertyChangeListener(java.lang.String property,
                                             java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener.

Parameters:
property - the name of the property (only "locale" accepted)
listener - the object requesting property change notification

removePropertyChangeListener

public static void removePropertyChangeListener(java.lang.String property,
                                                java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener.

Parameters:
property - the name of the property (only "locale" accepted)
listener - the listener requesting removal