Class KeywordValue
java.lang.Object
io.sf.carte.doc.style.css.property.StyleValue
io.sf.carte.doc.style.css.property.KeywordValue
- All Implemented Interfaces:
CSSValue,ValueItem,Serializable,Cloneable
- Direct Known Subclasses:
InheritValue,InitialValue,RevertValue,UnsetValue
A CSS-wide keyword value, like
inherit.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.CSSValue
CSSValue.CssType, CSSValue.Type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMust access instance through static method. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a copy of this value.booleanGet the general category to which this value belongs.Get the next lexical unit after processing this item.voidUse the given error handler to handle warnings.inthashCode()booleanHas this item any warning to report ?voidsetCssText(String cssText) Attempts to change this value to match the supplied css text.Methods inherited from class io.sf.carte.doc.style.css.property.StyleValue
getCssText, getMinifiedCssText, isPrimitiveValue, isSubproperty, isSystemDefault, matches, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.sf.carte.doc.style.css.CSSValue
getPrimitiveType, writeCssTextMethods inherited from interface io.sf.carte.doc.style.css.property.ValueItem
getCSSValue
-
Constructor Details
-
KeywordValue
protected KeywordValue()Must access instance through static method.
-
-
Method Details
-
getCssValueType
Description copied from interface:CSSValueGet the general category to which this value belongs.- Specified by:
getCssValueTypein interfaceCSSValue- Returns:
- the general value type.
-
getNextLexicalUnit
Description copied from interface:ValueItemGet the next lexical unit after processing this item.This method is useful as some primitive values (ratio) may take more than one unit.
- Specified by:
getNextLexicalUnitin interfaceValueItem- Returns:
- the next lexical unit after this item was processed.
-
hasWarnings
public boolean hasWarnings()Description copied from interface:ValueItemHas this item any warning to report ?- Specified by:
hasWarningsin interfaceValueItem- Returns:
trueif this item any warning to report.
-
handleSyntaxWarnings
Description copied from interface:ValueItemUse the given error handler to handle warnings.- Specified by:
handleSyntaxWarningsin interfaceValueItem- Parameters:
handler- the error handler.
-
setCssText
Description copied from class:StyleValueAttempts to change this value to match the supplied css text.In css4j, it is not recommended to set property values using this method.
- Specified by:
setCssTextin interfaceCSSValue- Overrides:
setCssTextin classStyleValue- Parameters:
cssText- the text value.- Throws:
DOMException- SYNTAX_ERR: Raised if the specified CSS string value has a syntax error (according to the attached property) or is unparsable.
INVALID_MODIFICATION_ERR: Raised if the specified CSS string value represents a different type of values than the values allowed by the CSS property.
NO_MODIFICATION_ALLOWED_ERR: Raised if this value is read-only.
-
hashCode
public int hashCode()- Overrides:
hashCodein classStyleValue
-
equals
- Overrides:
equalsin classStyleValue
-
asSubproperty
-
clone
Description copied from interface:CSSValueCreates and returns a copy of this value.- Specified by:
clonein interfaceCSSValue- Specified by:
clonein classStyleValue- Returns:
- a clone of this value.
-