|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--javax.swing.undo.AbstractUndoableEdit | +--javax.swing.undo.CompoundEdit
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 |
필드의 상세 |
protected Vector 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
의 경우,true
isInProgress()
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 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.