net.sf.zekr.engine.theme
Class Theme

java.lang.Object
  extended by 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

Field Summary
 java.util.Map commonProps
           
 
Constructor Summary
Theme()
           
 
Method Summary
 void add(ThemeData td)
           
 ThemeData get(java.lang.String themeId)
           
 java.util.Collection getAllThemes()
           
 ThemeData getCurrent()
           
static void save(ThemeData td)
          Save a ThemeData configuration file.
 void setCurrent(ThemeData currentTheme)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commonProps

public java.util.Map commonProps
Constructor Detail

Theme

public Theme()
Method Detail

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