JavaTM Platform
Standard Ed. 6

javax.swing.undo
클래스 AbstractUndoableEdit

java.lang.Object 
  상위를 확장 javax.swing.undo.AbstractUndoableEdit
모든 구현된 인터페이스:
Serializable , UndoableEdit
직계의 기존의 서브 클래스:
AbstractDocument.ElementEdit , CompoundEdit , DefaultStyledDocument.AttributeUndoableEdit , StateEdit


public class AbstractUndoableEdit
extends Object
implements UndoableEdit , Serializable

UndoableEdit 의 추상 구현으로, 이 인터페이스의 모든 boolean 형 메소드에 대해서 간단한 응답을 구현합니다.


필드의 개요
protected static String RedoName
          getUndoPresentationName 에 의해 반환되는 캐릭터 라인입니다.
protected static String UndoName
          getUndoPresentationName 에 의해 반환되는 캐릭터 라인입니다.
 
생성자 의 개요
AbstractUndoableEdit ()
          hasBeenDonealive 가 디폴트로 true 가 되는 AbstractUndoableEdit 를 작성합니다.
 
메소드의 개요
 boolean addEdit (UndoableEdit  anEdit)
          이 디폴트 구현은 false 를 돌려줍니다.
 boolean canRedo ()
          이 편집 결과가 alive 이며,hasBeenDonefalse 인 경우에 true 를 돌려줍니다.
 boolean canUndo ()
          이 편집 결과가 alive 이며,hasBeenDonefalse 인 경우에 true 를 돌려줍니다.
 void die ()
          alive 를 false 로 설정합니다.
 String getPresentationName ()
          이 디폴트 구현은 "" 을 돌려줍니다.
 String getRedoPresentationName ()
          키 AbstractUndoableEdit.redoText 를 사용해 디폴트 테이블에서 값을 취득해, 그 값의 뒤로 공백 문자 및 getPresentationName 를 추가한 것을 돌려줍니다.
 String getUndoPresentationName ()
          키 AbstractUndoableEdit.undoText 를 사용해 디폴트 테이블에서 값을 취득해, 그 값의 뒤로 공백 문자 및 getPresentationName 를 추가한 것을 돌려줍니다.
 boolean isSignificant ()
          이 디폴트 구현은 true 를 돌려줍니다.
 void redo ()
          canRedo 가 false 를 돌려주는 경우에 CannotRedoException 를 throw 합니다.
 boolean replaceEdit (UndoableEdit  anEdit)
          이 디폴트 구현은 false 를 돌려줍니다.
 String toString ()
          이 객체의 프로퍼티을 표시 및 식별하는 캐릭터 라인을 돌려줍니다.
 void undo ()
          canUndofalse 를 돌려주는 경우에 CannotUndoException 를 throw 합니다.
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

필드의 상세

UndoName

protected static final String  UndoName
getUndoPresentationName 에 의해 반환되는 캐릭터 라인입니다. Java 2 플랫폼 1.3. 1 이후에서는, 이 필드는 사용되지 않게 되었습니다. 이 값은 로컬라이즈 되고 있어 키 AbstractUndoableEdit.undoText 를 사용하는 것으로 디폴트 테이블에서 취득할 수 있습니다.

관련 항목:
UIDefaults , 정수 필드치

RedoName

protected static final String  RedoName
getUndoPresentationName 에 의해 반환되는 캐릭터 라인입니다. Java 2 플랫폼 1.3. 1 이후에서는, 이 필드는 사용되지 않게 되었습니다. 이 값은 로컬라이즈 되고 있어 키 AbstractUndoableEdit.redoText 를 사용하는 것으로 디폴트 테이블에서 취득할 수 있습니다.

관련 항목:
UIDefaults , 정수 필드치
생성자 의 상세

AbstractUndoableEdit

public AbstractUndoableEdit()
hasBeenDonealive 가 디폴트로 true 가 되는 AbstractUndoableEdit 를 작성합니다.

메소드의 상세

die

public void die()
alive 를 false 로 설정합니다. 이것은 한방향의 조작으로, 비생존 상태의 편집 결과를 부활시킬 수 없습니다. undo 또는 redo 를 비생존 상태의 편집 결과에 보내면(자), 결과적으로 예외가 throw 됩니다.

일반적으로, 다른 편집 결과의 addEdit 메소드 또는 replaceEdit 메소드로 연결되거나UndoManager 로부터 대기가 해제되면(자), 편집 결과는 비생존 상태에 있습니다.

정의:
인터페이스 UndoableEdit 내의 die
관련 항목:
CompoundEdit.die()

undo

public void undo()
          throws CannotUndoException 
canUndofalse 를 돌려주는 경우에 CannotUndoException 을 throw 합니다. hasBeenDonefalse 로 설정합니다. 이 편집 결과로 나타내지는 조작을 바탕으로 되돌리기 위해서(때문에), 서브 클래스에 의한 오버라이드(override)를 합니다. 오버라이드(override)는, 슈퍼 클래스에의 호출로 시작됩니다.

