Package com.helger.css.propertyvalue
Class CSSValueList
java.lang.Object
com.helger.css.propertyvalue.CSSValueList
- All Implemented Interfaces:
ICSSWriteable,ICSSMultiValue,ICSSValue
Represents a CSS value that has both different property names and multiple
different values. This is e.g. if the property
display is used
with the value inline-block than the result coding should first
emit display:-moz-inline-block; and them
display:inline-block; for FireFox 2.x specific support.- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionCSSValueList(ECSSProperty eProperty, ICSSProperty[] aProperties, String[] aValues, boolean bIsImportant) -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.helger.commons.collection.impl.ICommonsList<CSSValue>getAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel) Get the contents of this object as a serialized CSS string for writing to an output.getProp()inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.css.ICSSWriteable
getAsCSSString, getAsCSSString
-
Constructor Details
-
CSSValueList
public CSSValueList(@Nonnull ECSSProperty eProperty, @Nonnull ICSSProperty[] aProperties, @Nonnull String[] aValues, boolean bIsImportant)
-
-
Method Details
-
getAllContainedValues
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<CSSValue> getAllContainedValues()- Specified by:
getAllContainedValuesin interfaceICSSMultiValue- Returns:
- The contained CSS values. Never
null.
-
getProp
-
getAsCSSString
@Nonnull public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel) Description copied from interface:ICSSWriteableGet the contents of this object as a serialized CSS string for writing to an output.- Specified by:
getAsCSSStringin interfaceICSSWriteable- Parameters:
aSettings- The settings to be used to format the output. May not benull.nIndentLevel- The current indentation level- Returns:
- The content of this object as CSS string. Never
null.
-
equals
-
hashCode
public int hashCode() -
toString
-