java.lang.Object
io.sf.carte.doc.style.css.property.AttributeToStyle
Transforms legacy HTML attributes into style declarations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
align
(String attribute, CSSStyleDeclaration style) Set a style according to thealign
attribute of table elements interpreted as a presentational hint.static void
background
(String attribute, CSSStyleDeclaration style) Set a style according to thebackground
attribute of table elements interpreted as a presentational hint.static void
bgcolor
(String bgcolorAttr, CSSStyleDeclaration style) Set a style according to thebgcolor
attribute of table elements interpreted as a presentational hint.static boolean
border
(String attribute, CSSStyleDeclaration style) Set a style according to theborder
attribute of table elements interpreted as a presentational hint.static void
borderColor
(String attribute, CSSStyleDeclaration style) Set a style according to thebordercolor
attribute of table elements interpreted as a presentational hint.static void
cellSpacing
(String attribute, CSSStyleDeclaration style) Set a style according to thecell-spacing
attribute of table elements interpreted as a presentational hint.static void
color
(String attribute, CSSStyleDeclaration style) Set a style according to thecolor
attribute ofFONT
elements interpreted as a presentational hint.static void
face
(String attribute, CSSStyleDeclaration style) Set a style according to thesize
attribute ofFONT
elements interpreted as a presentational hint.static void
height
(String heightAttr, CSSStyleDeclaration style) Set a style according to theheight
attribute of legacy HTML 4.01 elements interpreted as a presentational hint.static void
hspace
(String attribute, CSSStyleDeclaration style) Set a style according to thehspace
attribute of theIMG
element interpreted as a presentational hint.static void
size
(String attribute, CSSStyleDeclaration style) Set a style according to thesize
attribute ofFONT
elements interpreted as a presentational hint.static void
vspace
(String attribute, CSSStyleDeclaration style) Set a style according to thevspace
attribute of theIMG
element interpreted as a presentational hint.static void
width
(String widthAttr, CSSStyleDeclaration style) Set a style according to theheight
attribute of legacy HTML 4.01 elements interpreted as a presentational hint.
-
Constructor Details
-
AttributeToStyle
public AttributeToStyle()
-
-
Method Details
-
align
Set a style according to thealign
attribute of table elements interpreted as a presentational hint.- Parameters:
attribute
- the attribute value.style
- the style to set.
-
bgcolor
Set a style according to thebgcolor
attribute of table elements interpreted as a presentational hint.- Parameters:
bgcolorAttr
- the attribute value.style
- the style to set.
-
width
Set a style according to theheight
attribute of legacy HTML 4.01 elements interpreted as a presentational hint.- Parameters:
widthAttr
- the attribute value.style
- the style to set.
-
height
Set a style according to theheight
attribute of legacy HTML 4.01 elements interpreted as a presentational hint.- Parameters:
heightAttr
- the attribute value.style
- the style to set.
-
face
Set a style according to thesize
attribute ofFONT
elements interpreted as a presentational hint.- Parameters:
attribute
- the attribute value.style
- the style to set.
-
size
Set a style according to thesize
attribute ofFONT
elements interpreted as a presentational hint.- Parameters:
attribute
- the attribute value.style
- the style to set.
-
color
Set a style according to thecolor
attribute ofFONT
elements interpreted as a presentational hint.- Parameters:
attribute
- the attribute value.style
- the style to set.
-
border
Set a style according to theborder
attribute of table elements interpreted as a presentational hint.- Parameters:
attribute
- the attribute value.style
- the style to set.
-
borderColor
Set a style according to thebordercolor
attribute of table elements interpreted as a presentational hint.- Parameters:
attribute
- the attribute value.style
- the style to set.
-
cellSpacing
Set a style according to thecell-spacing
attribute of table elements interpreted as a presentational hint.- Parameters:
attribute
- the attribute value.style
- the style to set.
-
background
Set a style according to thebackground
attribute of table elements interpreted as a presentational hint.- Parameters:
attribute
- the attribute value.style
- the style to set.
-
hspace
Set a style according to thehspace
attribute of theIMG
element interpreted as a presentational hint.- Parameters:
attribute
- the attribute value.style
- the style to set.
-
vspace
Set a style according to thevspace
attribute of theIMG
element interpreted as a presentational hint.- Parameters:
attribute
- the attribute value.style
- the style to set.
-