|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
public class CompoundEdit
AbstractUndoableEdit ±¸»ó ¼ºê Ŭ·¡½º¿¡¼ ÀÛÀº UndoableEdit¸¦ Á¤¸®ÇØ Å« °Í¿¡ Á¶¸³ÇÕ´Ï´Ù.
| ÇÊµå °³¿ä | |
|---|---|
protected Vector <UndoableEdit > |
edits
CompoundEdit¿¡
ÀÇÇØ Çѵ¢¾î¸®¿¡ ¹ÙÅÁÀ¸·Î µÇµ¹¸®´Â/Àç½ÇÇàÇϴ ó¸®°¡ ½ÇÇàµÈ UndoableEdit
Ä÷º¼ÇÀÔ´Ï´Ù. |
| Ŭ·¡½º javax.swing.undo. AbstractUndoableEdit ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
|---|
RedoName,
UndoName |
| »ý¼ºÀÚ °³¿ä | |
|---|---|
CompoundEdit ()
|
|
| ¸Þ¼µå °³¿ä | |
|---|---|
boolean |
addEdit (UndoableEdit anEdit)
ÀÌ ÆíÁý °á°ú°¡ inProgressÀÎ °æ¿ì, anEdit¸¦ ¹Þ¾Æµé¿© true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
canRedo ()
isInProgress°¡ true Àΰ¡ ¶Ç´Â ½´ÆÛ Ŭ·¡½º°¡ false¸¦ µ¹·ÁÁÖ´Â °æ¿ì¿¡ false¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
canUndo ()
isInProgress°¡ true Àΰ¡ ¶Ç´Â ½´ÆÛ Ŭ·¡½º°¡ false¸¦ µ¹·ÁÁÖ´Â °æ¿ì¿¡ false¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
void |
die ()
°¢ Æí Áý°á°ú¿¡ ´ëÇØ¼ ±×°ÍÀÌ Ãß°¡µÇ¾úÀ» ¶§¿Í ¿ªÀÇ ¼ø¼·Î die¸¦ º¸³À´Ï´Ù. |
void |
end ()
inProgress¸¦ false ·Î ¼³Á¤ÇÕ´Ï´Ù. |
String |
getPresentationName ()
edits¿¡ Ãß°¡µÈ ¸¶Áö¸· UndoableEdit·Î
ºÎÅÍ getPresentationName¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
String |
getRedoPresentationName ()
edits¿¡ Ãß°¡µÈ ¸¶Áö¸· UndoableEdit·Î
ºÎÅÍ getRedoPresentationName¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
String |
getUndoPresentationName ()
edits¿¡ Ãß°¡µÈ ¸¶Áö¸· UndoableEdit·Î
ºÎÅÍ getUndoPresentationName¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isInProgress ()
ÀÌ ÆíÁý °á°ú°¡ ÁøÇàÁßÀÇ °æ¿ì, Áï, ¾ÆÁ÷ Á¾·á Áö½Ã¸¦ ¹Þ¾ÆµéÀÌÁö ¾ÊÀº °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isSignificant ()
edits ³»ÀÇ UndoableEdit
¾î¶² °ÍÀΰ¡°¡ true¸¦ µ¹·ÁÁÖ¾úÀ» °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
protected UndoableEdit |
lastEdit ()
edits ³»ÀÇ ¸¶Áö¸· UndoableEdit¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
void |
redo ()
Æ÷ÇÔ ¶°³¯ ¼ö ÀÖ¾î ¸ðµç UndoableEdit¿¡
Ãß°¡ÇÑ ¼ø¼·Î redo¸¦ º¸³À´Ï´Ù. |
String |
toString ()
ÀÌ °´Ã¼ÀÇ ÇÁ·ÎÆÛƼ¸¦ Ç¥½Ã ¹× ½Äº°Çϴ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù. |
void |
undo ()
Æ÷ÇÔ ¶°³¯ ¼ö ÀÖ¾î ¸ðµç UndoableEdit¿¡
Ãß°¡ÇßÀ» ¶§¿Í ¿ªÀÇ ¼ø¼·Î undo¸¦ º¸³À´Ï´Ù. |
| Ŭ·¡½º javax.swing.undo. AbstractUndoableEdit ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
replaceEdit |
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| ÇʵåÀÇ »ó¼¼ |
|---|
protected Vector <UndoableEdit > edits
CompoundEdit¿¡
ÀÇÇØ Çѵ¢¾î¸®¿¡ ¹ÙÅÁÀ¸·Î µÇµ¹¸®´Â/Àç½ÇÇàÇϴ ó¸®°¡ ½ÇÇàµÈ UndoableEdit
Ä÷º¼ÇÀÔ´Ï´Ù.
| »ý¼ºÀÚ »ó¼¼ |
|---|
public CompoundEdit()
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public void undo()
throws CannotUndoException
UndoableEdit¿¡
Ãß°¡ÇßÀ» ¶§¿Í ¿ªÀÇ ¼ø¼·Î undo¸¦ º¸³À´Ï´Ù.
UndoableEdit ³»ÀÇ undo AbstractUndoableEdit ³»ÀÇ undo CannotUndoException - canUndo°¡ false¸¦ µ¹·ÁÁÖ´Â °æ¿ìAbstractUndoableEdit.canUndo()
public void redo()
throws CannotRedoException
UndoableEdit¿¡
Ãß°¡ÇÑ ¼ø¼·Î redo¸¦ º¸³À´Ï´Ù.
UndoableEdit ³»ÀÇ redo AbstractUndoableEdit ³»ÀÇ redo CannotRedoException - canRedo°¡ false¸¦ µ¹·ÁÁÖ´Â °æ¿ìAbstractUndoableEdit.canRedo() protected UndoableEdit lastEdit()
edits ³»ÀÇ ¸¶Áö¸· UndoableEdit¸¦ ¸®ÅÏÇÕ´Ï´Ù. ´Ù¸¸, edits°¡ ºñ¾îÀÖ´Â °æ¿ì´Â nullÀ»
¸®ÅÏÇÕ´Ï´Ù.
public void die()
die¸¦ º¸³À´Ï´Ù.
UndoableEdit ³»ÀÇ die AbstractUndoableEdit ³»ÀÇ die die() public boolean addEdit(UndoableEdit anEdit)
inProgressÀÎ °æ¿ì, anEdit¸¦ ¹Þ¾Æµé¿© true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
ÀÌ CompoundEdit¿¡ Ãß°¡µÈ ¸¶Áö¸· ÆíÁý °á°ú´Â addEdit(anEdit)¸¦ ½ÇÇàÇÒ ±âȸ°¡ ÁÖ¾îÁý´Ï´Ù. ±× ÆíÁý °á°ú°¡ °ÅºÎÇÏ´Â (false¸¦ µ¹·ÁÁØ´Ù)¿ÍanEditÀÌ ¸¶Áö¸· ÆíÁý °á°ú¿¡ ´ëÇØ¼ replaceEdit¸¦ ½ÇÇàÇÒ ±âȸ°¡ ÁÖ¾îÁý´Ï´Ù. ¿©±â¼ anEditÀÌ false¸¦ µ¹·ÁÁÖ¸é, edit¿¡ Ãß°¡µË´Ï´Ù.
UndoableEdit ³»ÀÇ addEdit AbstractUndoableEdit ³»ÀÇ addEdit anEdit - Ãß°¡µÇ´Â ÆíÁý °á°ú
inProgressÀÎ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false¸¦ µ¹·ÁÁÖ´ÂUndoableEdit.addEdit(javax.swing.undo.UndoableEdit) public void end()
inProgress¸¦ false ·Î ¼³Á¤ÇÕ´Ï´Ù.
canUndo(),
canRedo() public boolean canUndo()
isInProgress°¡ true Àΰ¡ ¶Ç´Â ½´ÆÛ Ŭ·¡½º°¡ false¸¦ µ¹·ÁÁÖ´Â °æ¿ì¿¡ false¸¦ ¸®ÅÏÇÕ´Ï´Ù.
UndoableEdit ³»ÀÇ canUndo AbstractUndoableEdit ³»ÀÇ canUndo alive À̸ç, hasBeenDone°¡ trueÀÎ °æ¿ì, trueisInProgress() public boolean canRedo()
isInProgress°¡ true Àΰ¡ ¶Ç´Â ½´ÆÛ Ŭ·¡½º°¡ false¸¦ µ¹·ÁÁÖ´Â °æ¿ì¿¡ false¸¦ ¸®ÅÏÇÕ´Ï´Ù.
UndoableEdit ³»ÀÇ canRedo AbstractUndoableEdit ³»ÀÇ canRedo alive À̸ç, hasBeenDone°¡ falseÀÎ °æ¿ì, trueisInProgress() public boolean isInProgress()
end() public boolean isSignificant()
edits ³»ÀÇ UndoableEdit
¾î¶² °ÍÀΰ¡°¡ true¸¦ µ¹·ÁÁÖ¾úÀ» °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¸ðµç °ÍÀÌ false¸¦ µ¹·ÁÁÖ¾úÀ» °æ¿ì, false¸¦ ¸®ÅÏÇÕ´Ï´Ù.
UndoableEdit ³»ÀÇ isSignificant AbstractUndoableEdit ³»ÀÇ isSignificant UndoableEdit.isSignificant() public String getPresentationName()
edits¿¡ Ãß°¡µÈ ¸¶Áö¸· UndoableEdit·Î
ºÎÅÍ getPresentationName¸¦ ¸®ÅÏÇÕ´Ï´Ù. edits°¡ ºñ¾îÀÖ´Â °æ¿ì, ½´ÆÛ Ŭ·¡½º¸¦ È£ÃâÇÕ´Ï´Ù.
UndoableEdit ³»ÀÇ getPresentationName AbstractUndoableEdit ³»ÀÇ getPresentationName AbstractUndoableEdit.getUndoPresentationName(),
AbstractUndoableEdit.getRedoPresentationName() public String getUndoPresentationName()
edits¿¡ Ãß°¡µÈ ¸¶Áö¸· UndoableEdit·Î
ºÎÅÍ getUndoPresentationName¸¦ ¸®ÅÏÇÕ´Ï´Ù. edits°¡ ºñ¾îÀÖ´Â °æ¿ì, ½´ÆÛ Ŭ·¡½º¸¦ È£ÃâÇÕ´Ï´Ù.
UndoableEdit ³»ÀÇ getUndoPresentationName AbstractUndoableEdit ³»ÀÇ getUndoPresentationName getPresentationName°¡ "" ³ª¿ÀÁö ¾Ê´Â °æ¿ì´Â Ű AbstractUndoableEdit.undoText¸¦ »ç¿ëÇØ µðÆúÆ® Å×ÀÌºí¿¡¼ ÃëµæÇÑ °ª¿¡
°ø¹é ¹®ÀÚ ¹× getPresentationName¸¦ Ãß°¡ÇÑ °ª. getPresentationName°¡ ""ÀÎ °æ¿ì´Â ±âº»°ª
¸¸ÀÌ ¸®ÅϵȴÙ. AbstractUndoableEdit.getPresentationName() public String getRedoPresentationName()
edits¿¡ Ãß°¡µÈ ¸¶Áö¸· UndoableEdit·Î
ºÎÅÍ getRedoPresentationName¸¦ ¸®ÅÏÇÕ´Ï´Ù. edits°¡ ºñ¾îÀÖ´Â °æ¿ì, ½´ÆÛ Ŭ·¡½º¸¦ È£ÃâÇÕ´Ï´Ù.
UndoableEdit ³»ÀÇ getRedoPresentationName AbstractUndoableEdit ³»ÀÇ getRedoPresentationName getPresentationName°¡ "" ³ª¿ÀÁö ¾Ê´Â °æ¿ì´Â Ű AbstractUndoableEdit.redoText¸¦ »ç¿ëÇØ µðÆúÆ® Å×ÀÌºí¿¡¼ ÃëµæÇÑ °ªÀÇ µÚ·Î °ø¹é ¹®ÀÚ ¹× getPresentationName¸¦ Ãß°¡ÇÑ °Í. getPresentationName°¡ ""ÀÎ °æ¿ì´Â ±âº»°ª
¸¸ÀÌ ¸®ÅϵÈ
AbstractUndoableEdit.getPresentationName() public String toString()
AbstractUndoableEdit ³»ÀÇ toString
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.