@NotThreadSafe public class CSSSupportsRule extends AbstractHasTopLevelRules implements ICSSTopLevelRule, ICSSSourceLocationAware, ICSSVersionAware
@supports rule: a list of style rules only
valid when a certain declaration is available. See
ECSSSpecification.CSS3_CONDITIONAL@supports (transition-property: color) {
div { color:red; }
}m_aRules| Constructor and Description |
|---|
CSSSupportsRule() |
addRule, addRule, getAllFontFaceRules, getAllKeyframesRules, getAllMediaRules, getAllPageRules, getAllRules, getAllRules, getAllStyleRules, getAllSupportsRules, getAllUnknownRules, getAllViewportRules, getFontFaceRuleAtIndex, getFontFaceRuleCount, getKeyframesRuleAtIndex, getKeyframesRuleCount, getMediaRuleAtIndex, getMediaRuleCount, getPageRuleAtIndex, getPageRuleCount, getRule, getRuleAtIndex, getRuleCount, getStyleRuleAtIndex, getStyleRuleCount, getSupportsRuleAtIndex, getSupportsRuleCount, getUnknownRuleAtIndex, getUnknownRuleCount, getViewportRuleAtIndex, getViewportRuleCount, hasFontFaceRules, hasKeyframesRules, hasMediaRules, hasPageRules, hasRules, hasStyleRules, hasSupportsRules, hasUnknownRules, hasViewportRules, removeAllRules, removeRule, removeRule, removeRulesclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsCSSString, getAsCSSStringpublic boolean hasSupportConditionMembers()
@Nonnegative public int getSupportsConditionMemberCount()
@Nonnull public CSSSupportsRule addSupportConditionMember(@Nonnull ICSSSupportsConditionMember aMember)
@Nonnull public CSSSupportsRule addSupportConditionMember(@Nonnegative int nIndex, @Nonnull ICSSSupportsConditionMember aMember)
@Nonnull public com.helger.commons.state.EChange removeSupportsConditionMember(@Nonnull ICSSSupportsConditionMember aMember)
@Nonnull public com.helger.commons.state.EChange removeSupportsConditionMember(@Nonnegative int nIndex)
@Nonnull public com.helger.commons.state.EChange removeAllSupportsConditionMembers()
EChange.CHANGED if any supports condition was removed,
EChange.UNCHANGED otherwise. Never null.@Nullable public ICSSSupportsConditionMember getSupportsConditionMemberAtIndex(@Nonnegative int nIndex)
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<ICSSSupportsConditionMember> getAllSupportConditionMembers()
@Nonnull @Nonempty public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel)
ICSSWriteablegetAsCSSString in interface ICSSWriteableaSettings - The settings to be used to format the output. May not be
null.nIndentLevel - The current indentation levelnull.@Nonnull public ECSSVersion getMinimumCSSVersion()
getMinimumCSSVersion in interface ICSSVersionAwarenull.public void setSourceLocation(@Nullable CSSSourceLocation aSourceLocation)
ICSSSourceLocationAwaresetSourceLocation in interface ICSSSourceLocationAwareaSourceLocation - The source location to use. May be null.@Nullable public CSSSourceLocation getSourceLocation()
getSourceLocation in interface ICSSSourceLocationAwarenull if an object was not read but manually
created.Copyright © 2014–2018 Philip Helger. All rights reserved.