All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.properties.CssBorderRightWidth
java.lang.Object
|
+----org.w3c.css.properties.CssProperty
|
+----org.w3c.css.properties.CssBorderRightWidth
- public class CssBorderRightWidth
- extends CssProperty
'border-right-width'
Value: thin | medium | thick | <length>
Initial: 'medium'
Applies to: all elements
Inherited: no
Percentage values: N/A
This property sets the width of an element's right border. The width of
the keyword values are UA dependent, but the following holds: 'thin' <=
'medium' <= 'thick'.
The keyword widths are constant throughout a document:
H1 { border: solid thick red }
P { border: solid thick blue }
In the example above, 'H1' and 'P' elements will have the same border width
regardless of font size. To achieve relative widths, the 'em' unit can be
used:
H1 { border: solid 0.5em }
Border widths cannot be negative.
-
CssBorderRightWidth()
- Create a new CssBorderRightWidth
-
CssBorderRightWidth(CssBorderFaceWidth)
- Create a new CssBorderRightWidth with an another CssBorderFaceWidth
-
CssBorderRightWidth(CssExpression)
- Create a new CssBorderRightWidth
-
addToStyle(CssStyle)
- Add this property to the CssStyle.
-
equals(CssProperty)
- Compares two properties for equality.
-
get()
- Returns the value of this property
-
getPropertyInStyle(CssStyle, boolean)
- Get this property in the style.
-
getPropertyName()
- Returns the name of this property
-
getValue()
- Return the value of this property
-
toString()
- Returns a string representation of the object.
CssBorderRightWidth
public CssBorderRightWidth()
- Create a new CssBorderRightWidth
CssBorderRightWidth
public CssBorderRightWidth(CssBorderFaceWidth another)
- Create a new CssBorderRightWidth with an another CssBorderFaceWidth
- Parameters:
- another - The another side.
CssBorderRightWidth
public CssBorderRightWidth(CssExpression expression) throws InvalidParamException
- Create a new CssBorderRightWidth
- Parameters:
- expression - The expression for this property.
- Throws: InvalidParamException
- Values are incorrect
get
public Object get()
- Returns the value of this property
- Overrides:
- get in class CssProperty
getValue
public CssValue getValue()
- Return the value of this property
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class CssProperty
getPropertyName
public String getPropertyName()
- Returns the name of this property
- Overrides:
- getPropertyName in class CssProperty
addToStyle
public void addToStyle(CssStyle style)
- Add this property to the CssStyle.
- Parameters:
- style - The CssStyle
- Overrides:
- addToStyle in class CssProperty
getPropertyInStyle
public CssProperty getPropertyInStyle(CssStyle style,
boolean resolve)
- Get this property in the style.
- Parameters:
- style - The style where the property is
- resolve - if true, resolve the style to find this property
- Overrides:
- getPropertyInStyle in class CssProperty
equals
public boolean equals(CssProperty property)
- Compares two properties for equality.
- Parameters:
- value - The other property.
- Overrides:
- equals in class CssProperty
All Packages Class Hierarchy This Package Previous Next Index