|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
java.lang.Object
|
+--javax.swing.undo.AbstractUndoableEdit
|
+--javax.swing.undo.CompoundEdit
|
+--javax.swing.text.AbstractDocument.DefaultDocumentEvent
¹®¼°¡ º¯°æµÇ¾úÀ» °æ¿ì¿¡, ¹®¼ÀÇ º¯°æÀ» ÀúÀåÇÕ´Ï´Ù. ¹®¼ º¯°æ Æ®·£Àè¼Ç(transaction)·Î º¯°æÀ» ÇßÀ» °æ¿ì, º¯°æ ÅëÁö·Î ¹®¼ÀÇ º¯°æÀ» °è¼ÓÇØ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. À̰ÍÀº AbstractDocument Ŭ·¡½º, ¹× ¹®¼ ûÃëÀÚ¿¡ ´ëÇØ¼ º¯°æ Á¤º¸¸¦ Àü¼ÛÇÏ´Â È®Àå ±â´ÉÀ¸·Î »ç¿ëµË´Ï´Ù.
| ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä |
| Ŭ·¡½º javax.swing.event. DocumentEvent À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
DocumentEvent.ElementChange , DocumentEvent.EventType |
| ÇʵåÀÇ °³¿ä |
| Ŭ·¡½º javax.swing.undo. CompoundEdit ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
edits |
| Ŭ·¡½º javax.swing.undo. AbstractUndoableEdit ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
RedoName , UndoName |
| »ý¼ºÀÚÀÇ °³¿ä | |
AbstractDocument.DefaultDocumentEvent (int offs,
int len,
DocumentEvent.EventType type)
º¯°æ ·¹Äڵ带 ÀÛ¼ºÇÕ´Ï´Ù. |
|
| ¸Þ¼ÒµåÀÇ °³¿ä | |
boolean |
addEdit (UndoableEdit anEdit)
¹®¼ ÆíÁýÀ» Ãß°¡ÇÕ´Ï´Ù. |
DocumentEvent.ElementChange |
getChange (Element elem)
¿ä¼ÒÀÇ º¯°æÀ» ÃëµæÇÕ´Ï´Ù. |
Document |
getDocument ()
º¯°æ À̺¥Æ®ÀÇ ±â°¡ µÈ ¹®¼¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getLength ()
º¯°æÀÇ ±æÀ̸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getOffset ()
º¯°æÀÇ ½ÃÁ¡ÀÇ ¹®¼³»¿¡¼ÀÇ ¿ÀÇÁ¼Â(offset)¸¦ µ¹·ÁÁÝ´Ï´Ù. |
String |
getPresentationName ()
º¯°æ ·Î±×µîÀ¸·Î »ç¿ëµÇ´Â ÀÌ ÆíÁý °á°úÀÇ, ÆÇµ¶ °¡´ÉÇÑ Áö¿ª¿¡ ´ëÀÀÇÑ ±â¼úÀ» Á¦°øÇÕ´Ï´Ù. |
String |
getRedoPresentationName ()
[Àç½ÇÇà (Redo)] ¸Þ´º Ç׸ñµîÀ¸·Î »ç¿ëµÇ´Â ÀÌ ÆíÁý °á°úÀÇ, Àç½ÇÇàÇÒ ¼ö ÀÖ´Â Çü½ÄÀÇ ÆÇµ¶ °¡´ÉÇÑ Áö¿ª¿¡ ´ëÀÀÇÑ ±â¼úÀ» Á¦°øÇÕ´Ï´Ù. |
DocumentEvent.EventType |
getType ()
À̺¥Æ®ÀÇ Å¸ÀÔÀ» µ¹·ÁÁÝ´Ï´Ù. |
String |
getUndoPresentationName ()
[¹ÙÅÁÀ¸·Î µÇµ¹¸®´Â (Undo)] ¸Þ´º Ç׸ñµîÀ¸·Î »ç¿ëµÇ´Â ÀÌ ÆíÁý °á°úÀÇ, ¹ÙÅÁÀ¸·Î µÇµ¹¸± ¼ö ÀÖ´Â Çü½ÄÀÇ ÆÇµ¶ °¡´ÉÇÑ Áö¿ª¿¡ ´ëÀÀÇÑ ±â¼úÀ» Á¦°øÇÕ´Ï´Ù. |
boolean |
isSignificant ()
DefaultDocument À̺¥Æ®´Â Áß¿äÇÕ´Ï´Ù. |
void |
redo ()
º¯°æÀ» ´Ù½Ã ÇÕ´Ï´Ù. |
String |
toString ()
º¯°æ À̺¥Æ®ÀÇ ¼³¸í¹®ÀÚ¿À» µ¹·ÁÁÝ´Ï´Ù. |
void |
undo ()
º¯°æÀ» ¹ÙÅÁÀ¸·Î µÇµ¹¸³´Ï´Ù. |
| Ŭ·¡½º javax.swing.undo. CompoundEdit ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
canRedo , canUndo , die , end , isInProgress , lastEdit |
| Ŭ·¡½º javax.swing.undo. AbstractUndoableEdit ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
replaceEdit |
| Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
| »ý¼ºÀÚÀÇ »ó¼¼ |
public AbstractDocument.DefaultDocumentEvent(int offs,
int len,
DocumentEvent.EventType type)
offs - º¯°æ ¹®¼¿¡ÀÇ ¿ÀÇÁ¼Â(offset) >= 0len - º¯°æÀÇ ±æÀÌ >= 0type - À̺¥Æ®ÀÇ ÇüÅ (DocumentEvent.EventType)| ¸Þ¼ÒµåÀÇ »ó¼¼ |
public String toString()
CompoundEdit ³»ÀÇ toString public boolean addEdit(UndoableEdit anEdit)
UndoableEdit ³»ÀÇ addEdit CompoundEdit ³»ÀÇ addEdit anEdit - ¹®¼ ÆíÁý ·¹ÄÚµå
public void redo()
throws CannotRedoException
UndoableEdit ³»ÀÇ redo CompoundEdit ³»ÀÇ redo CannotRedoException - º¯°æÀÇ Àç½Ãµµ¸¦ ÇÒ ¼ö ¾ø´Â °æ¿ìAbstractUndoableEdit.canRedo()
public void undo()
throws CannotUndoException
UndoableEdit ³»ÀÇ undo CompoundEdit ³»ÀÇ undo CannotUndoException - º¯°æÀ» ¹ÙÅÁÀ¸·Î µÇµ¹¸± ¼ö ¾ø´Â °æ¿ìAbstractUndoableEdit.canUndo() public boolean isSignificant()
UndoableEdit ³»ÀÇ isSignificant CompoundEdit ³»ÀÇ isSignificant UndoableEdit.isSignificant() public String getPresentationName()
UndoableEdit ³»ÀÇ getPresentationName CompoundEdit ³»ÀÇ getPresentationName AbstractUndoableEdit.getUndoPresentationName() ,
AbstractUndoableEdit.getRedoPresentationName() public String getUndoPresentationName()
UndoableEdit ³»ÀÇ getUndoPresentationName CompoundEdit ³»ÀÇ getUndoPresentationName AbstractUndoableEdit.getPresentationName() public String getRedoPresentationName()
UndoableEdit ³»ÀÇ getRedoPresentationName CompoundEdit ³»ÀÇ getRedoPresentationName AbstractUndoableEdit.getPresentationName() public DocumentEvent.EventType getType()
DocumentEvent ³»ÀÇ getType DocumentEvent.getType() public int getOffset()
DocumentEvent ³»ÀÇ getOffset DocumentEvent.getOffset() public int getLength()
DocumentEvent ³»ÀÇ getLength DocumentEvent.getLength() public Document getDocument()
DocumentEvent ³»ÀÇ getDocument DocumentEvent.getDocument() public DocumentEvent.ElementChange getChange(Element elem)
DocumentEvent ³»ÀÇ getChange elem - ¿ä¼Ò
|
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.