Package org.adempiere.webui.theme
Class ThemeManager
- java.lang.Object
-
- org.adempiere.webui.theme.ThemeManager
-
public final class ThemeManager extends Object
- Author:
- hengsin
-
-
Field Summary
Fields Modifier and Type Field Description static StringTHEME_PATH_PREFIXstatic StringZK_PREFIX_FOR_CLASSPATH_RESOURCEstatic StringZK_URL_PREFIX_FOR_CLASSPATH_RESOURCE
-
Constructor Summary
Constructors Constructor Description ThemeManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetBrowserIcon()static StringgetBrowserTitle()static org.zkoss.image.ImagegetClientWebLogo()static StringgetLargeLogo()static StringgetPreference()static StringgetSmallLogo()static StringgetStyleSheet()static StringgetStyleSheetByBrowser()static StringgetTheme()static StringgetThemeResource(String name)Get theme resource urlstatic BooleanisThemeHasCustomCSSFragment()static booleanisUseCSSForWindowSize()static booleanisUseFontIconForImage()static StringtoClassPathResourcePath(String zkResourceURL)
-
-
-
Field Detail
-
ZK_PREFIX_FOR_CLASSPATH_RESOURCE
public static final String ZK_PREFIX_FOR_CLASSPATH_RESOURCE
- See Also:
- Constant Field Values
-
ZK_URL_PREFIX_FOR_CLASSPATH_RESOURCE
public static final String ZK_URL_PREFIX_FOR_CLASSPATH_RESOURCE
- See Also:
- Constant Field Values
-
THEME_PATH_PREFIX
public static String THEME_PATH_PREFIX
-
-
Method Detail
-
getLargeLogo
public static String getLargeLogo()
- Returns:
- url for large logo
-
getSmallLogo
public static String getSmallLogo()
- Returns:
- url for small logo
-
getTheme
public static String getTheme()
- Returns:
- name of active theme
-
getStyleSheet
public static String getStyleSheet()
- Returns:
- url of theme stylesheet
-
getStyleSheetByBrowser
public static String getStyleSheetByBrowser()
- Returns:
- url of theme stylesheet by browser
-
getPreference
public static String getPreference()
- Returns:
- url of theme preference page
-
getBrowserTitle
public static String getBrowserTitle()
- Returns:
- title text for the browser window
-
getBrowserIcon
public static String getBrowserIcon()
- Returns:
- url for browser icon
-
getThemeResource
public static String getThemeResource(String name)
Get theme resource url- Parameters:
name- relative resource name from theme root- Returns:
- full resource url
-
getClientWebLogo
public static org.zkoss.image.Image getClientWebLogo() throws IOException- Returns:
- client web logo if available
- Throws:
IOException
-
isThemeHasCustomCSSFragment
public static Boolean isThemeHasCustomCSSFragment()
- Returns:
- true if custom css exists
-
isUseCSSForWindowSize
public static boolean isUseCSSForWindowSize()
-
isUseFontIconForImage
public static boolean isUseFontIconForImage()
-
-