org.opensourcephysics.media.core
Class MediaRes

java.lang.Object
  extended by org.opensourcephysics.media.core.MediaRes

public class MediaRes
extends java.lang.Object

String resources for media classes.

Version:
1.0
Author:
Douglas Brown

Method Summary
static java.lang.String getString(java.lang.String key)
          Gets the localized value of a string.
static void setLocale(java.util.Locale locale)
          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 locale)
Sets the locale.

Parameters:
locale - the locale