|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.tools.ToolsRes
public class ToolsRes
ToolsRes provides access to string resources for OSPControls and fires a property change event when the locale changes.
Method Summary | |
---|---|
static void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener. |
static java.lang.String |
getLanguage()
Gets the language for this locale. |
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 |
---|
public static java.lang.String getString(java.lang.String key)
key
- the string to localize
public static java.lang.String getLanguage()
public static void setLocale(java.util.Locale loc)
loc
- the localepublic static void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
property
- the name of the property (only "locale" accepted)listener
- the object requesting property change notificationpublic static void removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
property
- the name of the property (only "locale" accepted)listener
- the listener requesting removal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |