java.lang.Object
io.sf.carte.doc.style.css.property.AttributeToStyle
Transforms legacy HTML attributes into style declarations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidalign(String attribute, CSSStyleDeclaration style) Set a style according to thealignattribute of table elements interpreted as a presentational hint.static voidbackground(String attribute, CSSStyleDeclaration style) Set a style according to thebackgroundattribute of table elements interpreted as a presentational hint.static voidbgcolor(String bgcolorAttr, CSSStyleDeclaration style) Set a style according to thebgcolorattribute of table elements interpreted as a presentational hint.static booleanborder(String attribute, CSSStyleDeclaration style) Set a style according to theborderattribute of table elements interpreted as a presentational hint.static voidborderColor(String attribute, CSSStyleDeclaration style) Set a style according to thebordercolorattribute of table elements interpreted as a presentational hint.static voidcellSpacing(String attribute, CSSStyleDeclaration style) Set a style according to thecell-spacingattribute of table elements interpreted as a presentational hint.static voidcolor(String attribute, CSSStyleDeclaration style) Set a style according to thecolorattribute ofFONTelements interpreted as a presentational hint.static voidface(String attribute, CSSStyleDeclaration style) Set a style according to thesizeattribute ofFONTelements interpreted as a presentational hint.static voidheight(String heightAttr, CSSStyleDeclaration style) Set a style according to theheightattribute of legacy HTML 4.01 elements interpreted as a presentational hint.static voidhspace(String attribute, CSSStyleDeclaration style) Set a style according to thehspaceattribute of theIMGelement interpreted as a presentational hint.static voidsize(String attribute, CSSStyleDeclaration style) Set a style according to thesizeattribute ofFONTelements interpreted as a presentational hint.static voidvspace(String attribute, CSSStyleDeclaration style) Set a style according to thevspaceattribute of theIMGelement interpreted as a presentational hint.static voidwidth(String widthAttr, CSSStyleDeclaration style) Set a style according to theheightattribute of legacy HTML 4.01 elements interpreted as a presentational hint.
-
Constructor Details
-
AttributeToStyle
public AttributeToStyle()
-
-
Method Details
-
align
Set a style according to thealignattribute of table elements interpreted as a presentational hint.- Parameters:
attribute- the attribute value.style- the style to set.
-
bgcolor
Set a style according to thebgcolorattribute of table elements interpreted as a presentational hint.- Parameters:
bgcolorAttr- the attribute value.style- the style to set.
-
width
Set a style according to theheightattribute 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 theheightattribute 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 thesizeattribute ofFONTelements interpreted as a presentational hint.- Parameters:
attribute- the attribute value.style- the style to set.
-
size
Set a style according to thesizeattribute ofFONTelements interpreted as a presentational hint.- Parameters:
attribute- the attribute value.style- the style to set.
-
color
Set a style according to thecolorattribute ofFONTelements interpreted as a presentational hint.- Parameters:
attribute- the attribute value.style- the style to set.
-
border
Set a style according to theborderattribute of table elements interpreted as a presentational hint.- Parameters:
attribute- the attribute value.style- the style to set.
-
borderColor
Set a style according to thebordercolorattribute 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-spacingattribute of table elements interpreted as a presentational hint.- Parameters:
attribute- the attribute value.style- the style to set.
-
background
Set a style according to thebackgroundattribute of table elements interpreted as a presentational hint.- Parameters:
attribute- the attribute value.style- the style to set.
-
hspace
Set a style according to thehspaceattribute of theIMGelement interpreted as a presentational hint.- Parameters:
attribute- the attribute value.style- the style to set.
-
vspace
Set a style according to thevspaceattribute of theIMGelement interpreted as a presentational hint.- Parameters:
attribute- the attribute value.style- the style to set.
-