|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.webui.jsf.util.ThemeUtilities
public class ThemeUtilities
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 |
---|
public ThemeUtilities()
Method Detail |
---|
public static Theme getTheme(javax.faces.context.FacesContext context)
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.
public static Icon getIcon(Theme theme, java.lang.String iconKey)
Icon
component for the
iconKey
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |