net.sf.zekr.engine.theme
Class ThemeData

java.lang.Object
  extended by net.sf.zekr.engine.theme.ThemeData

public class ThemeData
extends java.lang.Object

Since:
Zekr 1.0
Author:
Mohsen Saboorian

Field Summary
 java.lang.String author
          Theme author
 java.lang.String baseDir
           
 java.lang.String fileName
           
 java.lang.String id
          Unique identifier for this theme.
 java.lang.String name
          Theme name
 java.util.Map processedProps
          Processed (localized) properties, extracted from props.
 java.util.Map props
          Configuration properties set in theme.properties in the theme folder.
 java.lang.String version
          Theme descriptor version
 
Constructor Summary
ThemeData()
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getPath()
           
 void process(java.lang.String transLang)
          Will fill processedProps from props field
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

props

public java.util.Map props
Configuration properties set in theme.properties in the theme folder.


processedProps

public java.util.Map processedProps
Processed (localized) properties, extracted from props.


name

public java.lang.String name
Theme name


id

public java.lang.String id
Unique identifier for this theme. This should always be equal with the folder name of the theme data files (on res/theme/).


author

public java.lang.String author
Theme author


fileName

public java.lang.String fileName

baseDir

public java.lang.String baseDir

version

public java.lang.String version
Theme descriptor version

Constructor Detail

ThemeData

public ThemeData()
Method Detail

getPath

public java.lang.String getPath()
Returns:
application relative theme path (e.g. res/theme/default). This is the directory of the original theme content on Zekr installed dir.

process

public void process(java.lang.String transLang)
Will fill processedProps from props field

Parameters:
transLang - default translation language

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()