@ThreadSafe public final class PhotonCSS extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FILENAME |
| Modifier and Type | Method and Description |
|---|---|
static void |
_readCSSIncludes(com.helger.commons.io.resource.IReadableResource aRes,
CSSResourceSet aTarget) |
static com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.html.resource.css.ICSSPathProvider> |
getAllRegisteredCSSIncludesForGlobal() |
static void |
getAllRegisteredCSSIncludesForGlobal(Collection<? super com.helger.html.resource.css.ICSSPathProvider> aTarget) |
static com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.html.resource.css.ICSSPathProvider> |
getAllRegisteredCSSIncludesForThisRequest() |
static void |
getAllRegisteredCSSIncludesForThisRequest(Collection<? super com.helger.html.resource.css.ICSSPathProvider> aTarget) |
static boolean |
hasRegisteredCSSIncludesForGlobal() |
static boolean |
hasRegisteredCSSIncludesForThisRequest() |
static void |
readCSSIncludesForGlobal(com.helger.commons.io.resource.IReadableResource aRes) |
static void |
registerCSSIncludeForGlobal(com.helger.html.resource.css.ICSSPathProvider aCSSPathProvider)
Register a new CSS item for global scope.
|
static void |
registerCSSIncludeForGlobal(int nIndex,
com.helger.html.resource.css.ICSSPathProvider aCSSPathProvider)
Register a new CSS item for global scope.
|
static void |
registerCSSIncludeForThisRequest(com.helger.html.resource.css.ICSSPathProvider aCSSPathProvider)
Register a new CSS item only for this request
|
static void |
unregisterAllCSSIncludesFromGlobal()
Unregister all existing CSS items from global scope.
|
static void |
unregisterAllCSSIncludesFromThisRequest()
Unregister all existing CSS items from this request
|
static void |
unregisterCSSIncludeForGlobal(com.helger.html.resource.css.ICSSPathProvider aCSSPathProvider)
Unregister an existing CSS item for global scope.
|
static void |
unregisterCSSIncludeFromThisRequest(com.helger.html.resource.css.ICSSPathProvider aCSSPathProvider)
Unregister an existing CSS item only from this request
|
public static final String DEFAULT_FILENAME
public static void _readCSSIncludes(@Nonnull com.helger.commons.io.resource.IReadableResource aRes, @Nonnull CSSResourceSet aTarget)
public static void readCSSIncludesForGlobal(@Nonnull com.helger.commons.io.resource.IReadableResource aRes)
public static void registerCSSIncludeForGlobal(@Nonnull com.helger.html.resource.css.ICSSPathProvider aCSSPathProvider)
aCSSPathProvider - The CSS path provider to use. May not be null.public static void registerCSSIncludeForGlobal(int nIndex,
@Nonnull
com.helger.html.resource.css.ICSSPathProvider aCSSPathProvider)
nIndex - The index to be used. If the value is < 0 the value is ignored
and item is appended.aCSSPathProvider - The CSS path provider to use. May not be null.public static void unregisterCSSIncludeForGlobal(@Nonnull com.helger.html.resource.css.ICSSPathProvider aCSSPathProvider)
aCSSPathProvider - The CSS path provider to use. May not be null.public static void unregisterAllCSSIncludesFromGlobal()
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.html.resource.css.ICSSPathProvider> getAllRegisteredCSSIncludesForGlobal()
null set with all CSS paths to be included
globally.public static void getAllRegisteredCSSIncludesForGlobal(@Nonnull Collection<? super com.helger.html.resource.css.ICSSPathProvider> aTarget)
public static boolean hasRegisteredCSSIncludesForGlobal()
true if at least a single CSS path has been registered
globally.public static void registerCSSIncludeForThisRequest(@Nonnull com.helger.html.resource.css.ICSSPathProvider aCSSPathProvider)
aCSSPathProvider - The CSS path provider to use. May not be null.public static void unregisterCSSIncludeFromThisRequest(@Nonnull com.helger.html.resource.css.ICSSPathProvider aCSSPathProvider)
aCSSPathProvider - The CSS path provider to use. May not be null.public static void unregisterAllCSSIncludesFromThisRequest()
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.html.resource.css.ICSSPathProvider> getAllRegisteredCSSIncludesForThisRequest()
null set with all CSS paths to be included in
this request.public static void getAllRegisteredCSSIncludesForThisRequest(@Nonnull Collection<? super com.helger.html.resource.css.ICSSPathProvider> aTarget)
public static boolean hasRegisteredCSSIncludesForThisRequest()
true if at least a single CSS path has been registered
for this request onlyCopyright © 2014–2023 Philip Helger. All rights reserved.