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

java.lang.Object
  extended by com.extjs.gxt.ui.client.util.ThemeManager

public class ThemeManager
extends java.lang.Object

Manages the libraries themes. The BLUE and GRAY themes are registered when the application is initialized.


Constructor Summary
ThemeManager()
           
 
Method Summary
static Theme findTheme(java.lang.String id)
          Returns the theme with the given id.
static Theme getTheme(int index)
          Returns the theme at the given index.
static java.util.List<Theme> getThemes()
          Returns all registered themes.
static void register(Theme theme)
          Registers a theme.
static void unregister(Theme theme)
          Unregisters a theme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeManager

public ThemeManager()
Method Detail

findTheme

public static Theme findTheme(java.lang.String id)
Returns the theme with the given id.

Parameters:
id - the theme id
Returns:
the matching theme or null

getTheme

public static Theme getTheme(int index)
Returns the theme at the given index.

Parameters:
index - the index
Returns:
the theme

getThemes

public static java.util.List<Theme> getThemes()
Returns all registered themes.

Returns:
the themes

register

public static void register(Theme theme)
Registers a theme.

Parameters:
theme - the theme to register.

unregister

public static void unregister(Theme theme)
Unregisters a theme.

Parameters:
theme - the theme to unregister