| org.w3c.dom.css.CSS2BorderSpacing
CSS2BorderSpacing | public interface CSS2BorderSpacing extends CSSValue(Code) | | The CSS2BorderSpacing interface represents the border-spacing
CSS Level 2 property.
For this extension of the CSSValue interface, the
valueType attribute of the underlying CSSValue
interface shall be CSS_CUSTOM .
See also the Document Object Model (DOM) Level 2 Specification.
since: DOM Level 2 |
Method Summary | |
public float | getHorizontalSpacing(float hType) This method is used to get the float value in a specified unit if the
horizontalSpacing represents a length. | public short | getHorizontalType() The A code defining the type of the value as defined in
CSSValue . | public float | getVerticalSpacing(float vType) This method is used to get the float value in a specified unit if the
verticalSpacing represents a length. | public short | getVerticalType() The A code defining the type of the value as defined in
CSSValue . | public void | setHorizontalSpacing(short hType, float value) This method is used to set the horizontal spacing with a specified
unit. | public void | setVerticalSpacing(short vType, float value) This method is used to set the vertical spacing with a specified unit. |
getHorizontalSpacing | public float getHorizontalSpacing(float hType) throws DOMException(Code) | | This method is used to get the float value in a specified unit if the
horizontalSpacing represents a length. If the float
doesn't contain a float value or can't be converted into the specified
unit, a DOMException is raised.
Parameters: hType - The horizontal unit. The float value. exception: DOMException - INVALID_ACCESS_ERR: Raised if the property doesn't contain a float or the value can't be converted. |
getHorizontalType | public short getHorizontalType()(Code) | | The A code defining the type of the value as defined in
CSSValue . It would be one of CSS_EMS ,
CSS_EXS , CSS_PX , CSS_CM ,
CSS_MM , CSS_IN , CSS_PT or
CSS_PC .
|
getVerticalSpacing | public float getVerticalSpacing(float vType) throws DOMException(Code) | | This method is used to get the float value in a specified unit if the
verticalSpacing represents a length. If the float doesn't
contain a float value or can't be converted into the specified unit, a
DOMException is raised. The value is 0 if
only the horizontal value has been specified.
Parameters: vType - The vertical unit. The float value. exception: DOMException - INVALID_ACCESS_ERR: Raised if the property doesn't contain a float or the value can't be converted. |
getVerticalType | public short getVerticalType()(Code) | | The A code defining the type of the value as defined in
CSSValue . It would be one of CSS_EMS ,
CSS_EXS , CSS_PX , CSS_CM ,
CSS_MM , CSS_IN , CSS_PT ,
CSS_PC or CSS_INHERIT .
|
setHorizontalSpacing | public void setHorizontalSpacing(short hType, float value) throws DOMException(Code) | | This method is used to set the horizontal spacing with a specified
unit. If the vertical value is a length, it sets the vertical spacing
to 0 .
Parameters: hType - The horizontal unit. Parameters: value - The new value. exception: DOMException - INVALID_ACCESS_ERR: Raised if the specified unit is not a length. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
setVerticalSpacing | public void setVerticalSpacing(short vType, float value) throws DOMException(Code) | | This method is used to set the vertical spacing with a specified unit.
If the horizontal value is not a length, it sets the vertical spacing
to 0 .
Parameters: vType - The vertical unit. Parameters: value - The new value. exception: DOMException - INVALID_ACCESS_ERR: Raised if the specified unit is not a length or a percentage. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
|
|