com.extjs.gxt.ui.client.util
Class Theme

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.BaseModelData
      extended by com.extjs.gxt.ui.client.util.Theme
All Implemented Interfaces:
ModelData, java.io.Serializable
Direct Known Subclasses:
Access, Slate

public class Theme
extends BaseModelData

A UI theme. Themes should be registered via the @link ThemeManager as soon as the application module is loaded (onModuleLoad).

See Also:
BLUE, GRAY, Serialized Form

Field Summary
static Theme BLUE
          Default GXT blue theme.
static Theme GRAY
          GXT gray theme (default path is 'gxt/css/gxt-gray.css').
 
Fields inherited from class com.extjs.gxt.ui.client.data.BaseModelData
allowNestedValues, map
 
Constructor Summary
protected Theme()
           
  Theme(java.lang.String id, java.lang.String name, java.lang.String file)
          Creates a new theme.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> asMap()
           
 java.lang.String getFile()
          Returns the theme's CSS file.
 java.lang.String getId()
          Returns the theme id.
 java.lang.String getName()
          Returns the theme name.
 void init()
          Well be called when theme is initialized.
 
Methods inherited from class com.extjs.gxt.ui.client.data.BaseModelData
get, get, getProperties, getPropertyNames, isAllowNestedValues, remove, set, setAllowNestedValues, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLUE

public static Theme BLUE
Default GXT blue theme.


GRAY

public static Theme GRAY
GXT gray theme (default path is 'gxt/css/gxt-gray.css').

Constructor Detail

Theme

protected Theme()

Theme

public Theme(java.lang.String id,
             java.lang.String name,
             java.lang.String file)
Creates a new theme.

Parameters:
id - the theme id
name - the theme name
file - the CSS file
Method Detail

getId

public java.lang.String getId()
Returns the theme id.

Returns:
the theme id

getName

public java.lang.String getName()
Returns the theme name.

Returns:
the theme name

getFile

public java.lang.String getFile()
Returns the theme's CSS file.

Returns:
the file including the path

asMap

public java.util.Map<java.lang.String,java.lang.Object> asMap()

init

public void init()
Well be called when theme is initialized. Subclasses should override to perform any theme specific initialization.