org.benow.web.theme
Class ThemeManager
java.lang.Object
org.benow.web.theme.ThemeManager
public class ThemeManager
- extends java.lang.Object
|
Method Summary |
static java.lang.String |
getAgentThemeKey()
Gets a string that identifies the users agent and theme. |
static java.lang.String |
getCurrentThemeName()
|
static java.util.List<java.lang.String> |
getItemsFor(java.lang.String path)
|
static java.net.URL |
getSiteDirectoryListingURL()
|
static java.net.URL |
getSitePageTemplateURL()
|
static java.util.List<java.lang.String> |
getStylesFor(java.lang.String path)
Returns all applicable styles in preferred order for the given base style
ie when given
/css/index.css
it might join together the following
html/css/index.css
html/css/index.ipod.css
html/css/index.bluetheme.css
html/css/index.ipod.bluetheme.css
which, when included in order, should provide css overriding. |
static org.benow.java.packager.resource.ResourceEntry |
getThemedResource(java.lang.String path)
|
static org.benow.java.packager.resource.ResourceEntry |
getThemedResource(java.lang.String path,
java.lang.String localDir)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThemeManager
public ThemeManager()
getThemedResource
public static org.benow.java.packager.resource.ResourceEntry getThemedResource(java.lang.String path)
getThemedResource
public static org.benow.java.packager.resource.ResourceEntry getThemedResource(java.lang.String path,
java.lang.String localDir)
getCurrentThemeName
public static java.lang.String getCurrentThemeName()
getSitePageTemplateURL
public static java.net.URL getSitePageTemplateURL()
getSiteDirectoryListingURL
public static java.net.URL getSiteDirectoryListingURL()
getStylesFor
public static java.util.List<java.lang.String> getStylesFor(java.lang.String path)
throws java.io.IOException
Returns all applicable styles in preferred order for the given base style
ie when given
/css/index.css
it might join together the following
html/css/index.css
html/css/index.ipod.css
html/css/index.bluetheme.css
html/css/index.ipod.bluetheme.css
which, when included in order, should provide css overriding.
- Parameters:
path -
- Returns:
-
- Throws:
java.io.IOException
getItemsFor
public static java.util.List<java.lang.String> getItemsFor(java.lang.String path)
getAgentThemeKey
public static java.lang.String getAgentThemeKey()
- Gets a string that identifies the users agent and theme.
- Returns: