|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
public class AbstractUndoableEdit
UndoableEdit
의 추상 구현으로, 이 인터페이스의 모든 boolean 형 메소드에 대해서 간단한 응답을 구현합니다.
필드의 개요 | |
---|---|
protected static String |
RedoName
getUndoPresentationName 에 의해 반환되는 캐릭터 라인입니다. |
protected static String |
UndoName
getUndoPresentationName 에 의해 반환되는 캐릭터 라인입니다. |
생성자 의 개요 | |
---|---|
AbstractUndoableEdit ()
hasBeenDone 와 alive 가 디폴트로 true 가 되는 AbstractUndoableEdit 를 작성합니다. |
메소드의 개요 | |
---|---|
boolean |
addEdit (UndoableEdit anEdit)
이 디폴트 구현은 false 를 돌려줍니다. |
boolean |
canRedo ()
이 편집 결과가 alive 이며,hasBeenDone 가 false 인 경우에 true 를 돌려줍니다. |
boolean |
canUndo ()
이 편집 결과가 alive 이며,hasBeenDone 가 false 인 경우에 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 ()
canUndo 가 false 를 돌려주는 경우에 CannotUndoException 를 throw 합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
필드의 상세 |
---|
protected static final String UndoName
getUndoPresentationName
에 의해 반환되는 캐릭터 라인입니다. Java 2 플랫폼 1.3. 1 이후에서는, 이 필드는 사용되지 않게 되었습니다. 이 값은 로컬라이즈 되고 있어 키 AbstractUndoableEdit.undoText
를 사용하는 것으로 디폴트 테이블에서 취득할 수 있습니다.
UIDefaults
,
정수 필드치 protected static final String RedoName
getUndoPresentationName
에 의해 반환되는 캐릭터 라인입니다. Java 2 플랫폼 1.3. 1 이후에서는, 이 필드는 사용되지 않게 되었습니다. 이 값은 로컬라이즈 되고 있어 키 AbstractUndoableEdit.redoText
를 사용하는 것으로 디폴트 테이블에서 취득할 수 있습니다.
UIDefaults
,
정수 필드치 생성자 의 상세 |
---|
public AbstractUndoableEdit()
hasBeenDone
와 alive
가 디폴트로 true
가 되는 AbstractUndoableEdit
를 작성합니다.
메소드의 상세 |
---|
public void die()
alive
를 false 로 설정합니다. 이것은 한방향의 조작으로, 비생존 상태의 편집 결과를 부활시킬 수 없습니다. undo
또는 redo
를 비생존 상태의 편집 결과에 보내면(자), 결과적으로 예외가 throw 됩니다.
일반적으로, 다른 편집 결과의 addEdit
메소드 또는 replaceEdit
메소드로 연결되거나UndoManager
로부터 대기가 해제되면(자), 편집 결과는 비생존 상태에 있습니다.
UndoableEdit
내의 die
CompoundEdit.die()
public void undo() throws CannotUndoException
canUndo
가 false
를 돌려주는 경우에 CannotUndoException
을 throw 합니다. hasBeenDone
를 false
로 설정합니다. 이 편집 결과로 나타내지는 조작을 바탕으로 되돌리기 위해서(때문에), 서브 클래스에 의한 오버라이드(override)를 합니다. 오버라이드(override)는, 슈퍼 클래스에의 호출로 시작됩니다.
UndoableEdit
내의 undo
CannotUndoException
- canUndo
가
false
를 돌려주는 경우canUndo()
public boolean canUndo()
alive
이며,hasBeenDone
가 false
인 경우에 true 를 돌려줍니다.
UndoableEdit
내의 canUndo
alive
로,
hasBeenDone
가 true
인 경우는 truedie()
,
undo()
,
redo()
public void redo() throws CannotRedoException
canRedo
가 false 를 돌려주는 경우에 CannotRedoException
를 throw 합니다. hasBeenDone
을 true
로 설정합니다. 이 편집으로 나타내지는 조작을 재실행하기 위해서, 서브 클래스에 의한 오버라이드(override)를 합니다. 오버라이드(override)는, 슈퍼 클래스에의 호출로 시작됩니다.
UndoableEdit
내의 redo
CannotRedoException
- canRedo
가
false
를 돌려주는 경우canRedo()
public boolean canRedo()
alive
이며,hasBeenDone
가 false
인 경우에 true
를 돌려줍니다.
UndoableEdit
내의 canRedo
alive
로,hasBeenDone
가
false
인 경우는 true
die()
,
undo()
,
redo()
public boolean addEdit(UndoableEdit anEdit)
UndoableEdit
내의 addEdit
anEdit
- 추가되는 편집 결과
UndoableEdit.addEdit(javax.swing.undo.UndoableEdit)
public boolean replaceEdit(UndoableEdit anEdit)
UndoableEdit
내의 replaceEdit
anEdit
- 옮겨놓는 편집 결과
UndoableEdit.replaceEdit(javax.swing.undo.UndoableEdit)
public boolean isSignificant()
UndoableEdit
내의 isSignificant
UndoableEdit.isSignificant()
public String getPresentationName()
getUndoPresentationName
과 getRedoPresentationName
가 돌려주는 캐릭터 라인을 구축하기 위해서 사용됩니다. 이 편집 결과가 나타내는 조작의 적절한 기술을 돌려주기 위해서(때문에), 서브 클래스에 의한 오버라이드(override)를 합니다.
UndoableEdit
내의 getPresentationName
getUndoPresentationName()
,
getRedoPresentationName()
public String getUndoPresentationName()
AbstractUndoableEdit.undoText
를 사용해 디폴트 테이블에서 값을 취득해, 그 값의 뒤로 공백 문자 및 getPresentationName
를 추가한 것을 돌려줍니다. getPresentationName 가 "" 를 돌려주는 경우는, 디폴트 값만이 돌려주어집니다.
UndoableEdit
내의 getUndoPresentationName
getPresentationName
가 "" 나오지 않는 경우는,
키 AbstractUndoableEdit.undoText
를 사용해
디폴트 테이블에서 취득한 값에, 공백 문자와 getPresentationName
를
추가한 값. 그렇지 않은 경우는
디폴트의 값만이 반환되는getPresentationName()
public String getRedoPresentationName()
AbstractUndoableEdit.redoText
를 사용해 디폴트 테이블에서 값을 취득해, 그 값의 뒤로 공백 문자 및 getPresentationName
를 추가한 것을 돌려줍니다. getPresentationName 가 "" 를 돌려주는 경우는, 디폴트 값만이 돌려주어집니다.
UndoableEdit
내의 getRedoPresentationName
getPresentationName
가 "" 나오지 않는 경우는,
키 AbstractUndoableEdit.redoText
를 사용해
디폴트 테이블에서 취득한 값에, 공백 문자와 getPresentationName
를
추가한 값. 그렇지 않은 경우는
디폴트의 값만이 반환되는getPresentationName()
public String toString()
Object
내의 toString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.