Top Fields Constructors Methods
com.sun.webkit.dom

public Class CSSPrimitiveValueImpl

extends CSSValueImpl
implements CSSPrimitiveValue
Class Inheritance
All Implemented Interfaces
org.w3c.dom.css.CSSPrimitiveValue, org.w3c.dom.css.CSSValue
Imports
org.w3c.dom.DOMException, org.w3c.dom.css.CSSPrimitiveValue, .Counter, .RGBColor, .Rect

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
Inherited from com.sun.webkit.dom.CSSValueImpl:
CSS_CUSTOMCSS_INHERITCSS_PRIMITIVE_VALUECSS_VALUE_LIST

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Counter
getCounterValue()

Implements org.w3c.dom.css.CSSPrimitiveValue.getCounterValue.

This method is used to get the Counter value.

pack-priv static native long
public float
getFloatValue(short
A unit code to get the float value. The unit code can only be a float unit type (i.e. CSS_NUMBER, CSS_PERCENTAGE, CSS_EMS, CSS_EXS, CSS_PX, CSS_CM, CSS_MM, CSS_IN, CSS_PT, CSS_PC, CSS_DEG, CSS_RAD, CSS_GRAD, CSS_MS, CSS_S, CSS_HZ, CSS_KHZ, CSS_DIMENSION).
unitType
)

Implements org.w3c.dom.css.CSSPrimitiveValue.getFloatValue.

This method is used to get a float value in a specified unit.

pack-priv static native float
getFloatValueImpl(long peer, short unitType)

pack-priv static CSSPrimitiveValue
public short
getPrimitiveType()

Implements org.w3c.dom.css.CSSPrimitiveValue.getPrimitiveType.

The type of the value as defined by the constants specified above.

pack-priv static native short
public Rect
getRectValue()

Implements org.w3c.dom.css.CSSPrimitiveValue.getRectValue.

This method is used to get the Rect value.

pack-priv static native long
getRectValueImpl(long peer)

public RGBColor
getRGBColorValue()

Implements org.w3c.dom.css.CSSPrimitiveValue.getRGBColorValue.

This method is used to get the RGB color.

pack-priv static native long
public String
getStringValue()

Implements org.w3c.dom.css.CSSPrimitiveValue.getStringValue.

This method is used to get the string value.

pack-priv static native String
getStringValueImpl(long peer)

public void
setFloatValue(short
A unit code as defined above. The unit code can only be a float unit type (i.e. CSS_NUMBER, CSS_PERCENTAGE, CSS_EMS, CSS_EXS, CSS_PX, CSS_CM, CSS_MM, CSS_IN, CSS_PT, CSS_PC, CSS_DEG, CSS_RAD, CSS_GRAD, CSS_MS, CSS_S, CSS_HZ, CSS_KHZ, CSS_DIMENSION).
unitType
,
float
The new float value.
floatValue
)

Implements org.w3c.dom.css.CSSPrimitiveValue.setFloatValue.

A method to set the float value with a specified unit.

pack-priv static native void
setFloatValueImpl(long peer, short unitType, float floatValue)

public void
setStringValue(short
A string code as defined above. The string code can only be a string unit type (i.e. CSS_STRING, CSS_URI, CSS_IDENT, and CSS_ATTR).
stringType
,
String
The new string value.
stringValue
)

Implements org.w3c.dom.css.CSSPrimitiveValue.setStringValue.

A method to set the string value with the specified unit.

pack-priv static native void
setStringValueImpl(long peer, short stringType, String stringValue)

Inherited from com.sun.webkit.dom.CSSValueImpl:
createequalsgetCssTextgetCssTextImplgetCssValueTypegetCssValueTypeImplgetPeergetPeerhashCodesetCssTextsetCssTextImpl

Field Detail

CSS_ATTRback to summary
public static final int CSS_ATTR

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_ATTR.

CSS_CMback to summary
public static final int CSS_CM

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_CM.

CSS_COUNTERback to summary
public static final int CSS_COUNTER

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_COUNTER.

CSS_DEGback to summary
public static final int CSS_DEG

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_DEG.

CSS_DIMENSIONback to summary
public static final int CSS_DIMENSION

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_DIMENSION.

CSS_EMSback to summary
public static final int CSS_EMS

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_EMS.

CSS_EXSback to summary
public static final int CSS_EXS

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_EXS.

CSS_GRADback to summary
public static final int CSS_GRAD

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_GRAD.

CSS_HZback to summary
public static final int CSS_HZ

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_HZ.

CSS_IDENTback to summary
public static final int CSS_IDENT

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_IDENT.

CSS_INback to summary
public static final int CSS_IN

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_IN.

CSS_KHZback to summary
public static final int CSS_KHZ

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_KHZ.

CSS_MMback to summary
public static final int CSS_MM

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_MM.

CSS_MSback to summary
public static final int CSS_MS

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_MS.

CSS_NUMBERback to summary
public static final int CSS_NUMBER

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_NUMBER.

CSS_PCback to summary
public static final int CSS_PC

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_PC.

CSS_PERCENTAGEback to summary
public static final int CSS_PERCENTAGE

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_PERCENTAGE.

CSS_PTback to summary
public static final int CSS_PT

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_PT.

CSS_PXback to summary
public static final int CSS_PX

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_PX.

CSS_RADback to summary
public static final int CSS_RAD

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_RAD.

CSS_RECTback to summary
public static final int CSS_RECT

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_RECT.

CSS_RGBCOLORback to summary
public static final int CSS_RGBCOLOR

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_RGBCOLOR.

CSS_Sback to summary
public static final int CSS_S

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_S.

CSS_STRINGback to summary
public static final int CSS_STRING

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_STRING.

CSS_UNKNOWNback to summary
public static final int CSS_UNKNOWN

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_UNKNOWN.

