|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.text.EditorKit
public abstract class EditorKit
ƯÁ¤ÀÇ Å¸ÀÔÀÇ ÅØ½ºÆ® ÄÁÅÙÃ÷¿¡ ´ëÇØ¼ ÀûÀýÇÑ ¿¡µðÅͷμ ±â´ÉÇϱâ À§Çؼ ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®°¡ ÇÊ¿ä·Î ÇÏ´Â °ÍÀÇ ¼¼Æ®¸¦ È®¸³ÇÕ´Ï´Ù. EditorKit´Â ƯÁ¤ÀÇ Å¸ÀÔÀÇ Á¤Ã¥ ÀÇ ÆÑÅ丮·Î¼ µ¿ÀÛÇÕ´Ï´Ù. ¿¹¸¦ µé¾î ´Ù¸¥ ±¸ÇöÀ¸·Î ¿Å°Ü³õ°í °¡´ÉÇÑ html¿Í rtf ±¸ÇöÀ» Á¦°øÇÒ ¼ö ÀÖ½À´Ï´Ù .
ŶÀÇ ÀνºÅϽº´Â ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®ÀÇ Àü¿ëÀÌ µÇ¹Ç·Î ŶÀº ¾ÈÀüÇÏ°Ô ÆíÁý »óŸ¦ Æ÷ÇÔÇÒ ¼ö ÀÖ½À´Ï´Ù. »õ·Î¿î ŶÀº ÀϹÝÀûÀ¸·Î prototype ŶÀ» º¹»çÇØ
ÀÛ¼ºµË´Ï´Ù. ŶÀº ±×°Í ÀÚ½ÅÀÇ setComponent
¸Þ¼µå¸¦ °¡Á®, ±× ¸Þ¼µå´Â ŶÀÌ JTextComponent¿Í
ÀÇ °ü°è¸¦ È®¸³Çϱâ À§Çؼ È£ÃâÇÕ´Ï´Ù.
»ý¼ºÀÚ °³¿ä | |
---|---|
EditorKit ()
EditorKit¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
Object |
clone ()
ÆíÁý ŶÀÇ º¹»çº»À» ÀÛ¼ºÇÕ´Ï´Ù. |
abstract Caret |
createCaret ()
°ü·ÃµÈ ViewFactory°¡ ÀÛ¼ºÇÏ´Â ºä¸¦ ¾È³»ÇÒ ¼ö ÀÖ´Â caret¸¦ ²¨³À´Ï´Ù. |
abstract Document |
createDefaultDocument ()
ÀÌ Å¸ÀÔÀÇ ¿¡µðÅÍ¿¡ ÀûÀýÇϰí ÀÖ´Â ¹ÌÃʱâÈ ÅØ½ºÆ® ½ºÅ丮Áö ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù. |
void |
deinstall (JEditorPane c)
ŶÀÌ JEditorPane ·ÎºÎÅÍ »èÁ¦µÇ°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù. |
abstract Action [] |
getActions ()
ÀÌ Å¶ÀÌ ÀÛ¼ºÇÑ ¸ðµ¨°ú ºä¸¦ »ç¿ëÇϰí ÀÖ´Â ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®·Î »ç¿ëÇÒ ¼ö ÀÖ´Â Ä¿¸àµå¼¼Æ®¸¦ ²¨³À´Ï´Ù. |
abstract String |
getContentType ()
ÀÌ Å¶ÀÌ Áö¿øÇÏ´Â µ¥ÀÌÅÍÀÇ MIME ŸÀÔÀ» ¸®ÅÏÇÕ´Ï´Ù. |
abstract ViewFactory |
getViewFactory ()
ÀÌ Å¶ÀÌ ÀÛ¼ºÇÑ ÀÓÀÇÀÇ ¸ðµ¨ÀÇ ºä¸¦ ÀÛ¼ºÇϴµ¥ ÀûÇÕÇÑ ÆÑÅ丮¸¦ ²¨³À´Ï´Ù. |
void |
install (JEditorPane c)
ŶÀÌ JEditorPane¿¡ ÀνºÅç µÉ ¶§ È£ÃâÇÕ´Ï´Ù. |
abstract void |
read (InputStream in,
Document doc,
int pos)
ÀÌ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ Çڵ鷯¿¡ ÀûÀýÇÑ Çü½ÄÀÌ´Ù°í ¿¹»óµÇ´Â ÄÁÅÙÃ÷¸¦, ÁöÁ¤ÇÑ ½ºÆ®¸²·ÎºÎÅÍ »ðÀÔÇÕ´Ï´Ù. |
abstract void |
read (Reader in,
Document doc,
int pos)
ÀÌ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ Çڵ鷯¿¡ ÀûÀýÇÑ Çü½ÄÀÌ´Ù°í ¿¹»óµÇ´Â ÄÁÅÙÃ÷¸¦, ÁöÁ¤ÇÑ ½ºÆ®¸²·ÎºÎÅÍ »ðÀÔÇÕ´Ï´Ù. |
abstract void |
write (OutputStream out,
Document doc,
int pos,
int len)
ÀÌ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ Çڵ鷯¿¡ ÀûÀýÇÑ Çü½Ä¿¡¼ ¹®¼·ÎºÎÅÍ ½ºÆ®¸²¿¡ ÄÁÅÙÃ÷¸¦ Ãâ·ÂÇÕ´Ï´Ù. |
abstract void |
write (Writer out,
Document doc,
int pos,
int len)
ÀÌ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ Çڵ鷯¿¡ ÀûÀýÇÑ Çü½Ä¿¡¼ ¹®¼·ÎºÎÅÍ ½ºÆ®¸²¿¡ ÄÁÅÙÃ÷¸¦ Ãâ·ÂÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public EditorKit()
¸Þ¼µåÀÇ »ó¼¼ |
---|
public Object clone()
Object
³»ÀÇ clone
Cloneable
public void install(JEditorPane c)
c
- JEditorPanepublic void deinstall(JEditorPane c)
c
- JEditorPanepublic abstract String getContentType()
public abstract ViewFactory getViewFactory()
public abstract Action [] getActions()
public abstract Caret createCaret()
public abstract Document createDefaultDocument()
public abstract void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException
in
- ÀÐÀ» ½ºÆ®¸²doc
- »ðÀÔópos
- ÄÁÅÙÃ÷¸¦ »ðÀÔÇÏ´Â ¹®¼³»ÀÇ À§Ä¡ >= 0
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos°¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ìpublic abstract void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException
out
- Ãâ·ÂóÀÇ ½ºÆ®¸²doc
- Ãâ·Â¿øpos
- ÄÁÅÙÃ÷¸¦ ²¨³»´Â ¹®¼³»ÀÇ À§Ä¡ >= 0len
- ½á³»´Â ¾ç >= 0
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos°¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ìpublic abstract void read(Reader in, Document doc, int pos) throws IOException, BadLocationException
½ÇÁ¦ÀÇ ÅØ½ºÆ® ÆíÁýÀº Unicode¿¡ ±Ù°ÅÇϰí ÀÖÀ¸¹Ç·Î À̰ÍÀº ÀϹÝÀûÀ¸·Î µ¥ÀÌÅ͸¦ ÀоîµéÀ̴µ¥ ÀûÇÕÇÑ ¹æ¹ýÀÔ´Ï´Ù. ¾î´À ŸÀÔÀÇ ÄÁÅÙÃ÷´Â 8 ºñÆ® Çü½Ä¿¡¼ º¸Á¸µÇ°í ÀÖ½À´Ï´Ù¸¸, InputStream¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù.
in
- ÀÐÀ» ½ºÆ®¸²doc
- »ðÀÔópos
- ÄÁÅÙÃ÷¸¦ »ðÀÔÇÏ´Â ¹®¼³»ÀÇ À§Ä¡ >= 0
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos°¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ìpublic abstract void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException
½ÇÁ¦ÀÇ ÅØ½ºÆ® ÆíÁýÀº Unicode¿¡ ±Ù°ÅÇϰí ÀÖÀ¸¹Ç·Î À̰ÍÀº ÀϹÝÀûÀ¸·Î µ¥ÀÌÅ͸¦ Ãâ·ÂÇϴµ¥ ÀûÇÕÇÑ ¹æ¹ýÀÔ´Ï´Ù. ¾î´À ŸÀÔÀÇ ÄÁÅÙÃ÷´Â 8 ºñÆ® Çü½Ä¿¡¼ º¸Á¸µÇ°í ÀÖ½À´Ï´Ù¸¸, OutputStream¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù.
out
- Ãâ·ÂóÀÇ ½ºÆ®¸²doc
- Ãâ·Â¿øpos
- ÄÁÅÙÃ÷¸¦ ²¨³»´Â ¹®¼³»ÀÇ À§Ä¡ >= 0len
- ½á³»´Â ¾ç >= 0
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos°¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.