JavaTM 2
Platform
Std.  Ed.  v1. 4.0

javax.swing.undo
클래스 CompoundEdit

java.lang.Object 
  |
  +--javax.swing.undo.AbstractUndoableEdit 
        |
        +--javax.swing.undo.CompoundEdit
모든 구현 인터페이스:
Serializable , UndoableEdit
직계의 기존의 서브 클래스:
AbstractDocument.DefaultDocumentEvent , UndoManager

public class CompoundEdit
extends AbstractUndoableEdit

AbstractUndoableEdit 의 구상 서브 클래스에서, 작은 UndoableEdit 를 정리해 큰 것에 조립합니다.


필드의 개요
protected  Vector 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 ()
          이 오브젝트의 프로퍼티를 표시 및 식별하는 캐릭터 라인을 돌려줍니다.
 void undo ()
          저장 떠날 수 있어 모든 UndoableEdit 에, 추가했을 때와 역의 순서로 undo 를 보냅니다.
 
클래스 javax.swing.undo. AbstractUndoableEdit 에서 상속받은 메소드
replaceEdit
 
클래스 java.lang. Object 에서 상속받은 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

필드의 상세

edits

protected Vector  edits
CompoundEdit 에 의해 한덩어리에, 바탕으로 되돌리는/재실행하는 처리가 실행된 UndoableEdit 의 콜렉션입니다.

생성자의 상세

CompoundEdit

public CompoundEdit()
메소드의 상세

undo

public void undo()
          throws CannotUndoException 
저장 떠날 수 있어 모든 UndoableEdit 에, 추가했을 때와 역의 순서로 undo 를 보냅니다.

정의:
인터페이스 UndoableEdit 내의 undo
오버라이드(override):
클래스 AbstractUndoableEdit 내의 undo
예외:
CannotUndoException - canUndofalse 를 돌려주는 경우
관련 항목:
AbstractUndoableEdit.canUndo()

redo

public void redo()
          throws CannotRedoException 
저장 떠날 수 있어 모든 UndoableEdit 에, 추가한 순서로 redo 를 보냅니다.

정의:
인터페이스 UndoableEdit 내의 redo
오버라이드(override):
클래스 AbstractUndoableEdit 내의 redo
예외:
CannotRedoException - canRedofalse 를 돌려주는 경우
관련 항목:
AbstractUndoableEdit.canRedo()

lastEdit

protected UndoableEdit  lastEdit()
edits 내의 마지막 UndoableEdit 를 돌려줍니다. 다만,edits 가 비었을 경우는 null 를 돌려줍니다.


die

public void die()
각 편 집결과에 대해서, 그것이 추가되었을 때와 역의 순서로 die 를 보냅니다.

정의:
인터페이스 UndoableEdit 내의 die
오버라이드(override):
클래스 AbstractUndoableEdit 내의 die
관련 항목:
die()

addEdit

public boolean addEdit(UndoableEdit  anEdit)
이 편집 결과가 inProgress 의 경우,anEdit 를 받아들여 true 를 돌려줍니다.

CompoundEdit 에 추가된 마지막 편집 결과는 addEdit(anEdit) 를 실행할 기회가 주어집니다. 그 편집 결과가 거부하는 (false 를 돌려준다)와anEdit 가 마지막 편집 결과에 대해서 replaceEdit 를 실행할 기회가 주어집니다. 여기서 anEdit 가 false 를 돌려주면(자),edit 에 추가됩니다.

정의:
인터페이스 UndoableEdit 내의 addEdit
오버라이드(override):
클래스 AbstractUndoableEdit 내의 addEdit
파라미터:
anEdit - 추가되는 편집 결과
반환값:
편집 결과가 inProgress 의 경우는 true, 그렇지 않은 경우는 false 를 돌려주는
관련 항목:
UndoableEdit.addEdit(javax.swing.undo.UndoableEdit)

end

public void end()
inProgress 를 false 로 설정합니다.

관련 항목:
canUndo() , canRedo()

canUndo

public boolean canUndo()
isInProgress 가 true 인가, 또는 슈퍼 클래스가 false 를 돌려주는 경우에 false 를 돌려줍니다.

