Fields Summary |
---|
public static final short | CSS_UNKNOWNThe value is not a recognized CSS2 value. The value can only be
obtained by using the cssText attribute. |
public static final short | CSS_NUMBERThe value is a simple number. The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_PERCENTAGEThe value is a percentage. The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_EMSThe value is a length (ems). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_EXSThe value is a length (exs). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_PXThe value is a length (px). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_CMThe value is a length (cm). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_MMThe value is a length (mm). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_INThe value is a length (in). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_PTThe value is a length (pt). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_PCThe value is a length (pc). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_DEGThe value is an angle (deg). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_RADThe value is an angle (rad). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_GRADThe value is an angle (grad). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_MSThe value is a time (ms). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_SThe value is a time (s). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_HZThe value is a frequency (Hz). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_KHZThe value is a frequency (kHz). The value can be obtained by using the
getFloatValue method. |
public static final short | CSS_DIMENSIONThe value is a number with an unknown dimension. The value can be
obtained by using the getFloatValue method. |
public static final short | CSS_STRINGThe value is a STRING. The value can be obtained by using the
getStringValue method. |
public static final short | CSS_URIThe value is a URI. The value can be obtained by using the
getStringValue method. |
public static final short | CSS_IDENTThe value is an identifier. The value can be obtained by using the
getStringValue method. |
public static final short | CSS_ATTRThe value is a attribute function. The value can be obtained by using
the getStringValue method. |
public static final short | CSS_COUNTERThe value is a counter or counters function. The value can be obtained
by using the getCounterValue method. |
public static final short | CSS_RECTThe value is a rect function. The value can be obtained by using the
getRectValue method. |
public static final short | CSS_RGBCOLORThe value is a RGB color. The value can be obtained by using the
getRGBColorValue method. |
Methods Summary |
---|
public org.w3c.dom.css.Counter | getCounterValue()This method is used to get the Counter value. If this CSS value
doesn't contain a counter value, a DOMException is
raised. Modification to the corresponding style property can be
achieved using the Counter interface.
|
public float | getFloatValue(short unitType)This method is used to get a float value in a specified unit. If this
CSS value doesn't contain a float value or can't be converted into
the specified unit, a DOMException is raised.
|
public short | getPrimitiveType()The type of the value as defined by the constants specified above.
|
public org.w3c.dom.css.RGBColor | getRGBColorValue()This method is used to get the RGB color. If this CSS value doesn't
contain a RGB color value, a DOMException is raised.
Modification to the corresponding style property can be achieved
using the RGBColor interface.
|
public org.w3c.dom.css.Rect | getRectValue()This method is used to get the Rect value. If this CSS value doesn't
contain a rect value, a DOMException is raised.
Modification to the corresponding style property can be achieved
using the Rect interface.
|
public java.lang.String | getStringValue()This method is used to get the string value. If the CSS value doesn't
contain a string value, a DOMException is raised. Some
properties (like 'font-family' or 'voice-family') convert a
whitespace separated list of idents to a string.
|
public void | setFloatValue(short unitType, float floatValue)A method to set the float value with a specified unit. If the property
attached with this value can not accept the specified unit or the
float value, the value will be unchanged and a
DOMException will be raised.
|
public void | setStringValue(short stringType, java.lang.String stringValue)A method to set the string value with the specified unit. If the
property attached to this value can't accept the specified unit or
the string value, the value will be unchanged and a
DOMException will be raised.
|