- All Known Subinterfaces:
SVGValue
- All Known Implementing Classes:
AbstractCIEColor
,AbstractValue
,CIELabColor
,CIELCHColor
,ComputedValue
,DeviceColor
,FloatValue
,ICCColor
,ICCNamedColor
,InheritValue
,LineHeightValue
,ListValue
,RectValue
,RGBColorValue
,StringValue
,URIValue
public interface Value
This interface represents a property value.
-
Method Summary
Modifier and TypeMethodDescriptiongetAlpha()
The alpha channel value of the RGBA color.getBlue()
The blue value of the RGB color.The bottom value of the rect.A string representation of the current value.short
A code defining the type of the value.float
This method is used to get the float value.getGreen()
The green value of the RGB color.The identifier value of the counter.getLeft()
The left value of the rect.int
The number ofCSSValues
in the list.The listStyle value of the counter.short
The type of the value.getRed()
The red value of the RGB color.getRight()
The right value of the rect.The separator value of the counter.This method is used to get the string value.getTop()
The top value of the rect.item
(int index) Used to retrieve a rule by ordinal index.
-
Method Details
-
getCssText
String getCssText()A string representation of the current value. -
getCssValueType
short getCssValueType()A code defining the type of the value. -
getPrimitiveType
short getPrimitiveType()The type of the value. -
getFloatValue
This method is used to get the float value.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a float value.
-
getStringValue
This method is used to get the string value.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a string value.
-
getRed
The red value of the RGB color.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getGreen
The green value of the RGB color.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getBlue
The blue value of the RGB color.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getAlpha
The alpha channel value of the RGBA color.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getLength
The number ofCSSValues
in the list. The range of valid values of the indices is0
tolength-1
inclusive.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
item
Used to retrieve a rule by ordinal index.- Returns:
- The style rule at the
index
position in the list, ornull
if that is not a valid index. - Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
getTop
The top value of the rect.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getRight
The right value of the rect.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getBottom
The bottom value of the rect.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getLeft
The left value of the rect.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getIdentifier
The identifier value of the counter.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-
getListStyle
The listStyle value of the counter.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-
getSeparator
The separator value of the counter.- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-