Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.swing.text.AbstractWriter
javax.swing.text.html.MinimalHTMLWriter
public class MinimalHTMLWriter
extends AbstractWriter
Field Summary |
Fields inherited from class javax.swing.text.AbstractWriter | |
NEWLINE |
Constructor Summary | |
| |
|
Method Summary | |
protected void |
|
protected boolean |
|
protected boolean | |
protected void |
|
protected void | |
void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void | |
protected void |
|
protected void |
|
protected void |
|
protected void |
|
Methods inherited from class javax.swing.text.AbstractWriter | |
decrIndent , getCanWrapLines , getCurrentLineLength , getDocument , getElementIterator , getEndOffset , getIndentLevel , getIndentSpace , getLineLength , getLineSeparator , getStartOffset , getText , getWriter , inRange , incrIndent , indent , isLineEmpty , output , setCanWrapLines , setCurrentLineLength , setIndentSpace , setLineLength , setLineSeparator , text , write , write , write , write , writeAttributes , writeLineSeparator |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public MinimalHTMLWriter(Writer w, StyledDocument doc)
Constructs a MinimalHTMLWriter.
- Parameters:
w
- - a Writer, for output.doc
- - the document
public MinimalHTMLWriter(Writer w, StyledDocument doc, int pos, int len)
Constructs a MinimalHTMLWriter.
- Parameters:
w
- - a Writer, for output.doc
- - the documentpos
- - start positionlen
- - length
protected void text(Element elem) throws IOException, BadLocationException
- Overrides:
- text in interface AbstractWriter
public void write() throws IOException, BadLocationException
Write the entire HTML document.
- Overrides:
- write in interface AbstractWriter
protected void writeAttributes(AttributeSet attr) throws IOException
Write a set of attributes.
- Overrides:
- writeAttributes in interface AbstractWriter
protected void writeBody() throws IOException, BadLocationException
Writes the body of the HTML document.
protected void writeComponent(Element elem) throws IOException
Deliberately unimplemented, handles component elements.
protected void writeContent(Element elem, boolean needsIndenting) throws IOException, BadLocationException
Writes the content of an element.
protected void writeEndParagraph() throws IOException
Write a paragraph end tag, closes any other open tags.
protected void writeEndTag(String endTag) throws IOException
Write an ending tag and decrement the indent.
protected void writeHTMLTags(AttributeSet attr) throws IOException
Write bold, indent and underline tags.
protected void writeImage(Element elem) throws IOException
Deliberately unimplemented. Writes StyleConstants.IconElementName elements.
protected void writeNonHTMLAttributes(AttributeSet attr) throws IOException
Write the HTML attributes which do not have tag equivalents, e.g. attributes other than bold/italic/underlined.
protected void writeStartParagraph(Element elem) throws IOException
Write a paragraph start tag.
protected void writeStartTag(String tag) throws IOException
Write a start tag and increment the indent.