sferyx.administration.renderers
Class SimpleHTMLWriter
java.lang.Object
javax.swing.text.AbstractWriter
javax.swing.text.html.HTMLWriter
sferyx.administration.renderers.XHTMLWriter
sferyx.administration.renderers.SimpleHTMLWriter
public class SimpleHTMLWriter
- extends XHTMLWriter
This is a simplified writer for EditorHTMLDocuments.
Fields inherited from class javax.swing.text.AbstractWriter |
NEWLINE |
Constructor Summary |
SimpleHTMLWriter(java.io.Writer w,
javax.swing.text.html.HTMLDocument doc)
|
SimpleHTMLWriter(java.io.Writer writer,
javax.swing.text.html.HTMLDocument doc,
int pos,
int len)
Creates a new SimpleHTMLWriter. |
Method Summary |
protected void |
emptyTag(javax.swing.text.Element elem)
|
protected boolean |
inRange(javax.swing.text.Element next)
Verifies if the given element is in the range for writing. |
boolean |
isReallyEmptyTag(javax.swing.text.Element elem)
|
void |
write()
Writes out the given range of the document. |
void |
write(javax.swing.text.Element toWrite)
Writes the given element and all its content - child elements, etc. |
void |
writeAttributes11(javax.swing.text.AttributeSet attr)
|
void |
writeElementContent(javax.swing.text.Element toWrite)
Writes out the element content without including the element itself. |
void |
writeEmbeddedTags(javax.swing.text.AttributeSet attr)
|
Methods inherited from class sferyx.administration.renderers.XHTMLWriter |
closeCustomTags, closeOutUnwantedEmbeddedTags, comment, disableIndentingAndLineBreaks, endTag, getCanWrapLines, indent, isAdditionStyleDefinition, isDisableIndentingAndLineBreaks, output, startTag, synthesizedElement, text, textAreaContent, write, write, writeAttributes, writeImageMaps, writeLineSeparator, writeOption |
Methods inherited from class javax.swing.text.html.HTMLWriter |
isBlockTag, matchNameAttribute, selectContent |
Methods inherited from class javax.swing.text.AbstractWriter |
decrIndent, getCurrentLineLength, getDocument, getElementIterator, getEndOffset, getIndentLevel, getIndentSpace, getLineLength, getLineSeparator, getStartOffset, getText, getWriter, incrIndent, isLineEmpty, setCanWrapLines, setCurrentLineLength, setIndentSpace, setLineLength, setLineSeparator, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleHTMLWriter
public SimpleHTMLWriter(java.io.Writer w,
javax.swing.text.html.HTMLDocument doc)
SimpleHTMLWriter
public SimpleHTMLWriter(java.io.Writer writer,
javax.swing.text.html.HTMLDocument doc,
int pos,
int len)
- Creates a new SimpleHTMLWriter.
- Parameters:
writer
- a Writerdoc
- an SimpleHTMLWriterpos
- the document location from which to fetch the contentlen
- the amount to write out
write
public void write()
throws java.io.IOException,
javax.swing.text.BadLocationException
- Writes out the given range of the document.
- Overrides:
write
in class javax.swing.text.html.HTMLWriter
- Throws:
java.io.IOException
javax.swing.text.BadLocationException
write
public void write(javax.swing.text.Element toWrite)
throws java.io.IOException,
javax.swing.text.BadLocationException
- Writes the given element and all its content - child elements, etc.
- Overrides:
write
in class XHTMLWriter
- Throws:
java.io.IOException
javax.swing.text.BadLocationException
writeElementContent
public void writeElementContent(javax.swing.text.Element toWrite)
throws java.io.IOException,
javax.swing.text.BadLocationException
- Writes out the element content without including the element itself.
- Overrides:
writeElementContent
in class XHTMLWriter
- Throws:
java.io.IOException
javax.swing.text.BadLocationException
inRange
protected boolean inRange(javax.swing.text.Element next)
- Verifies if the given element is in the range for writing.
- Overrides:
inRange
in class XHTMLWriter
isReallyEmptyTag
public boolean isReallyEmptyTag(javax.swing.text.Element elem)
- Overrides:
isReallyEmptyTag
in class XHTMLWriter
emptyTag
protected void emptyTag(javax.swing.text.Element elem)
throws javax.swing.text.BadLocationException,
java.io.IOException
- Overrides:
emptyTag
in class XHTMLWriter
- Throws:
javax.swing.text.BadLocationException
java.io.IOException
writeEmbeddedTags
public void writeEmbeddedTags(javax.swing.text.AttributeSet attr)
throws java.io.IOException
- Overrides:
writeEmbeddedTags
in class XHTMLWriter
- Throws:
java.io.IOException
writeAttributes11
public void writeAttributes11(javax.swing.text.AttributeSet attr)
throws java.io.IOException
- Throws:
java.io.IOException