|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jmp3renamer.Main
public class Main
The backbone of JMP3Renamer.
Field Summary | |
---|---|
private String |
CONFIG_FILE
|
private static Properties |
english
|
private static Properties |
lang
Properties hashtable, which holds all used Strings according to the selected language. |
private static Logger |
logger
|
private static MainGUI |
mainGUI
The GUI of JMP3Renamer. |
private String |
PLUGINMANAGER_URL
|
private static Properties |
props
Properties hashtable, which holds all configuration settings concerning the core of jmp3renamer (without plugins, they have thier own conf). |
private SplashScreen |
splash
|
private static ArrayList |
supportedLanguages
ArrayList, which defines the supported languages. |
static String |
VERSION
|
Constructor Summary | |
---|---|
Main(String[] args)
|
Method Summary | |
---|---|
void |
exit()
Called, if the user wants to exit JMP3Renamer. |
static MainGUI |
getGUI()
Returns the GUI of JMP3Renamer. |
static Properties |
getLanguageTable(String locale)
|
static String |
getProperty(String key)
Gets a configuration setting. |
static ArrayList |
getSupportedLanguages()
Returns an ArrayList with all supported languages. |
private void |
initGUI()
Initliazes the GUI. |
void |
initLogger()
Initializes the logging of JMP3Renamer. |
private void |
loadConfig()
Sets default settings and tries to load the configuration from a file. |
private void |
loadLanguage()
Loads the language. |
static void |
loadLanguageFromJar(Properties lang,
String locale)
Loads the translations for the given locale in the lang table |
static void |
loadlLanguageFromFile(Properties lang,
String locale)
|
private void |
loadPlugIns()
Tries to load the plugins. |
static void |
main(String[] args)
Returns a list of all loaded plugins. |
void |
saveConfig()
Saves the current configuration. |
static void |
setLookAndFeel()
|
static void |
setProperty(String key,
String value)
Sets a configuration setting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VERSION
private final String PLUGINMANAGER_URL
private final String CONFIG_FILE
private static Logger logger
private SplashScreen splash
private static Properties lang
Main#getTranslation(String word).
,
loadLanguage().
private static Properties english
private static ArrayList supportedLanguages
loadLanguage().
private static Properties props
private static MainGUI mainGUI
Constructor Detail |
---|
Main(String[] args)
Method Detail |
---|
public static void setLookAndFeel()
public void exit()
private void loadConfig()
props
public void saveConfig()
props
private void loadLanguage()
lang
,
Locale.getDefault()
public void initLogger()
Logger
private void initGUI()
MainGUI
private void loadPlugIns()
public static ArrayList getSupportedLanguages()
supportedLanguages
public static void setProperty(String key, String value)
key
- the name of the settingvalue
- the value of the settingprops
,
getProperty(String key)
public static String getProperty(String key)
key
- the name of the setting
public static MainGUI getGUI()
public static void main(String[] args)
public static Properties getLanguageTable(String locale) throws IOException
IOException
Translatable.getLanguageTable(String)
public static void loadLanguageFromJar(Properties lang, String locale) throws IOException
locale
-
IOException
lang
public static void loadlLanguageFromFile(Properties lang, String locale) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |