com.retek.commons.gui.core
Class ThemeManager

java.lang.Object
  extended bycom.retek.commons.gui.core.ThemeManager

public class ThemeManager
extends java.lang.Object

This class is responsible for handling the installment of the look and feel selection as well as the creation of the Rcom default themes (mostly font and color schemes).

Retek Inc. Copyright (c) 2002


Constructor Summary
ThemeManager()
          Returns new ThemeManager object.
 
Method Summary
 void setLookAndFeel(java.lang.String plafName)
          Assigns the look and feel based on the plaf input name (pluggable look and feel name).
 void setTheme(java.lang.String filename)
          Assigns the font and color scheme based on the input filename of the properties file containing the scheme information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeManager

public ThemeManager()
Returns new ThemeManager object.

Method Detail

setLookAndFeel

public void setLookAndFeel(java.lang.String plafName)
                    throws UiThemeException
Assigns the look and feel based on the plaf input name (pluggable look and feel name).

Parameters:
plafName - The name of the look and feel to install.
Throws:
UiThemeException - Thrown if the method fails to install the look and feel.

setTheme

public void setTheme(java.lang.String filename)
              throws UiBundleException
Assigns the font and color scheme based on the input filename of the properties file containing the scheme information. In the properties file, the keyword must end with certain values.

Fonts = "font"

Dimension = "Dimension"

Insets = "margin", "Margin", "insets", or "Insets"

Colors = "background", "Background", "Foreground", "Shadow", "shadow", "highlight", "Highlight", "Color" *

Parameters:
filename - The name of the theme properties file.
Throws:
UiBundleException - Thrown if the method fails to install the theme.


Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25