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 String
THEME_PATH_PREFIX
static String
ZK_PREFIX_FOR_CLASSPATH_RESOURCE
static String
ZK_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 String
getBrowserIcon()
static String
getBrowserTitle()
static org.zkoss.image.Image
getClientWebLogo()
static String
getLargeLogo()
static String
getPreference()
static String
getSmallLogo()
static String
getStyleSheet()
static String
getStyleSheetByBrowser()
static String
getTheme()
static String
getThemeResource(String name)
Get theme resource urlstatic Boolean
isThemeHasCustomCSSFragment()
static boolean
isUseCSSForWindowSize()
static boolean
isUseFontIconForImage()
static String
toClassPathResourcePath(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()
-
-