정의:
인터페이스 UndoableEdit 내의 undo
예외:
CannotUndoException - canUndofalse 를 돌려주는 경우
관련 항목:
canUndo()

canUndo

public boolean canUndo()
이 편집 결과가 alive 이며,hasBeenDonefalse 인 경우에 true 를 돌려줍니다.

정의:
인터페이스 UndoableEdit 내의 canUndo
반환값:
이 편집 결과가 alive 로, hasBeenDonetrue 인 경우는 true
관련 항목:
die() , undo() , redo()

redo

public void redo()
          throws CannotRedoException 
canRedo 가 false 를 돌려주는 경우에 CannotRedoException 를 throw 합니다. hasBeenDonetrue 로 설정합니다. 이 편집으로 나타내지는 조작을 재실행하기 위해서, 서브 클래스에 의한 오버라이드(override)를 합니다. 오버라이드(override)는, 슈퍼 클래스에의 호출로 시작됩니다.

정의:
인터페이스 UndoableEdit 내의 redo
예외:
CannotRedoException - canRedofalse 를 돌려주는 경우
관련 항목:
canRedo()

canRedo

public boolean canRedo()
이 편집 결과가 alive 이며,hasBeenDonefalse 인 경우에 true 를 돌려줍니다.

정의:
인터페이스 UndoableEdit 내의 canRedo
반환값:
이 편집 결과가 alive 로,hasBeenDonefalse 인 경우는 true
관련 항목:
die() , undo() , redo()

addEdit

public boolean addEdit(UndoableEdit  anEdit)
이 디폴트 구현은 false 를 돌려줍니다.

정의:
인터페이스 UndoableEdit 내의 addEdit
파라미터:
anEdit - 추가되는 편집 결과
반환값:
false
관련 항목:
UndoableEdit.addEdit(javax.swing.undo.UndoableEdit)

replaceEdit

public boolean replaceEdit(UndoableEdit  anEdit)
이 디폴트 구현은 false 를 돌려줍니다.

정의:
인터페이스 UndoableEdit 내의 replaceEdit
파라미터:
anEdit - 옮겨놓는 편집 결과
반환값:
false
관련 항목:
UndoableEdit.replaceEdit(javax.swing.undo.UndoableEdit)

isSignificant

public boolean isSignificant()
이 디폴트 구현은 true 를 돌려줍니다.

정의:
인터페이스 UndoableEdit 내의 isSignificant
반환값:
true
관련 항목:
UndoableEdit.isSignificant()

getPresentationName

public String  getPresentationName()
이 디폴트 구현은 "" 을 돌려줍니다. 이 메소드는,getUndoPresentationNamegetRedoPresentationName 가 돌려주는 캐릭터 라인을 구축하기 위해서 사용됩니다. 이 편집 결과가 나타내는 조작의 적절한 기술을 돌려주기 위해서(때문에), 서브 클래스에 의한 오버라이드(override)를 합니다.

정의:
인터페이스 UndoableEdit 내의 getPresentationName
반환값:
빈 상태(empty)의 캐릭터 라인 ""
관련 항목:
getUndoPresentationName() , getRedoPresentationName()

getUndoPresentationName

public String  getUndoPresentationName()
AbstractUndoableEdit.undoText 를 사용해 디폴트 테이블에서 값을 취득해, 그 값의 뒤로 공백 문자 및 getPresentationName 를 추가한 것을 돌려줍니다. getPresentationName 가 "" 를 돌려주는 경우는, 디폴트 값만이 돌려주어집니다.

정의:
인터페이스 UndoableEdit 내의 getUndoPresentationName
반환값:
getPresentationName 가 "" 나오지 않는 경우는, 키 AbstractUndoableEdit.undoText 를 사용해 디폴트 테이블에서 취득한 값에, 공백 문자와 getPresentationName 를 추가한 값. 그렇지 않은 경우는 디폴트의 값만이 반환되는
관련 항목:
getPresentationName()

getRedoPresentationName

public String  getRedoPresentationName()
AbstractUndoableEdit.redoText 를 사용해 디폴트 테이블에서 값을 취득해, 그 값의 뒤로 공백 문자 및 getPresentationName 를 추가한 것을 돌려줍니다. getPresentationName 가 "" 를 돌려주는 경우는, 디폴트 값만이 돌려주어집니다.

정의:
인터페이스 UndoableEdit 내의 getRedoPresentationName
반환값:
getPresentationName 가 "" 나오지 않는 경우는, 키 AbstractUndoableEdit.redoText 를 사용해 디폴트 테이블에서 취득한 값에, 공백 문자와 getPresentationName 를 추가한 값. 그렇지 않은 경우는 디폴트의 값만이 반환되는
관련 항목:
getPresentationName()

toString

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

오버라이드(override):
클래스 Object 내의 toString
반환값:
이 객체의 캐릭터 라인 표현

JavaTM Platform
Standard Ed. 6

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

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.