java.lang.Object
io.sf.carte.doc.style.css.property.StyleValue
io.sf.carte.doc.style.css.property.InheritValue
- All Implemented Interfaces:
ExtendedCSSValue
,ValueItem
,Cloneable
,CSSValue
An
inherit
value.-
Field Summary
Fields inherited from interface org.w3c.dom.css.CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST
-
Constructor Summary
ModifierConstructorDescriptionprotected
Must access instance through static method. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this value.boolean
Get a string representation of the current value.Gets the CSSValue associated to this item.Get the next lexical unit after processing this item.static InheritValue
getValue()
void
Use the given error handler to handle warnings.int
hashCode()
boolean
Has this item any warning to report ?void
setCssText
(String cssText) Attempts to change this value to match the supplied css text.void
writeCssText
(SimpleWriter wri) Serialize this value to aSimpleWriter
.Methods inherited from class io.sf.carte.doc.style.css.property.StyleValue
getCssValueType, getMinifiedCssText, isSubproperty, isSystemDefault, toString
-
Constructor Details
-
InheritValue
protected InheritValue()Must access instance through static method.
-
-
Method Details
-
getValue
-
getCssText
Description copied from class:StyleValue
Get a string representation of the current value.- Specified by:
getCssText
in interfaceCSSValue
- Specified by:
getCssText
in classStyleValue
- Returns:
- the css text representing the value of this property.
-
writeCssText
Description copied from interface:ExtendedCSSValue
Serialize this value to aSimpleWriter
.- Specified by:
writeCssText
in interfaceExtendedCSSValue
- Parameters:
wri
- the SimpleWriter.- Throws:
IOException
- if an error happened while writing.
-
getCSSValue
Description copied from interface:ValueItem
Gets the CSSValue associated to this item.If there is an item there must be a value, so this method cannot return null.
- Specified by:
getCSSValue
in interfaceValueItem
- Returns:
- the CSSValue associated to this item.
-
getNextLexicalUnit
Description copied from interface:ValueItem
Get 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:
getNextLexicalUnit
in interfaceValueItem
- Returns:
- the next lexical unit after this item was processed.
-
hasWarnings
public boolean hasWarnings()Description copied from interface:ValueItem
Has this item any warning to report ?- Specified by:
hasWarnings
in interfaceValueItem
- Returns:
true
if this item any warning to report.
-
handleSyntaxWarnings
Description copied from interface:ValueItem
Use the given error handler to handle warnings.- Specified by:
handleSyntaxWarnings
in interfaceValueItem
- Parameters:
handler
- the error handler.
-
setCssText
Description copied from class:StyleValue
Attempts 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:
setCssText
in interfaceCSSValue
- Overrides:
setCssText
in classStyleValue
- 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:
hashCode
in classStyleValue
-
equals
- Overrides:
equals
in classStyleValue
-
asSubproperty
-
clone
Description copied from interface:ExtendedCSSValue
Creates and returns a copy of this value.- Specified by:
clone
in interfaceExtendedCSSValue
- Specified by:
clone
in classStyleValue
- Returns:
- a clone of this value.
-