Package com.helger.html.resource.css
Interface ICSSProvider
-
- All Superinterfaces:
IHTMLResourceProvider,Serializable
- All Known Subinterfaces:
ICSSCodeProvider,ICSSPathProvider
- All Known Implementing Classes:
ConstantCSSCodeProvider,ConstantCSSPathProvider
@MustImplementEqualsAndHashcode public interface ICSSProvider extends IHTMLResourceProvider
Base for external CSS provider with all constraints- Author:
- Philip Helger
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_CONDITIONAL_COMMENTstatic com.helger.css.media.ICSSMediaListDEFAULT_CSS_MEDIA_LIST-
Fields inherited from interface com.helger.html.resource.IHTMLResourceProvider
DEFAULT_IS_BUNDLABLE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetConditionalComment()com.helger.css.media.ICSSMediaListgetMediaList()booleanisBundlable()
-
-
-
Field Detail
-
DEFAULT_CONDITIONAL_COMMENT
static final String DEFAULT_CONDITIONAL_COMMENT
-
DEFAULT_CSS_MEDIA_LIST
static final com.helger.css.media.ICSSMediaList DEFAULT_CSS_MEDIA_LIST
-
-
Method Detail
-
getConditionalComment
@Nullable String getConditionalComment()
- Returns:
- The conditional comment required for this JS item or
nullif it applies to all browsers.
-
getMediaList
@Nonnull @ReturnsMutableCopy com.helger.css.media.ICSSMediaList getMediaList()
- Returns:
- The media list for which this CSS item applies. Never
nullbut maybe empty.
-
isBundlable
boolean isBundlable()
- Specified by:
isBundlablein interfaceIHTMLResourceProvider- Returns:
- Whether or not this script can be bundled to a big CSS profile. For some files this is not possible.
-
-