Package org.adempiere.webui.theme
Class ThemeManager
java.lang.Object
org.adempiere.webui.theme.ThemeManager
Static methods for web client theme.
- Author:
- hengsin
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
static org.zkoss.image.Image
static String
getIconSclass
(String imagePath) Translate image name to font icon namestatic String
static String
static String
static String
static String
static String
getTheme()
static String
getThemeResource
(String name) Get theme resource urlstatic Boolean
static boolean
static boolean
static String
toClassPathResourcePath
(String zkResourceURL)
-
Field Details
-
ZK_PREFIX_FOR_CLASSPATH_RESOURCE
- See Also:
-
ZK_URL_PREFIX_FOR_CLASSPATH_RESOURCE
- See Also:
-
THEME_PATH_PREFIX
-
-
Constructor Details
-
ThemeManager
public ThemeManager()
-
-
Method Details
-
getLargeLogo
- Returns:
- url for large logo
-
getSmallLogo
- Returns:
- url for small logo
-
getTheme
- Returns:
- name of active theme
-
getStyleSheet
- Returns:
- url of theme stylesheet
-
getStyleSheetByBrowser
- Returns:
- url of theme stylesheet by browser
-
getPreference
- Returns:
- url of theme preference page
-
getBrowserTitle
- Returns:
- title text for browser tab
-
getBrowserIcon
- Returns:
- url for browser icon
-
getThemeResource
Get theme resource url- Parameters:
name
- relative resource name from theme root- Returns:
- full resource url
-
getClientWebLogo
- Returns:
- client web logo if available
- Throws:
IOException
-
isThemeHasCustomCSSFragment
- Returns:
- true if custom css ({theme}/css/fragment/custom.css.dsp) exists
-
isUseCSSForWindowSize
public static boolean isUseCSSForWindowSize()- Returns:
- true if css is use to define size of dialog
-
isUseFontIconForImage
public static boolean isUseFontIconForImage()- Returns:
- true if use font icon instead of image
-
toClassPathResourcePath
- Parameters:
zkResourceURL
- zk resource url for classpath resources (url start with ~./)- Returns:
- Resource path for lookup/loading through class loader (absolute path start with /web)
-
getIconSclass
Translate image name to font icon name- Parameters:
imagePath
-- Returns:
- font icon css class name
-