Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.common.gui
Class SkinManager

java.lang.Object
  extended by com.citra.common.gui.SkinManager

public class SkinManager
extends Object

A SkinManager.


Method Summary
 String getCurrentTheme()
          Returns the current theme.
 String[] getThemes()
          Returns a list of themes.
static SkinManager instance()
          Returns the instance of SkinManager.
 void setMainComponent(Component c)
          Sets the main component that will be used to update every time the LF changes.
 boolean setTheme(String themeName)
          Sets the theme to themeName.
 boolean setTheme(String themeName, boolean wait)
          Sets the theme to themeName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCurrentTheme

public String getCurrentTheme()
Returns the current theme.

Returns:
the current theme.

getThemes

public String[] getThemes()
Returns a list of themes.

Returns:
the selectable themes.

instance

public static SkinManager instance()
Returns the instance of SkinManager.

Returns:
the SkinManager instance.

setMainComponent

public void setMainComponent(Component c)
Sets the main component that will be used to update every time the LF changes. This is usually a frame component.

Parameters:
c - the main component to assign.

setTheme

public boolean setTheme(String themeName)
Sets the theme to themeName.

Parameters:
themeName - the new theme to assign
Returns:
always true

setTheme

public boolean setTheme(String themeName,
                        boolean wait)
Sets the theme to themeName.

Parameters:
themeName - the new theme to assign
wait - whether to wait for the theme to be applied
Returns:
true if the theme was applied, false otherwise

Copyright © 2011 Citra Technologies. All Rights Reserved.