Class TrackerRes
java.lang.Object
org.opensourcephysics.display.OSPRuntime.Supported
org.opensourcephysics.cabrillo.tracker.TrackerRes
String resources for tracker classes.
- Version:
- 1.0
- Author:
- Douglas Brown
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addListener
(PropertyChangeListener listener) Adds a PropertyChangeListener.static String
Gets the localized value of a string.static void
Sets the locale.Methods inherited from class org.opensourcephysics.display.OSPRuntime.Supported
addListeners, addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListenerSafely, dispose, dispose, firePropertyChange, firePropertyChange, removeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Method Details
-
getString
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
Sets the locale.- Parameters:
loc
- the locale
-
addListener
Adds a PropertyChangeListener.- Parameters:
property
- the name of the property (only "locale" accepted)listener
- the object requesting property change notification
-