|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.text.AbstractWriter | +--javax.swing.text.html.MinimalHTMLWriter
MinimalHTMLWriter ´Â EditorKit ·Î ÀÛ¼ºµÇÁö ¾Ê´Â ¹®¼ÀÇ HTML ¸¦ ½á³»±â À§Çؼ(¶§¹®¿¡) HTMLEditorKit °¡ »ç¿ëÇÏ´Â ´ëü ¶óÀÌÅÍÀÔ´Ï´Ù. ¹®¼ÀÇ Çü½ÄÀº ´ÙÀ½°ú °°½À´Ï´Ù.
<html> <head> <style> <! -- list of named styles p.normal { font-family: SansSerif; margin-height: 0; font-size: 14 } --> </style> </head> <body> <p style=normal> ½ÇÇà ÆÄÀÏÀÇ º¼µå, ÀÌÅŸ¯, ¹× ¹ØÁÙ ÀÇ °¢ ¼Ó¼ºÀº HTML ű׷μ ¹ßÇàµË´Ï´Ù. ±× ¿ÜÀÇ Å±״ <span> ű×ÀÇ ÀϺημ ¹ßÇàµË´Ï´Ù. ±¸¹®Àº ÀÎ ¶óÀÎÀÇ ½ºÅ¸Àϰú °°½À´Ï´Ù. </p> </body> </html>
ÇʵåÀÇ °³¿ä |
Ŭ·¡½º javax.swing.text. AbstractWriter ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
NEWLINE |
»ý¼ºÀÚÀÇ °³¿ä | |
MinimalHTMLWriter (Writer w,
StyledDocument doc)
»õ·Î¿î MinimalHTMLWriter ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
MinimalHTMLWriter (Writer w,
StyledDocument doc,
int pos,
int len)
»õ·Î¿î MinimalHTMLWriter ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
protected void |
endFontTag ()
ÇöÀç »ç¿ëµÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. |
protected boolean |
inFontTag ()
<font> ű׳»¶ó¸é true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected boolean |
isText (Element elem)
¿ä¼Ò°¡ ÅØ½ºÆ®¶ó¸é true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected void |
startFontTag (String style)
ÇöÀç »ç¿ëµÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. |
protected void |
text (Element elem)
ÅØ½ºÆ®¸¦ ½á³À´Ï´Ù. |
void |
write ()
StyledDocument ·ÎºÎÅÍ HTML Ãâ·ÂÀ» »ý¼ºÇÕ´Ï´Ù. |
protected void |
writeAttributes (AttributeSet attr)
´ÙÀ½ÀÇ Çü¿ëÀÇ ¸ðµç ¼Ó¼ºÀ» ½á³À´Ï´Ù. |
protected void |
writeBody ()
¹®¼³»ÀÇ ¿ä¼Ò·Î ¹Ýº¹ÇØ, °¡ÁöÀÇ ¿ä¼Ò³ª ÀÙÀÇ ¿ä¼ÒÀÎÁö¸¦ ÆÇ´ÜÇØ ¿ä¼Ò¸¦ ó¸®ÇÕ´Ï´Ù. |
protected void |
writeComponent (Element elem)
ÄÄÆÛ³ÍÆ® ¿ä¼ÒÀÇ ¼µÎ¸¦ ½Ç½ÃÇÕ´Ï´Ù. |
protected void |
writeContent (Element elem,
boolean needsIndenting)
HTML ¿¡ ÁذÅÇÑ ¹æ¹ýÀ¸·Î ¼Ó¼º ¼¼Æ®¸¦ ½á³À´Ï´Ù. |
protected void |
writeEndParagraph ()
<p> ű׿¡ ´ëÇÑ Á¾·á ű׸¦ ¹ßÇàÇÕ´Ï´Ù. |
protected void |
writeEndTag (String endTag)
ÀûÀýÈ÷ Àε§Æ® ó¸®µÈ Á¾·á ű׸¦ ½á³À´Ï´Ù. |
protected void |
writeHeader ()
<head> ¹× <style> ÀÇ Å±׸¦ ½á³», ´ÙÀ½¿¡ writeStyles()¸¦ ±âµ¿ÇØ <style> ű×ÀÇ ÄÁÅÙÃ÷·Î¼ ¸ðµç À̸§ ÷ºÎÀÇ ½ºÅ¸ÀÏÀ» ½á³À´Ï´Ù. |
protected void |
writeHTMLTags (AttributeSet attr)
¼Ó¼º ¼³Á¤¿¡ ±Ù°ÅÇØ ÅØ½ºÆ®ÀÇ º¼µå <b>, ÀÌÅŸ¯ <i>, ¹× <u> ÀÇ Å±׸¦ »ý¼ºÇÕ´Ï´Ù. |
protected void |
writeImage (Element elem)
¾ÆÀÌÄÜ ¿ä¼ÒÀÇ ¼µÎ¸¦ ½Ç½ÃÇÕ´Ï´Ù. |
protected void |
writeLeaf (Element elem)
ÅØ½ºÆ® ÀÌ¿ÜÀÇ ÀÙÀÇ ¿ä¼ÒÀÇ ¼µÎ¸¦ Á¦¾îÇÕ´Ï´Ù. |
protected void |
writeNonHTMLAttributes (AttributeSet attr)
HTML ÁذÅÀÇ ¹æ¹ýÀ¸·Î ³ª¸ÓÁöÀÇ Ä³¸¯ÅÍ ·¹º§ÀÇ ¼Ó¼º (º¼µå, ÀÌÅŸ¯, ¹ØÁÙ ÀÌ¿ÜÀÇ ¼Ó¼º)À» ½á³À´Ï´Ù. |
protected void |
writeStartParagraph (Element elem)
´Ü¶ôÀÇ °³½Ã ű׸¦ ¹ßÇàÇÕ´Ï´Ù. |
protected void |
writeStartTag (String tag)
ÀûÀýÈ÷ Àε§Æ® ó¸®µÈ °³½Ã ű׸¦ ½á³À´Ï´Ù. |
protected void |
writeStyles ()
<style> ű×ÀÇ ÄÁÅÙÃ÷·Î¼ ¸ðµç À̸§ ÷ºÎ ½ºÅ¸ÀÏÀ» ½á³À´Ï´Ù. |
Ŭ·¡½º javax.swing.text. AbstractWriter ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
decrIndent , getCanWrapLines , getCurrentLineLength , getDocument , getElementIterator , getEndOffset , getIndentLevel , getIndentSpace , getLineLength , getLineSeparator , getStartOffset , getText , getWriter , incrIndent , indent , inRange , isLineEmpty , output , setCanWrapLines , setCurrentLineLength , setIndentSpace , setLineLength , setLineSeparator , write , write , write , writeLineSeparator |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
public MinimalHTMLWriter(Writer w, StyledDocument doc)
w
- Writerdoc
- StyledDocumentpublic MinimalHTMLWriter(Writer w, StyledDocument doc, int pos, int len)
w
- Writerdoc
- StyledDocumentpos
- ÄÁÅÙÃ÷¸¦ ÃëµæÇÏ´Â ¹®¼³»ÀÇ À§Ä¡len
- ½á³»´Â ¾ç¸Þ¼ÒµåÀÇ »ó¼¼ |
public void write() throws IOException , BadLocationException
AbstractWriter
³»ÀÇ write
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos °¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ìprotected void writeAttributes(AttributeSet attr) throws IOException
AbstractWriter
³»ÀÇ writeAttributes
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void text(Element elem) throws IOException , BadLocationException
AbstractWriter
³»ÀÇ text
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos °¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ìprotected void writeStartTag(String tag) throws IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void writeEndTag(String endTag) throws IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void writeHeader() throws IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void writeStyles() throws IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void writeBody() throws IOException , BadLocationException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
protected void writeEndParagraph() throws IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void writeStartParagraph(Element elem) throws IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void writeLeaf(Element elem) throws IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void writeImage(Element elem) throws IOException
elem
- StyleConstants.IconElementName ÇüÀÇ ¿ä¼Ò
IOException
protected void writeComponent(Element elem) throws IOException
IOException
protected boolean isText(Element elem)
protected void writeContent(Element elem, boolean needsIndenting) throws IOException , BadLocationException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos °¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ìprotected void writeHTMLTags(AttributeSet attr) throws IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void writeNonHTMLAttributes(AttributeSet attr) throws IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected boolean inFontTag()
protected void endFontTag() throws IOException
<font> ű׿ëÀÇ Á¾·á ű׸¦ ½á³À´Ï´Ù.
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void startFontTag(String style) throws IOException
<font> ű׿ëÀÇ °³½Ã ű׸¦ ½á³À´Ï´Ù. ÆùÆ® ű״ »óÀÚ·Î ÇÒ ¼ö ¾ø±â ¶§¹®¿¡, »õ·Î¿î °³½Ã ű׸¦ ½á³»±â Àü¿¡, ÆùÆ® ű×ÀÇ Æ÷À§¸¦ Ŭ·Î¿ìÁî ÇÕ´Ï´Ù.
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.