|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents an immutable CSS value.
Method Summary | |
ImmutableValue |
createReadOnlyCopy()
Returns a deep read-only copy of this object. |
Counter |
getCounterValue()
This method is used to get the Counter value. |
java.lang.String |
getCssText()
A string representation of the current value. |
short |
getCssValueType()
A code defining the type of the value. |
float |
getFloatValue(short unitType)
A method to get the float value with a specified unit. |
int |
getLength()
The number of CSSValues in the list. |
short |
getPrimitiveType()
The type of the value. |
Rect |
getRectValue()
This method is used to get the Rect value. |
RGBColor |
getRGBColorValue()
This method is used to get the RGB color. |
java.lang.String |
getStringValue()
This method is used to get the string value. |
CSSValue |
item(int index)
Used to retrieve a CSS rule by ordinal index. |
Method Detail |
public ImmutableValue createReadOnlyCopy()
public java.lang.String getCssText()
public short getCssValueType()
public short getPrimitiveType()
public float getFloatValue(short unitType) throws DOMException
DOMException
- INVALID_ACCESS_ERR: Raised if the attached property doesn't support
the float value or the unit type.public java.lang.String getStringValue() throws DOMException
DOMException
- INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string
value.public Counter getCounterValue() throws DOMException
DOMException
- INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a
Counter value (e.g. this is not CSS_COUNTER
).public Rect getRectValue() throws DOMException
DOMException
- INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Rect
value. (e.g. this is not CSS_RECT
).public RGBColor getRGBColorValue() throws DOMException
DOMException
- INVALID_ACCESS_ERR: Raised if the attached property can't return a
RGB color value (e.g. this is not CSS_RGBCOLOR
).public int getLength()
CSSValues
in the list. The range of valid
values of the indices is 0
to length-1
inclusive.public CSSValue item(int index)
index
position in the
CSSValueList
, or null
if that is not a
valid index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |