public class CSSUtils extends Object
| Constructor and Description |
|---|
CSSUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
adjustCssSkinFolder(String skinFolder)
Captures the (yes) overly complex rules for the skin folder naming convention
|
static String |
getCssHead(String skin,
boolean isInlineRequest) |
static String |
getCssPortalSkin(String skinFolder)
Returns a URL for the portal.css suitable for putting in an href= field.
|
static String |
getCssPortalSkinCDN(String skinFolder)
Returns a URL for the portal.css suitable for putting in an href= field resolved for CDN
|
static String |
getCssPrintSkin(String skinFolder)
Returns a URL for the print.css suitable for putting in an href= field for media="print".
|
static String |
getCssPrintSkinCDN(String skinFolder)
Returns a URL for the print.css suitable for putting in an href= field for media="print"
|
static String |
getCssToolBase()
Returns a URL for the tool_base.css suitable for putting in an href= field.
|
static String |
getCssToolBaseCDN()
Returns a URL for the tool_base.css suitable for putting in an href= fieldresolved for CDN
|
static String |
getCssToolBaseLink(String skin,
boolean isInlineRequest)
Gets the full CSS link for the tool skin (including print version)
|
static String |
getCssToolSkin(String skinFolder)
Returns a URL for the tool.css suitable for putting in an href= field.
|
static String |
getCssToolSkinCDN(String skinFolder)
Returns a URL for the tool.css suitable for putting in an href= field.
|
static String |
getCssToolSkinLink(String skin,
boolean isInlineRequest) |
static String |
getPortalSkinLink(String skin)
Gets the full CSS link for the portal skin
|
static String |
getSkinFromSite(Site site)
Convenience method to retrieve the skin folder from a site
|
public static String getCssToolBase()
cssToolBase URL for the tool_base.csspublic static String getCssToolBaseCDN()
cssToolBase URL for the tool_base.csspublic static String adjustCssSkinFolder(String skinFolder)
skinFolder - The folder where the skins are to be found.skinFolder The adjusted folder where the skins can be found.public static String getCssToolSkin(String skinFolder)
skinFolder - where the tool.css skin lives for this site.cssToolSkin URL for the tool.csspublic static String getCssPrintSkin(String skinFolder)
skinFolder - where the print.css skin lives for this site.cssPrintSkin URL for the print.csspublic static String getCssPortalSkin(String skinFolder)
skinFolder - where the portal.css skin lives for this site.cssPortalSkin URL for the portal.csspublic static String getCssPortalSkinCDN(String skinFolder)
skinFolder - where the portal.css skin lives for this site.cssPortalSkin URL for the portal.csspublic static String getCssToolSkinCDN(String skinFolder)
skinFolder - where the tool.css skin lives for this site.cssToolSkin URL for the tool.csspublic static String getCssPrintSkinCDN(String skinFolder)
skinFolder - where the print.css skin lives for this site.cssPrintSkin URL for the print.csspublic static String getSkinFromSite(Site site)
site - public static String getPortalSkinLink(String skin)
skin - public static String getCssToolBaseLink(String skin, boolean isInlineRequest)
skin - isInlineRequest - Copyright © 2003–2018 University of Michigan. All rights reserved.