@NotThreadSafe public class CSSPageRule extends Object implements ICSSTopLevelRule, ICSSVersionAware, ICSSSourceLocationAware
@page rule.@page {
size: auto;
margin: 10%;
}| Constructor and Description |
|---|
CSSPageRule(Iterable<String> aSelectors) |
CSSPageRule(String sPseudoPage) |
| Modifier and Type | Method and Description |
|---|---|
CSSPageRule |
addMember(ICSSPageRuleMember aMember) |
CSSPageRule |
addMember(int nIndex,
ICSSPageRuleMember aMember) |
boolean |
equals(Object o) |
com.helger.commons.collection.impl.ICommonsList<ICSSPageRuleMember> |
getAllMembers() |
com.helger.commons.collection.impl.ICommonsList<String> |
getAllSelectors() |
String |
getAsCSSString(ICSSWriterSettings aSettings,
int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to
an output.
|
ICSSPageRuleMember |
getMemberAtIndex(int nIndex) |
int |
getMemberCount() |
ECSSVersion |
getMinimumCSSVersion() |
CSSSourceLocation |
getSourceLocation() |
int |
hashCode() |
boolean |
hashMembers() |
com.helger.commons.state.EChange |
removeAllMembers() |
com.helger.commons.state.EChange |
removeMember(ICSSPageRuleMember aMember) |
com.helger.commons.state.EChange |
removeMember(int nIndex) |
CSSPageRule |
setMemberAtIndex(int nIndex,
ICSSPageRuleMember aNewDeclaration) |
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 public com.helger.commons.collection.impl.ICommonsList<String> getAllSelectors()
@Nonnull public CSSPageRule addMember(@Nonnull ICSSPageRuleMember aMember)
@Nonnull public CSSPageRule addMember(@Nonnegative int nIndex, @Nonnull ICSSPageRuleMember aMember)
@Nonnull public com.helger.commons.state.EChange removeMember(@Nonnull ICSSPageRuleMember aMember)
@Nonnull public com.helger.commons.state.EChange removeMember(@Nonnegative int nIndex)
@Nonnull public com.helger.commons.state.EChange removeAllMembers()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<ICSSPageRuleMember> getAllMembers()
@Nullable public ICSSPageRuleMember getMemberAtIndex(@Nonnegative int nIndex)
@Nonnull public CSSPageRule setMemberAtIndex(@Nonnegative int nIndex, @Nonnull ICSSPageRuleMember aNewDeclaration)
public boolean hashMembers()
@Nonnegative public int getMemberCount()
@Nonnull 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.@Nullable public final CSSSourceLocation getSourceLocation()
getSourceLocation in interface ICSSSourceLocationAwarenull if an object was not read but manually
created.public final void setSourceLocation(@Nullable CSSSourceLocation aSourceLocation)
ICSSSourceLocationAwaresetSourceLocation in interface ICSSSourceLocationAwareaSourceLocation - The source location to use. May be null.Copyright © 2014–2022 Philip Helger. All rights reserved.