|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xhtmlrenderer.css.value.FSCssValue
public class FSCssValue
Implementation of a CSSPrimitiveValue. The main
feature of this class is that on construction, values will be "normalized",
so that color idents (such as 'black') are converted to valid java.awt.Color
strings, and other idents are resolved as possible.
| Field Summary |
|---|
| Fields inherited from interface org.w3c.dom.css.CSSPrimitiveValue |
|---|
CSS_ATTR, CSS_CM, CSS_COUNTER, CSS_DEG, CSS_DIMENSION, CSS_EMS, CSS_EXS, CSS_GRAD, CSS_HZ, CSS_IDENT, CSS_IN, CSS_KHZ, CSS_MM, CSS_MS, CSS_NUMBER, CSS_PC, CSS_PERCENTAGE, CSS_PT, CSS_PX, CSS_RAD, CSS_RECT, CSS_RGBCOLOR, CSS_S, CSS_STRING, CSS_UNKNOWN, CSS_URI |
| Fields inherited from interface org.w3c.dom.css.CSSValue |
|---|
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST |
| Constructor Summary | |
|---|---|
FSCssValue(org.w3c.dom.css.CSSPrimitiveValue primitive)
Constructor for the FSCssValue object |
|
FSCssValue(org.w3c.dom.css.CSSPrimitiveValue primitive,
String newValue)
Use a given CSSPrimitiveValue, with an overriding internal text value |
|
| Method Summary | |
|---|---|
org.w3c.dom.css.Counter |
getCounterValue()
Not supported. |
String |
getCssText()
A string representation of the current value. |
short |
getCssValueType()
A code defining the type of the value as defined above. |
float |
getFloatValue(short unitType)
This method is used to get a float value in a specified unit. |
static FSCssValue |
getNewIdentValue(String identValue)
|
short |
getPrimitiveType()
The type of the value as defined by the constants specified above. |
org.w3c.dom.css.Rect |
getRectValue()
Not supported. |
org.w3c.dom.css.RGBColor |
getRGBColorValue()
Not supported. |
String |
getStringValue()
This method is used to get the string value. |
void |
setCssText(String cssText)
Not supported, class is immutable. |
void |
setFloatValue(short unitType,
float floatValue)
Not supported, class is immutable. |
void |
setStringValue(short stringType,
String stringValue)
Not supported, class is immutable. |
String |
toString()
Returns the string representation of the instance, in this case, the CSS text value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FSCssValue(org.w3c.dom.css.CSSPrimitiveValue primitive)
primitive - PARAM
public FSCssValue(org.w3c.dom.css.CSSPrimitiveValue primitive,
String newValue)
primitive - PARAMnewValue - PARAM| Method Detail |
|---|
public static FSCssValue getNewIdentValue(String identValue)
public String toString()
toString in class Objectpublic void setCssText(String cssText)
setCssText in interface org.w3c.dom.css.CSSValuecssText - The new cssText value
public void setFloatValue(short unitType,
float floatValue)
setFloatValue in interface org.w3c.dom.css.CSSPrimitiveValueunitType - The new floatValue valuefloatValue - The new floatValue value
public void setStringValue(short stringType,
String stringValue)
setStringValue in interface org.w3c.dom.css.CSSPrimitiveValuestringType - The new stringValue valuestringValue - The new stringValue valuepublic String getCssText()
getCssText in interface org.w3c.dom.css.CSSValuepublic short getCssValueType()
getCssValueType in interface org.w3c.dom.css.CSSValuepublic org.w3c.dom.css.Counter getCounterValue()
getCounterValue in interface org.w3c.dom.css.CSSPrimitiveValuepublic float getFloatValue(short unitType)
getFloatValue in interface org.w3c.dom.css.CSSPrimitiveValueunitType - PARAM
public short getPrimitiveType()
getPrimitiveType in interface org.w3c.dom.css.CSSPrimitiveValuepublic org.w3c.dom.css.Rect getRectValue()
getRectValue in interface org.w3c.dom.css.CSSPrimitiveValuepublic org.w3c.dom.css.RGBColor getRGBColorValue()
getRGBColorValue in interface org.w3c.dom.css.CSSPrimitiveValuepublic String getStringValue()
getStringValue in interface org.w3c.dom.css.CSSPrimitiveValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||