com.sun.webui.jsf.util
Class ThemeUtilities

java.lang.Object
  extended by com.sun.webui.jsf.util.ThemeUtilities

public class ThemeUtilities
extends java.lang.Object

Utilities needed by Sun Web Components to retrieve an appropriate Theme.


Constructor Summary
ThemeUtilities()
           
 
Method Summary
static Icon getIcon(Theme theme, java.lang.String iconKey)
          Return an Icon component for the iconKey.
static Theme getTheme(javax.faces.context.FacesContext context)
          Return the default Theme instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeUtilities

public ThemeUtilities()
Method Detail

getTheme

public static Theme getTheme(javax.faces.context.FacesContext context)
Return the default Theme instance. getTheme first looks in the request map for an instance. If an instance does not exist in the request map, obtain an instance from the ThemeFactory. If the theme is obtained from the ThemeFactory place it in the request map.


getIcon

public static Icon getIcon(Theme theme,
                           java.lang.String iconKey)
Return an Icon component for the iconKey.



Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.