CSS_URIback to summary
public static final int CSS_URI

Hides org.w3c.dom.css.CSSPrimitiveValue.CSS_URI.

CSS_VHback to summary
public static final int CSS_VH
CSS_VMAXback to summary
public static final int CSS_VMAX
CSS_VMINback to summary
public static final int CSS_VMIN
CSS_VWback to summary
public static final int CSS_VW

Constructor Detail

CSSPrimitiveValueImplback to summary
pack-priv CSSPrimitiveValueImpl(long peer)

Method Detail

getCounterValueback to summary
public Counter getCounterValue() throws DOMException

Implements org.w3c.dom.css.CSSPrimitiveValue.getCounterValue.

Doc from org.w3c.dom.css.CSSPrimitiveValue.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.

Returns:Counter

The Counter value.

Exceptions
DOMException:
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Counter value (e.g. this is not CSS_COUNTER).
getCounterValueImplback to summary
pack-priv static native long getCounterValueImpl(long peer)
getFloatValueback to summary
public float getFloatValue(short unitType) throws DOMException

Implements org.w3c.dom.css.CSSPrimitiveValue.getFloatValue.

Doc from org.w3c.dom.css.CSSPrimitiveValue.getFloatValue.

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.

Parameters
unitType:short

A unit code to get the float value. The unit code can only be a float unit type (i.e. CSS_NUMBER, CSS_PERCENTAGE, CSS_EMS, CSS_EXS, CSS_PX, CSS_CM, CSS_MM, CSS_IN, CSS_PT, CSS_PC, CSS_DEG, CSS_RAD, CSS_GRAD, CSS_MS, CSS_S, CSS_HZ, CSS_KHZ, CSS_DIMENSION).

Returns:float

The float value in the specified unit.

Exceptions
DOMException:
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a float value or if the float value can't be converted into the specified unit.
getFloatValueImplback to summary
pack-priv static native float getFloatValueImpl(long peer, short unitType)
getImplback to summary
pack-priv static CSSPrimitiveValue getImpl(long peer)

Hides com.sun.webkit.dom.CSSValueImpl.getImpl.

getPrimitiveTypeback to summary
public short getPrimitiveType()

Implements org.w3c.dom.css.CSSPrimitiveValue.getPrimitiveType.

Doc from org.w3c.dom.css.CSSPrimitiveValue.getPrimitiveType.

The type of the value as defined by the constants specified above.

getPrimitiveTypeImplback to summary
pack-priv static native short getPrimitiveTypeImpl(long peer)
getRectValueback to summary
public Rect getRectValue() throws DOMException

Implements org.w3c.dom.css.CSSPrimitiveValue.getRectValue.

Doc from org.w3c.dom.css.CSSPrimitiveValue.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.

Returns:Rect

The Rect value.

Exceptions
DOMException:
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Rect value. (e.g. this is not CSS_RECT).
getRectValueImplback to summary
pack-priv static native long getRectValueImpl(long peer)
getRGBColorValueback to summary
public RGBColor getRGBColorValue() throws DOMException

Implements org.w3c.dom.css.CSSPrimitiveValue.getRGBColorValue.

Doc from org.w3c.dom.css.CSSPrimitiveValue.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.

Returns:RGBColor

the RGB color value.

Exceptions
DOMException:
INVALID_ACCESS_ERR: Raised if the attached property can't return a RGB color value (e.g. this is not CSS_RGBCOLOR).
getRGBColorValueImplback to summary
pack-priv static native long getRGBColorValueImpl(long peer)
getStringValueback to summary
public String getStringValue() throws DOMException

Implements org.w3c.dom.css.CSSPrimitiveValue.getStringValue.

Doc from org.w3c.dom.css.CSSPrimitiveValue.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.

Returns:String

The string value in the current unit. The current primitiveType can only be a string unit type (i.e. CSS_STRING, CSS_URI, CSS_IDENT and CSS_ATTR).

Exceptions
DOMException:
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string value.
getStringValueImplback to summary
pack-priv static native String getStringValueImpl(long peer)
setFloatValueback to summary
public void setFloatValue(short unitType, float floatValue) throws DOMException

Implements org.w3c.dom.css.CSSPrimitiveValue.setFloatValue.

Doc from org.w3c.dom.css.CSSPrimitiveValue.setFloatValue.

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.

Parameters
unitType:short

A unit code as defined above. The unit code can only be a float unit type (i.e. CSS_NUMBER, CSS_PERCENTAGE, CSS_EMS, CSS_EXS, CSS_PX, CSS_CM, CSS_MM, CSS_IN, CSS_PT, CSS_PC, CSS_DEG, CSS_RAD, CSS_GRAD, CSS_MS, CSS_S, CSS_HZ, CSS_KHZ, CSS_DIMENSION).

floatValue:float

The new float value.

Exceptions
DOMException:
INVALID_ACCESS_ERR: Raised if the attached property doesn't support the float value or the unit type.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
setFloatValueImplback to summary
pack-priv static native void setFloatValueImpl(long peer, short unitType, float floatValue)
setStringValueback to summary
public void setStringValue(short stringType, String stringValue) throws DOMException

Implements org.w3c.dom.css.CSSPrimitiveValue.setStringValue.

Doc from org.w3c.dom.css.CSSPrimitiveValue.setStringValue.

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.

Parameters
stringType:short

A string code as defined above. The string code can only be a string unit type (i.e. CSS_STRING, CSS_URI, CSS_IDENT, and CSS_ATTR).

stringValue:String

The new string value.

Exceptions
DOMException:
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string value or if the string value can't be converted into the specified unit.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
setStringValueImplback to summary
pack-priv static native void setStringValueImpl(long peer, short stringType, String stringValue)