Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

MinimalHTMLWriter Class Reference

Inherits javax::swing::text::AbstractWriter.

List of all members.


Public Member Functions

 MinimalHTMLWriter (final Writer w, final StyledDocument doc, final int pos, final int len)
 MinimalHTMLWriter (final Writer w, final StyledDocument doc)
void write () throws IOException, BadLocationException

Protected Member Functions

boolean inFontTag ()
boolean isText (final Element elem)
void startFontTag (final String style) throws IOException
void endFontTag () throws IOException
void text (final Element elem) throws IOException, BadLocationException
void writeAttributes (final AttributeSet attr) throws IOException
void writeBody () throws IOException, BadLocationException
void writeContent (final Element elem, final boolean needsIndenting) throws IOException, BadLocationException
void writeStartTag (final String tag) throws IOException
void writeEndParagraph () throws IOException
void writeEndTag (final String endTag) throws IOException
void writeHTMLTags (final AttributeSet attr) throws IOException
void writeHeader () throws IOException
void writeImage (final Element elem) throws IOException
void writeComponent (final Element elem) throws IOException
void writeLeaf (final Element elem) throws IOException
void writeNonHTMLAttributes (final AttributeSet attr) throws IOException
void writeStartParagraph (final Element elem) throws IOException
void writeStyles () throws IOException

Private Member Functions

void writeHTMLTagIfNeeded (final HTML.Tag tag) throws IOException
void writeEndHTMLTagIfNeeded (final HTML.Tag tag) throws IOException
void writeEndHTMLTags (final AttributeSet attr) throws IOException
void writeStartSpan (final AttributeSet attr) throws IOException
void writeEndSpan () throws IOException
String writeAttributeAsCSS (final Object attr, final Object value) throws IOException
void writeParagraphElements (final Element paragraph) throws IOException, BadLocationException
void writeDocumentTitle () throws IOException

Static Private Member Functions

static String getParagraphStyleName (final Element par)
static Object convertToCSSAttribute (final Object attr)
static Object convertToCSSValue (final Object cssAttr, final Object value)

Private Attributes

Vector openEmbeddedTags = new Vector()
boolean inFontTag

Static Private Attributes

static final AttributeSet EMPTY_ATTR_SET = new SimpleAttributeSet()

Constructor & Destructor Documentation

MinimalHTMLWriter ( final Writer  w,
final StyledDocument  doc,
final int  pos,
final int  len 
)

MinimalHTMLWriter ( final Writer  w,
final StyledDocument  doc 
)


Member Function Documentation

boolean inFontTag (  )  [protected]

boolean isText ( final Element  elem  )  [protected]

void startFontTag ( final String  style  )  throws IOException [protected]

void endFontTag (  )  throws IOException [protected]

void text ( final Element  elem  )  throws IOException, BadLocationException [protected]

Reimplemented from AbstractWriter.

void write (  )  throws IOException, BadLocationException [virtual]

Implements AbstractWriter.

void writeAttributes ( final AttributeSet  attr  )  throws IOException [protected]

Reimplemented from AbstractWriter.

void writeBody (  )  throws IOException, BadLocationException [protected]

void writeContent ( final Element  elem,
final boolean  needsIndenting 
) throws IOException, BadLocationException [protected]

void writeStartTag ( final String  tag  )  throws IOException [protected]

void writeEndParagraph (  )  throws IOException [protected]

void writeEndTag ( final String  endTag  )  throws IOException [protected]

void writeHTMLTags ( final AttributeSet  attr  )  throws IOException [protected]

void writeHeader (  )  throws IOException [protected]

void writeImage ( final Element  elem  )  throws IOException [protected]

void writeComponent ( final Element  elem  )  throws IOException [protected]

void writeLeaf ( final Element  elem  )  throws IOException [protected]

void writeNonHTMLAttributes ( final AttributeSet  attr  )  throws IOException [protected]

void writeStartParagraph ( final Element  elem  )  throws IOException [protected]

void writeStyles (  )  throws IOException [protected]

void writeHTMLTagIfNeeded ( final HTML.Tag  tag  )  throws IOException [private]

void writeEndHTMLTagIfNeeded ( final HTML.Tag  tag  )  throws IOException [private]

void writeEndHTMLTags ( final AttributeSet  attr  )  throws IOException [private]

static String getParagraphStyleName ( final Element  par  )  [static, private]

void writeStartSpan ( final AttributeSet  attr  )  throws IOException [private]

void writeEndSpan (  )  throws IOException [private]

String writeAttributeAsCSS ( final Object  attr,
final Object  value 
) throws IOException [private]

void writeParagraphElements ( final Element  paragraph  )  throws IOException, BadLocationException [private]

static Object convertToCSSAttribute ( final Object  attr  )  [static, private]

static Object convertToCSSValue ( final Object  cssAttr,
final Object  value 
) [static, private]

void writeDocumentTitle (  )  throws IOException [private]


Member Data Documentation

final AttributeSet EMPTY_ATTR_SET = new SimpleAttributeSet() [static, private]

Vector openEmbeddedTags = new Vector() [private]

boolean inFontTag [private]