All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.properties.CssBorderStyle
java.lang.Object
|
+----org.w3c.css.properties.CssProperty
|
+----org.w3c.css.properties.CssBorderStyle
- public class CssBorderStyle
- extends CssProperty
- implements CssOperator
'border-style'
Value: none | dotted | dashed | solid | double | groove | ridge
| inset | outset
Initial: none
Applies to: all elements
Inherited: no
Percentage values: N/A
The 'border-style' property sets the style of the four borders. It can have
from one to four values, and the values are set on the different sides as
for 'border-width' above.
#xy34 { border-style: solid dotted }
In the above example, the horizontal borders will be 'solid' and the vertical
borders will be 'dotted'.
Since the initial value of the border styles is 'none', no borders will be
visible unless the border style is set.
The border styles mean:
-
none
-
no border is drawn (regardless of the 'border-width' value)
-
dotted
-
the border is a dotted line drawn on top of the background of the element
-
dashed
-
the border is a dashed line drawn on top of the background of the element
-
solid
-
the border is a solid line
-
double
- the border is a double line drawn on top of the background of the
element. The sum of the two single lines and the space between equals
the <border-width> value.
-
groove
-
a 3D groove is drawn in colors based on the <color> value.
-
ridge
-
a 3D ridge is drawn in colors based on the <color> value.
-
inset
-
a 3D inset is drawn in colors based on the <color> value.
-
outset
-
a 3D outset is drawn in colors based on the <color> value.
CSS1 core: UAs may interpret all of 'dotted', 'dashed', 'double',
'groove', 'ridge', 'inset' and 'outset' as 'solid'.
-
CssBorderStyle(CssBorderTopStyle, CssBorderBottomStyle, CssBorderRightStyle, CssBorderLeftStyle)
- Create a new CssBorderStyle
-
CssBorderStyle(CssExpression)
- Create a new CssBorder
-
addToStyle(CssStyle)
- Add this property to the CssStyle
-
equals(CssProperty)
- Compares two properties for equality.
-
get()
- Returns the value of this property
-
getImportant()
- Returns true if this property is important.
-
getPropertyInStyle(CssStyle, boolean)
- Get this property in the style.
-
getPropertyName()
- Returns the name of this property
-
print(CssPrinterStyle)
- Print this property.
-
setImportant()
- Set this property to be important.
-
setInfo(int, String)
- Update the source file and the line.
-
setSelectors(CssSelectors)
- Set the context.
-
toString()
- Returns a string representation of the object.
CssBorderStyle
public CssBorderStyle(CssBorderTopStyle top,
CssBorderBottomStyle bottom,
CssBorderRightStyle right,
CssBorderLeftStyle left)
- Create a new CssBorderStyle
CssBorderStyle
public CssBorderStyle(CssExpression expression) throws InvalidParamException
- Create a new CssBorder
- 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
getPropertyName
public String getPropertyName()
- Returns the name of this property
- Overrides:
- getPropertyName in class CssProperty
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class CssProperty
setImportant
public void setImportant()
- Set this property to be important.
Overrides this method for a macro
- Overrides:
- setImportant in class CssProperty
getImportant
public boolean getImportant()
- Returns true if this property is important.
Overrides this method for a macro
- Overrides:
- getImportant in class CssProperty
print
public void print(CssPrinterStyle printer)
- Print this property.
- Parameters:
- printer - The printer.
- Overrides:
- print in class CssProperty
- See Also:
- toString, getPropertyName
setSelectors
public void setSelectors(CssSelectors selector)
- Set the context.
Overrides this method for a macro
- Overrides:
- setSelectors in class CssProperty
- See Also:
- order, handleRule
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
setInfo
public void setInfo(int line,
String source)
- Update the source file and the line.
Overrides this method for a macro
- Parameters:
- line - The line number where this property is defined
- source - The source file where this property is defined
- Overrides:
- setInfo 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