Module io.sf.carte.css4j
Package io.sf.carte.doc.style.css.om
Class DefaultDeclarationFormattingContext
java.lang.Object
io.sf.carte.doc.style.css.om.DefaultDeclarationFormattingContext
- All Implemented Interfaces:
DeclarationFormattingContext,Serializable
- Direct Known Subclasses:
ColorDeclarationFormattingContext,DefaultStyleFormattingContext
public class DefaultDeclarationFormattingContext
extends Object
implements DeclarationFormattingContext, Serializable
Default implementation of a DeclarationFormattingContext.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEnds a property declaration in a rule style (does not apply to inline styles).voidStarts a property declaration in a rule style (does not apply to inline styles).voidwriteColon(SimpleWriter wri) Serialize a colon to aSimpleWriter.voidwriteComma(SimpleWriter wri) Serialize a comma to aSimpleWriter.voidSerialize a full paragraph indent to aSimpleWriter.voidSerialize a semicolon to aSimpleWriter.voidwriteURL(SimpleWriter wri, String href) Serialize a URL/URI to aSimpleWriter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.sf.carte.doc.style.css.DeclarationFormattingContext
writeMinifiedValue, writeValue
-
Constructor Details
-
DefaultDeclarationFormattingContext
public DefaultDeclarationFormattingContext()
-
-
Method Details
-
endPropertyDeclaration
Description copied from interface:DeclarationFormattingContextEnds a property declaration in a rule style (does not apply to inline styles).It is called after
DeclarationFormattingContext.writeSemiColon(SimpleWriter).- Specified by:
endPropertyDeclarationin interfaceDeclarationFormattingContext- Parameters:
wri- the writer.- Throws:
IOException- if an I/O problem happens while writing to theSimpleWriter.
-
startPropertyDeclaration
Description copied from interface:DeclarationFormattingContextStarts a property declaration in a rule style (does not apply to inline styles).It is called before writing the property name.
- Specified by:
startPropertyDeclarationin interfaceDeclarationFormattingContext- Parameters:
wri- the writer.- Throws:
IOException- if an I/O problem happens while writing to theSimpleWriter.
-
writeColon
Description copied from interface:DeclarationFormattingContextSerialize a colon to aSimpleWriter.- Specified by:
writeColonin interfaceDeclarationFormattingContext- Parameters:
wri- the writer.- Throws:
IOException- if an I/O problem happens while writing to theSimpleWriter.
-
writeComma
Description copied from interface:DeclarationFormattingContextSerialize a comma to aSimpleWriter.- Specified by:
writeCommain interfaceDeclarationFormattingContext- Parameters:
wri- the writer.- Throws:
IOException- if an I/O problem happens while writing to theSimpleWriter.
-
writeFullIndent
Description copied from interface:DeclarationFormattingContextSerialize a full paragraph indent to aSimpleWriter.- Specified by:
writeFullIndentin interfaceDeclarationFormattingContext- Parameters:
wri- the writer.- Throws:
IOException- if an I/O problem happens while writing to theSimpleWriter.
-
writeSemiColon
Description copied from interface:DeclarationFormattingContextSerialize a semicolon to aSimpleWriter.Called after writing the property name.
- Specified by:
writeSemiColonin interfaceDeclarationFormattingContext- Parameters:
wri- the writer.- Throws:
IOException- if an I/O problem happens while writing to theSimpleWriter.
-
writeURL
Description copied from interface:DeclarationFormattingContextSerialize a URL/URI to aSimpleWriter.- Specified by:
writeURLin interfaceDeclarationFormattingContext- Parameters:
wri- the writer.href- the URI.- Throws:
IOException- if an I/O problem happens while writing to theSimpleWriter.
-