freemind.main
Class Resources
java.lang.Object
freemind.main.Resources
- All Implemented Interfaces:
- TextTranslator
public class Resources
- extends java.lang.Object
- implements TextTranslator
- Author:
- Dimitri Polivaev
12.07.2005
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createInstance
public static void createInstance(FreeMindMain frame)
getResource
public java.net.URL getResource(java.lang.String resource)
getResourceString
public java.lang.String getResourceString(java.lang.String resource)
getResourceString
public java.lang.String getResourceString(java.lang.String key,
java.lang.String resource)
getInstance
public static Resources getInstance()
getFreemindDirectory
public java.lang.String getFreemindDirectory()
getFreemindVersion
public FreeMindMain.VersionInformation getFreemindVersion()
getIntProperty
public int getIntProperty(java.lang.String key,
int defaultValue)
getBoolProperty
public boolean getBoolProperty(java.lang.String key)
- Parameters:
key
- Property key
- Returns:
- the boolean value of the property resp. the default.
getProperties
public java.util.Properties getProperties()
getProperty
public java.lang.String getProperty(java.lang.String key)
getResources
public java.util.ResourceBundle getResources()
getCountryMap
public java.util.HashMap getCountryMap()
getLogger
public java.util.logging.Logger getLogger(java.lang.String forClass)
logException
public void logException(java.lang.Throwable e)
logException
public void logException(java.lang.Throwable e,
java.lang.String comment)
format
public java.lang.String format(java.lang.String resourceKey,
java.lang.Object[] messageArguments)
createTranslatedString
public NamedObject createTranslatedString(java.lang.String key)
getText
public java.lang.String getText(java.lang.String pKey)
- Specified by:
getText
in interface TextTranslator