@NotThreadSafe public class CSSKeyframesRule extends Object implements ICSSTopLevelRule, ICSSVersionAware, ICSSSourceLocationAware
@keyframes identifier {
0% { top: 0; left: 0; }
30% { top: 50px; }
}| Constructor and Description |
|---|
CSSKeyframesRule(String sDeclaration,
String sAnimationName) |
| Modifier and Type | Method and Description |
|---|---|
CSSKeyframesRule |
addBlock(CSSKeyframesBlock aKeyframesBlock) |
CSSKeyframesRule |
addBlock(int nIndex,
CSSKeyframesBlock aKeyframesBlock) |
boolean |
equals(Object o) |
com.helger.commons.collection.impl.ICommonsList<CSSKeyframesBlock> |
getAllBlocks() |
String |
getAnimationName() |
String |
getAsCSSString(ICSSWriterSettings aSettings,
int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to
an output.
|
CSSKeyframesBlock |
getBlockAtIndex(int nBlockIndex) |
int |
getBlockCount() |
String |
getDeclaration() |
ECSSVersion |
getMinimumCSSVersion() |
CSSSourceLocation |
getSourceLocation() |
boolean |
hasBlocks() |
int |
hashCode() |
static boolean |
isValidDeclaration(String sDeclaration) |
com.helger.commons.state.EChange |
removeAllBlocks()
Remove all blocks.
|
com.helger.commons.state.EChange |
removeBlock(CSSKeyframesBlock aKeyframesBlock) |
com.helger.commons.state.EChange |
removeBlock(int nBlockIndex) |
void |
setSourceLocation(CSSSourceLocation aSourceLocation)
Set the source location of the object, determined while parsing.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsCSSString, getAsCSSString@Nonnull @Nonempty public String getDeclaration()
null nor empty. Always starting with @
and ending with keyframes.public boolean hasBlocks()
@Nonnegative public int getBlockCount()
@Nonnull public CSSKeyframesRule addBlock(@Nonnull CSSKeyframesBlock aKeyframesBlock)
@Nonnull public CSSKeyframesRule addBlock(@Nonnegative int nIndex, @Nonnull CSSKeyframesBlock aKeyframesBlock)
@Nonnull public com.helger.commons.state.EChange removeBlock(@Nonnull CSSKeyframesBlock aKeyframesBlock)
@Nonnull public com.helger.commons.state.EChange removeBlock(@Nonnegative int nBlockIndex)
@Nonnull public com.helger.commons.state.EChange removeAllBlocks()
EChange.CHANGED if any block was removed,
EChange.UNCHANGED otherwise. Never null.@Nullable public CSSKeyframesBlock getBlockAtIndex(@Nonnegative int nBlockIndex)
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<CSSKeyframesBlock> getAllBlocks()
@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.