정의:
인터페이스 UndoableEdit 내의 canUndo
오버라이드(override):
클래스 AbstractUndoableEdit 내의 canUndo
반환값:
이 편집 결과가 alive 이며,hasBeenDonetrue 의 경우, true
관련 항목:
isInProgress()

canRedo

public boolean canRedo()
isInProgress 가 true 인가, 또는 슈퍼 클래스가 false 를 돌려주는 경우에 false 를 돌려줍니다.

정의:
인터페이스 UndoableEdit 내의 canRedo
오버라이드(override):
클래스 AbstractUndoableEdit 내의 canRedo
반환값:
이 편집 결과가 alive 이며,hasBeenDonefalse 의 경우,true
관련 항목:
isInProgress()

isInProgress

public boolean isInProgress()
이 편집 결과가 진행중의 경우, 즉, 아직 종료 지시를 받아들이지 않은 경우에, true 를 돌려줍니다. 이것은 통상, edits 가 아직 추가중인 것을 의미합니다.

관련 항목:
end()

isSignificant

public boolean isSignificant()
edits 내의 UndoableEdit 의 어떤 것인가가 true 를 돌려주었을 경우에 true 를 돌려줍니다. 모든 것이 false 를 돌려주었을 경우, false 를 돌려줍니다.

정의:
인터페이스 UndoableEdit 내의 isSignificant
오버라이드(override):
클래스 AbstractUndoableEdit 내의 isSignificant
반환값:
true
관련 항목:
UndoableEdit.isSignificant()

getPresentationName

public String  getPresentationName()
edits 에 추가된 마지막 UndoableEdit 로부터 getPresentationName 를 돌려줍니다. edits 가 비었을 경우, 슈퍼 클래스를 호출합니다.

정의:
인터페이스 UndoableEdit 내의 getPresentationName
오버라이드(override):
클래스 AbstractUndoableEdit 내의 getPresentationName
반환값:
하늘의 캐릭터 라인 ""
관련 항목:
AbstractUndoableEdit.getUndoPresentationName() , AbstractUndoableEdit.getRedoPresentationName()

getUndoPresentationName

public String  getUndoPresentationName()
edits 에 추가된 마지막 UndoableEdit 로부터 getUndoPresentationName 를 돌려줍니다. edits 가 비었을 경우, 슈퍼 클래스를 호출합니다.

정의:
인터페이스 UndoableEdit 내의 getUndoPresentationName
오버라이드(override):
클래스 AbstractUndoableEdit 내의 getUndoPresentationName
반환값:
getPresentationName 가 "" 나오지 않는 경우는 키 AbstractUndoableEdit.undoText 를 사용해 디폴트 테이블에서 취득한 값에, 공백 캐릭터 및 getPresentationName 를 추가한 값. getPresentationName 가 "" 의 경우는 디폴트 값만이 돌려주어진다.
관련 항목:
AbstractUndoableEdit.getPresentationName()

getRedoPresentationName

public String  getRedoPresentationName()
edits 에 추가된 마지막 UndoableEdit 로부터 getRedoPresentationName 를 돌려줍니다. edits 가 비었을 경우, 슈퍼 클래스를 호출합니다.

정의:
인터페이스 UndoableEdit 내의 getRedoPresentationName
오버라이드(override):
클래스 AbstractUndoableEdit 내의 getRedoPresentationName
반환값:
getPresentationName 가 "" 나오지 않는 경우는 키 AbstractUndoableEdit.redoText 를 사용해 디폴트 테이블에서 취득한 값의 뒤로 공백 캐릭터 및 getPresentationName 를 추가한 것. getPresentationName 가 "" 의 경우는 디폴트 값만이 돌려주어지는
관련 항목:
AbstractUndoableEdit.getPresentationName()

toString

public String  toString()
이 오브젝트의 프로퍼티를 표시 및 식별하는 캐릭터 라인을 돌려줍니다.

오버라이드(override):
클래스 AbstractUndoableEdit 내의 toString
반환값:
이 오브젝트의 캐릭터 라인 표현

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

버그의 보고와 기능의 리퀘스트
이외의 API 레퍼런스 및 개발자용 문서에 대해서는 Java 2 SDK SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

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.