|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
public class CompoundEdit
복수의 소규모의 UndoableEdit 를 큰 편집 결과에 정리하기 위해서(때문에) 사용하는, AbstractUndoableEdit 의 구상 서브 클래스입니다.
필드의 개요 | |
---|---|
protected Vector <UndoableEdit > |
edits
이 CompoundEdit 에 의해 정리해 바탕으로 되돌리는/재실행하는 처리가 가해진 UndoableEdit 의 컬렉션입니다. |
클래스 javax.swing.undo. AbstractUndoableEdit 로부터 상속된 필드 |
---|
RedoName , UndoName |
생성자 의 개요 | |
---|---|
CompoundEdit ()
|
메소드의 개요 | |
---|---|
boolean |
addEdit (UndoableEdit anEdit)
이 편집 결과가 inProgress 인 경우,anEdit 를 받아들여 true 를 돌려줍니다. |
boolean |
canRedo ()
isInProgress 가 false 인 경우, 또는 슈퍼 클래스가 false 를 돌려주는 경우는 false 를 돌려줍니다. |
boolean |
canUndo ()
isInProgress 가 false 인 경우, 또는 슈퍼 클래스가 false 를 돌려주는 경우는 false 를 돌려줍니다. |
void |
die ()
각 편 집결과에 대해서, 그것이 추가되었을 때와 역의 순서로 die 를 보냅니다. |
void |
end ()
inProgress 를 false 로 설정합니다. |
String |
getPresentationName ()
edit 에 마지막에 추가된 UndoableEdit 로부터,getPresentationName 를 돌려줍니다. |
String |
getRedoPresentationName ()
edit 에 마지막에 추가된 UndoableEdit 로부터,getRedoPresentationName 를 돌려줍니다. |
String |
getUndoPresentationName ()
edit 에 마지막에 추가된 UndoableEdit 로부터,getUndoPresentationName 를 돌려줍니다. |
boolean |
isInProgress ()
이 편집 결과가 진행중의 경우, 즉, 아직 종료 지시를 받아들이지 않은 경우에, true 를 돌려줍니다. |
boolean |
isSignificant ()
복수의 edit 의 쳐 몇개의 UndoableEdit 가 true 를 돌려주는 경우에 true 를 돌려줍니다. |
protected UndoableEdit |
lastEdit ()
복수의 edit 의 쳐 마지막 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 <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()
edit
의 쳐 마지막 UndoableEdit
를 돌려줍니다. edit
가 빈 상태(empty)의 경우는 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
가 false 인 경우, 또는 슈퍼 클래스가 false 를 돌려주는 경우는 false 를 돌려줍니다.
UndoableEdit
내의 canUndo
AbstractUndoableEdit
내의 canUndo
alive
로,
hasBeenDone
가 true
인 경우는 trueisInProgress()
public boolean canRedo()
isInProgress
가 false 인 경우, 또는 슈퍼 클래스가 false 를 돌려주는 경우는 false 를 돌려줍니다.
UndoableEdit
내의 canRedo
AbstractUndoableEdit
내의 canRedo
alive
로,hasBeenDone
가
false
인 경우는 true
isInProgress()
public boolean isInProgress()
end()
public boolean isSignificant()
edit
의 쳐 몇개의 UndoableEdit
가 true 를 돌려주는 경우에 true 를 돌려줍니다. 모든 것이 false 를 돌려주는 경우는 false 를 돌려줍니다.
UndoableEdit
내의 isSignificant
AbstractUndoableEdit
내의 isSignificant
UndoableEdit.isSignificant()
public String getPresentationName()
edit
에 마지막에 추가된 UndoableEdit
로부터,getPresentationName
를 돌려줍니다. edits 가 빈 상태(empty)의 경우, 슈퍼 클래스를 호출합니다.
UndoableEdit
내의 getPresentationName
AbstractUndoableEdit
내의 getPresentationName
AbstractUndoableEdit.getUndoPresentationName()
,
AbstractUndoableEdit.getRedoPresentationName()
public String getUndoPresentationName()
edit
에 마지막에 추가된 UndoableEdit
로부터,getUndoPresentationName
를 돌려줍니다. edits 가 빈 상태(empty)의 경우, 슈퍼 클래스를 호출합니다.
UndoableEdit
내의 getUndoPresentationName
AbstractUndoableEdit
내의 getUndoPresentationName
getPresentationName
가 "" 나오지 않는 경우는,
키 AbstractUndoableEdit.undoText
를 사용해
디폴트 테이블에서 취득한 값에, 공백 문자와 getPresentationName
를
추가한 값. 그렇지 않은 경우는
디폴트의 값만이 반환되는AbstractUndoableEdit.getPresentationName()
public String getRedoPresentationName()
edit
에 마지막에 추가된 UndoableEdit
로부터,getRedoPresentationName
를 돌려줍니다. edits 가 빈 상태(empty)의 경우, 슈퍼 클래스를 호출합니다.
UndoableEdit
내의 getRedoPresentationName
AbstractUndoableEdit
내의 getRedoPresentationName
getPresentationName
가 "" 나오지 않는 경우는,
키 AbstractUndoableEdit.redoText
를 사용해
디폴트 테이블에서 취득한 값에, 공백 문자와 getPresentationName
를
추가한 값. 그렇지 않은 경우는
디폴트의 값만이 반환되는AbstractUndoableEdit.getPresentationName()
public String toString()
AbstractUndoableEdit
내의 toString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.