Package org.jmol.i18n
Class Resource
- java.lang.Object
-
- org.jmol.i18n.Resource
-
class Resource extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ResourceBundleresourceprivate java.util.Map<java.lang.String,java.lang.String>resourceMap
-
Constructor Summary
Constructors Modifier Constructor Description privateResource(java.lang.Object resource, java.lang.String className)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.Stringfix(java.lang.String line)(package private) static java.lang.StringgetLanguage()(package private) static ResourcegetResource(Viewer vwr, java.lang.String className, java.lang.String name)(package private) static ResourcegetResourceFromPO(java.lang.String data)applet only -- Simple reading of .po file; necessary for JavaScript; works in Java as well and avoids all those signed applets.(package private) java.lang.StringgetString(java.lang.String string)
-
-
-
Method Detail
-
getResource
static Resource getResource(Viewer vwr, java.lang.String className, java.lang.String name)
-
getString
java.lang.String getString(java.lang.String string)
-
getLanguage
static java.lang.String getLanguage()
-
getResourceFromPO
static Resource getResourceFromPO(java.lang.String data)
applet only -- Simple reading of .po file; necessary for JavaScript; works in Java as well and avoids all those signed applets.- Parameters:
data-- Returns:
- JmolResource
-
fix
static java.lang.String fix(java.lang.String line)
-
-