java.lang.Object
io.sf.carte.doc.style.css.om.DefaultStyleFormattingContext
- All Implemented Interfaces:
StyleFormattingContext
- Direct Known Subclasses:
InlineStyleFormattingContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
endCurrentContext
(CSSRule rule) void
void
void
endRule
(SimpleWriter wri) void
endRuleList
(SimpleWriter wri) void
void
newLine
(SimpleWriter wri) void
setParentContext
(CSSRule rule) void
void
startRule
(SimpleWriter wri) void
void
updateContext
(CSSRule rule) void
writeColon
(SimpleWriter wri) void
writeComma
(SimpleWriter wri) void
writeComment
(SimpleWriter wri, String comment) void
void
void
void
void
void
void
writeShorthandValue
(SimpleWriter wri, String shorthandName, CSSShorthandValue value) Serialize a css shorthand value to the given writer.void
writeURL
(SimpleWriter wri, String href) void
writeValue
(SimpleWriter wri, String propertyName, ExtendedCSSValue value) Write a css value to the given writer.
-
Constructor Details
-
DefaultStyleFormattingContext
public DefaultStyleFormattingContext()
-
-
Method Details
-
deepenCurrentContext
public void deepenCurrentContext()- Specified by:
deepenCurrentContext
in interfaceStyleFormattingContext
-
endCurrentContext
- Specified by:
endCurrentContext
in interfaceStyleFormattingContext
-
endPropertyDeclaration
- Specified by:
endPropertyDeclaration
in interfaceStyleFormattingContext
- Throws:
IOException
-
endInlinePropertyDeclaration
- Specified by:
endInlinePropertyDeclaration
in interfaceStyleFormattingContext
- Throws:
IOException
-
endRule
- Specified by:
endRule
in interfaceStyleFormattingContext
- Throws:
IOException
-
endRuleList
- Specified by:
endRuleList
in interfaceStyleFormattingContext
- Throws:
IOException
-
endStyleDeclaration
- Specified by:
endStyleDeclaration
in interfaceStyleFormattingContext
- Throws:
IOException
-
newLine
- Specified by:
newLine
in interfaceStyleFormattingContext
- Throws:
IOException
-
setParentContext
- Specified by:
setParentContext
in interfaceStyleFormattingContext
-
startPropertyDeclaration
- Specified by:
startPropertyDeclaration
in interfaceStyleFormattingContext
- Throws:
IOException
-
startRule
- Specified by:
startRule
in interfaceStyleFormattingContext
- Throws:
IOException
-
startStyleDeclaration
- Specified by:
startStyleDeclaration
in interfaceStyleFormattingContext
- Throws:
IOException
-
updateContext
- Specified by:
updateContext
in interfaceStyleFormattingContext
-
writeColon
- Specified by:
writeColon
in interfaceStyleFormattingContext
- Throws:
IOException
-
writeComma
- Specified by:
writeComma
in interfaceStyleFormattingContext
- Throws:
IOException
-
writeComment
- Specified by:
writeComment
in interfaceStyleFormattingContext
- Throws:
IOException
-
writeFullIndent
- Specified by:
writeFullIndent
in interfaceStyleFormattingContext
- Throws:
IOException
-
writeImportantPriority
- Specified by:
writeImportantPriority
in interfaceStyleFormattingContext
- Throws:
IOException
-
writeLeftCurlyBracket
- Specified by:
writeLeftCurlyBracket
in interfaceStyleFormattingContext
- Throws:
IOException
-
writeLevelIndent
- Specified by:
writeLevelIndent
in interfaceStyleFormattingContext
- Throws:
IOException
-
writeRightCurlyBracket
- Specified by:
writeRightCurlyBracket
in interfaceStyleFormattingContext
- Throws:
IOException
-
writeSemiColon
- Specified by:
writeSemiColon
in interfaceStyleFormattingContext
- Throws:
IOException
-
writeURL
- Specified by:
writeURL
in interfaceStyleFormattingContext
- Throws:
IOException
-
writeValue
public void writeValue(SimpleWriter wri, String propertyName, ExtendedCSSValue value) throws IOException Description copied from interface:StyleFormattingContext
Write a css value to the given writer.- Specified by:
writeValue
in interfaceStyleFormattingContext
- Parameters:
wri
- the writer.propertyName
- the name of the property whose value is being printed.value
- the value to write.- Throws:
IOException
- if an error happened while writing.
-
writeShorthandValue
public void writeShorthandValue(SimpleWriter wri, String shorthandName, CSSShorthandValue value) throws IOException Description copied from interface:StyleFormattingContext
Serialize a css shorthand value to the given writer.Although the
CSSShorthandValue
type contains priority information, this method only writes the value.- Specified by:
writeShorthandValue
in interfaceStyleFormattingContext
- Parameters:
wri
- the writer.shorthandName
- the name of the shorthand property whose value is being printed.value
- the value to write.- Throws:
IOException
- if an error happened while writing.
-