|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
public static interface AbstractDocument.Content
ÆíÁý °¡´ÉÇÑ ¹®ÀÚÀÇ ¼ø¼¸¦ ³ªÅ¸³»´Â ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù. ±¸Çö¿¡¼´Â º¯°æÀÌ UndoableEdit ±¸ÇöÀ» µ¹·ÁÁÙÁö ¾î¶³Áö¸¦ ¹Ý¿µÇÏ´Â ÀÌ·Â µµ±¸¸¦ Áö¿ø ÇØµµ ÇÏÁö ¾Ê¾Æµµ ±¦Âú½À´Ï´Ù.
AbstractDocument | ¸Þ¼µå °³¿ä | |
|---|---|
Position |
createPosition (int offset)
ÄÁÅÙÃ÷°¡ º¯°æµÇ¾úÀ» ¶§¿¡ º¯°æÀ» ÃßÀûÇÏ´Â ÄÁÅÙÃ÷³»ÀÇ À§Ä¡¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
void |
getChars (int where,
int len,
Segment txt)
¹®ÀÚÀÇ ¼ø¼¸¦ ÃëµæÇØ, ¼¼±×¸ÕÆ®(segment)¿¡ Ä«ÇÇÇÕ´Ï´Ù. |
String |
getString (int where,
int len)
¼ø¼¿¡ Æ÷ÇԵǴ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù. |
UndoableEdit |
insertString (int where,
String str)
¼ø¼¿¡ ij¸¯ÅÍ ¶óÀÎÀ» »ðÀÔÇÕ´Ï´Ù. |
int |
length ()
¹®ÀÚ ¼ø¼ÀÇ, ÇöÀçÀÇ ±æÀÌÀÔ´Ï´Ù. |
UndoableEdit |
remove (int where,
int nitems)
¼ø¼ÀÇ ÀϺθ¦ »èÁ¦ÇÕ´Ï´Ù. |
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
Position createPosition(int offset)
throws BadLocationException
offset - ÄÁÅÙÃ÷ÀÇ ¿ÀÇÁ¼Â(offset) >= 0
BadLocationException - ¿ÀÇÁ¼Â(offset)°¡ ¹«È¿ÀÎ °æ¿ìint length()
UndoableEdit insertString(int where,
String str)
throws BadLocationException
where - »ðÀÔÇÏ´Â ¼ø¼±îÁöÀÇ ¿ÀÇÁ¼Â(offset) >= 0str - »ðÀÔÇϴ ij¸¯ÅÍ ¶óÀÎ
Edit
±¸Çö¿¡ÀÇ ÂüÁ¶°¡ ¸®ÅϵȴÙ. ±×·¸Áö ¾ÊÀº °æ¿ì´Â nullÀÌ ¸®ÅϵȴÙ
BadLocationException - Àμö¿¡ ÀÇÇØ ÁöÁ¤µÈ ¿µ¿ªÀÌ ¹®ÀÚÀÇ ¼ø¼¿¡ Æ÷ÇÔµÇÁö ¾Ê´Â °æ¿ì´Â Throw µÈ´Ù
UndoableEdit remove(int where,
int nitems)
throws BadLocationException
where - »ðÀÔÇÏ´Â ¼ø¼±îÁöÀÇ ¿ÀÇÁ¼Â(offset) >= 0nitems - »èÁ¦ ´ë»óÀÌ µÇ´Â ¼ø¼³»ÀÇ Ç׸ñÀÇ ¼ö >= 0
BadLocationException - Àμö¿¡ ÀÇÇØ ÁöÁ¤µÈ ¿µ¿ªÀÌ ¹®ÀÚÀÇ ¼ø¼¿¡ Æ÷ÇÔµÇÁö ¾Ê´Â °æ¿ì´Â Throw µÈ´Ù
String getString(int where,
int len)
throws BadLocationException
where - ¾ò´Â ¼ø¼±îÁöÀÇ ¿ÀÇÁ¼Â(offset) >= 0len - Ä«ÇÇÇÏ´Â ¹®ÀÚ¼ö >= 0
BadLocationException - Àμö¿¡ ÀÇÇØ ÁöÁ¤µÈ ¿µ¿ªÀÌ ¹®ÀÚÀÇ ¼ø¼¿¡ Æ÷ÇÔµÇÁö ¾Ê´Â °æ¿ì´Â Throw µÈ´Ù
void getChars(int where,
int len,
Segment txt)
throws BadLocationException
where - °³½Ã ¿ÀÇÁ¼Â(offset) >= 0len - ¹®ÀÚ¼ö >= 0txt - Ä«ÇÇóÀÇ À§Ä¡
BadLocationException - Àμö¿¡ ÀÇÇØ ÁöÁ¤µÈ ¿µ¿ªÀÌ ¹®ÀÚÀÇ ¼ø¼¿¡ Æ÷ÇÔµÇÁö ¾Ê´Â °æ¿ì´Â Throw µÈ´Ù
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.