java.lang.Object
io.sf.carte.doc.style.css.om.DefaultStyleFormattingContext
- All Implemented Interfaces:
- StyleFormattingContext
- Direct Known Subclasses:
- InlineStyleFormattingContext
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
DefaultStyleFormattingContextpublic DefaultStyleFormattingContext()
 
- 
- 
Method Details- 
deepenCurrentContextpublic void deepenCurrentContext()- Specified by:
- deepenCurrentContextin interface- StyleFormattingContext
 
- 
endCurrentContext- Specified by:
- endCurrentContextin interface- StyleFormattingContext
 
- 
endPropertyDeclaration- Specified by:
- endPropertyDeclarationin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
endInlinePropertyDeclaration- Specified by:
- endInlinePropertyDeclarationin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
endRule- Specified by:
- endRulein interface- StyleFormattingContext
- Throws:
- IOException
 
- 
endRuleList- Specified by:
- endRuleListin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
endStyleDeclaration- Specified by:
- endStyleDeclarationin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
newLine- Specified by:
- newLinein interface- StyleFormattingContext
- Throws:
- IOException
 
- 
setParentContext- Specified by:
- setParentContextin interface- StyleFormattingContext
 
- 
startPropertyDeclaration- Specified by:
- startPropertyDeclarationin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
startRule- Specified by:
- startRulein interface- StyleFormattingContext
- Throws:
- IOException
 
- 
startStyleDeclaration- Specified by:
- startStyleDeclarationin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
updateContext- Specified by:
- updateContextin interface- StyleFormattingContext
 
- 
writeColon- Specified by:
- writeColonin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
writeComma- Specified by:
- writeCommain interface- StyleFormattingContext
- Throws:
- IOException
 
- 
writeComment- Specified by:
- writeCommentin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
writeFullIndent- Specified by:
- writeFullIndentin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
writeImportantPriority- Specified by:
- writeImportantPriorityin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
writeLeftCurlyBracket- Specified by:
- writeLeftCurlyBracketin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
writeLevelIndent- Specified by:
- writeLevelIndentin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
writeRightCurlyBracket- Specified by:
- writeRightCurlyBracketin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
writeSemiColon- Specified by:
- writeSemiColonin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
writeURL- Specified by:
- writeURLin interface- StyleFormattingContext
- Throws:
- IOException
 
- 
writeValuepublic 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 interface- StyleFormattingContext
- 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.
 
- 
writeShorthandValuepublic 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 interface- StyleFormattingContext
- 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.
 
 
-