public final class ResourceSkinUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
evaluateSkinInPath(String path,
String skinName)
Returns path with
ResourceFactory.SKINNED_RESOURCE_PLACEHOLDER replaced with actual skinName. |
static boolean |
isSkinDependent(String path)
Returns true when path skin is dependent, it means when it contains
ResourceFactory.SKINNED_RESOURCE_PLACEHOLDER. |
static String |
prefixPathWithSkinPlaceholder(String path)
Prefix given path with
ResourceFactory.SKINNED_RESOURCE_PREFIX |
public static boolean isSkinDependent(String path)
ResourceFactory.SKINNED_RESOURCE_PLACEHOLDER.path - the pathResourceFactory.SKINNED_RESOURCE_PLACEHOLDER;
false otherwisepublic static String evaluateSkinInPath(String path, String skinName)
ResourceFactory.SKINNED_RESOURCE_PLACEHOLDER replaced with actual skinName.path - the path to evaluate skinskinName - the name of the skinResourceFactory.SKINNED_RESOURCE_PLACEHOLDER replaced with actual skinName.public static String prefixPathWithSkinPlaceholder(String path)
ResourceFactory.SKINNED_RESOURCE_PREFIXpath - the path to be prefixedResourceFactory.SKINNED_RESOURCE_PREFIXCopyright © 2012 JBoss by Red Hat. All Rights Reserved.