|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zkdemo.userguide.FontSizeThemeProvider
public class FontSizeThemeProvider
| Constructor Summary | |
|---|---|
FontSizeThemeProvider()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getFontSizeCookie(Execution exe)
get font size value from cookie |
static java.lang.String |
getSkinCookie(Execution exe)
get skin value from cookie |
java.util.Collection |
getThemeURIs(Execution exe,
java.util.List uris)
Returns a list of the theme's URIs (Collection<String>) of the specified execution, or null if no theme shall be generated. |
static void |
setFondSizeCookie(Execution exe,
java.lang.String fontSize)
set font size value to cookie |
static void |
setSkinCookie(Execution exe,
java.lang.String skin)
set skin value to cookie |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FontSizeThemeProvider()
| Method Detail |
|---|
public java.util.Collection getThemeURIs(Execution exe,
java.util.List uris)
ThemeProvider
getThemeURIs in interface ThemeProviderexe - the current execution (never null), where you can retrieve
the current desktop, request and response.
Note: if your Web application supports multiple devices, you have
to check Desktop.getDevice().uris - the default set of theme's URIs (List<String>),
i.e., the themes defined in language definitions (lang.xml and lang-addon.xml)
and the configuration (the theme-uri elements in web.xml).
Each URI is a String instance.
public static java.lang.String getFontSizeCookie(Execution exe)
exe - Execution
public static void setFondSizeCookie(Execution exe,
java.lang.String fontSize)
exe - ExecutionfontSize - "lg" for larger font, "sm" for smaller font or other string for normal font.public static java.lang.String getSkinCookie(Execution exe)
public static void setSkinCookie(Execution exe,
java.lang.String skin)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||