java.lang.Object
io.sf.carte.doc.style.css.om.DefaultStyleFormattingContext
- All Implemented Interfaces:
StyleFormattingContext
- Direct Known Subclasses:
InlineStyleFormattingContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidendCurrentContext(CSSRule rule) voidvoidvoidendRule(SimpleWriter wri) voidendRuleList(SimpleWriter wri) voidvoidnewLine(SimpleWriter wri) voidsetParentContext(CSSRule rule) voidvoidstartRule(SimpleWriter wri) voidvoidupdateContext(CSSRule rule) voidwriteColon(SimpleWriter wri) voidwriteComma(SimpleWriter wri) voidwriteComment(SimpleWriter wri, String comment) voidvoidvoidvoidvoidvoidvoidwriteShorthandValue(SimpleWriter wri, String shorthandName, CSSShorthandValue value) Serialize a css shorthand value to the given writer.voidwriteURL(SimpleWriter wri, String href) voidwriteValue(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:
deepenCurrentContextin interfaceStyleFormattingContext
-
endCurrentContext
- Specified by:
endCurrentContextin interfaceStyleFormattingContext
-
endPropertyDeclaration
- Specified by:
endPropertyDeclarationin interfaceStyleFormattingContext- Throws:
IOException
-
endInlinePropertyDeclaration
- Specified by:
endInlinePropertyDeclarationin interfaceStyleFormattingContext- Throws:
IOException
-
endRule
- Specified by:
endRulein interfaceStyleFormattingContext- Throws:
IOException
-
endRuleList
- Specified by:
endRuleListin interfaceStyleFormattingContext- Throws:
IOException
-
endStyleDeclaration
- Specified by:
endStyleDeclarationin interfaceStyleFormattingContext- Throws:
IOException
-
newLine
- Specified by:
newLinein interfaceStyleFormattingContext- Throws:
IOException
-
setParentContext
- Specified by:
setParentContextin interfaceStyleFormattingContext
-
startPropertyDeclaration
- Specified by:
startPropertyDeclarationin interfaceStyleFormattingContext- Throws:
IOException
-
startRule
- Specified by:
startRulein interfaceStyleFormattingContext- Throws:
IOException
-
startStyleDeclaration
- Specified by:
startStyleDeclarationin interfaceStyleFormattingContext- Throws:
IOException
-
updateContext
- Specified by:
updateContextin interfaceStyleFormattingContext
-
writeColon
- Specified by:
writeColonin interfaceStyleFormattingContext- Throws:
IOException
-
writeComma
- Specified by:
writeCommain interfaceStyleFormattingContext- Throws:
IOException
-
writeComment
- Specified by:
writeCommentin interfaceStyleFormattingContext- Throws:
IOException
-
writeFullIndent
- Specified by:
writeFullIndentin interfaceStyleFormattingContext- Throws:
IOException
-
writeImportantPriority
- Specified by:
writeImportantPriorityin interfaceStyleFormattingContext- Throws:
IOException
-
writeLeftCurlyBracket
- Specified by:
writeLeftCurlyBracketin interfaceStyleFormattingContext- Throws:
IOException
-
writeLevelIndent
- Specified by:
writeLevelIndentin interfaceStyleFormattingContext- Throws:
IOException
-
writeRightCurlyBracket
- Specified by:
writeRightCurlyBracketin interfaceStyleFormattingContext- Throws:
IOException
-
writeSemiColon
- Specified by:
writeSemiColonin interfaceStyleFormattingContext- Throws:
IOException
-
writeURL
- Specified by:
writeURLin interfaceStyleFormattingContext- Throws:
IOException
-
writeValue
public void writeValue(SimpleWriter wri, String propertyName, ExtendedCSSValue value) throws IOException Description copied from interface:StyleFormattingContextWrite a css value to the given writer.- Specified by:
writeValuein 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:StyleFormattingContextSerialize a css shorthand value to the given writer.Although the
CSSShorthandValuetype contains priority information, this method only writes the value.- Specified by:
writeShorthandValuein 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.
-