net.sf.zekr.engine.theme
Class Theme
java.lang.Object
net.sf.zekr.engine.theme.Theme
public class Theme
- extends java.lang.Object
This file holds all the theme data loaded at the startup. Themes are specific directories (now in
res/ui/theme/) with a theme.properties file in it. When importing themes, a zip file
([theme ID].zip), is imported and extracted in theme location on base zekr installation directory, and a
copy of theme.properties is copied to user's zekr home.
- Since:
- Zekr 1.0
- Author:
- Mohsen Saboorian
Constructor Summary |
Theme()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
commonProps
public java.util.Map commonProps
Theme
public Theme()
add
public void add(ThemeData td)
get
public ThemeData get(java.lang.String themeId)
getAllThemes
public java.util.Collection getAllThemes()
setCurrent
public void setCurrent(ThemeData currentTheme)
getCurrent
public ThemeData getCurrent()
save
public static void save(ThemeData td)
throws java.io.IOException
- Save a ThemeData configuration file.
- Parameters:
td
- theme data object to be stored to the disk
- Throws:
java.io.IOException