|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zkplus.theme.Themes
public class Themes
Utilities for managing standard theme.
Field Summary | |
---|---|
static java.lang.String |
BREEZE_DISPLAY
|
static java.lang.String |
BREEZE_NAME
|
static int |
BREEZE_PRIORITY
|
Constructor Summary | |
---|---|
Themes()
|
Method Summary | |
---|---|
static java.lang.String |
getCurrentTheme()
Returns the current theme name |
static java.lang.String |
getDisplayName(java.lang.String theme)
Return the display name (human name) of the theme |
static int |
getPriority(java.lang.String theme)
Return the priority of the given theme |
static java.lang.String |
getTheme(Execution exe)
Returns the theme specified in cookies |
static java.lang.String[] |
getThemes()
Return an array of all registered theme names |
static boolean |
hasTheme(java.lang.String theme)
Returns true if the theme is registered |
static void |
register(java.lang.String theme)
Register the theme, so it becomes available in the theme list |
static void |
register(java.lang.String theme,
java.lang.String displayName,
int priority)
Register the theme with details |
static void |
setDisplayName(java.lang.String theme,
java.lang.String name)
Set the display name (human name) of the theme |
static void |
setPriority(java.lang.String theme,
int priority)
Set the priority of the theme. |
static void |
setTheme(Execution exe,
java.lang.String theme)
Sets the theme name in cookie |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BREEZE_NAME
public static final java.lang.String BREEZE_DISPLAY
public static final int BREEZE_PRIORITY
Constructor Detail |
---|
public Themes()
Method Detail |
---|
public static void setTheme(Execution exe, java.lang.String theme)
public static java.lang.String getTheme(Execution exe)
exe
- Execution
public static java.lang.String getCurrentTheme()
public static boolean hasTheme(java.lang.String theme)
public static java.lang.String[] getThemes()
public static void register(java.lang.String theme)
public static void register(java.lang.String theme, java.lang.String displayName, int priority)
displayName
- The human name of the themepriority
- Priority is higher if the value the smallerpublic static void setDisplayName(java.lang.String theme, java.lang.String name)
public static java.lang.String getDisplayName(java.lang.String theme)
public static void setPriority(java.lang.String theme, int priority)
priority
- Priority is higher if the value the smallerpublic static int getPriority(java.lang.String theme)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |