public class CompoundEdit extends AbstractUndoableEdit
| Modifier and Type | Field and Description |
|---|---|
protected Vector<UndoableEdit> |
edits
对
UndoableEdits集合全体撤消/重做这个
CompoundEdit。
|
RedoName, UndoName| Constructor and Description |
|---|
CompoundEdit() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEdit(UndoableEdit anEdit)
如果这是
inProgress编辑,接受
anEdit返回true。
|
boolean |
canRedo()
如果
isInProgress或者超返回返回FALSE。
|
boolean |
canUndo()
如果
isInProgress或者超返回返回FALSE。
|
void |
die()
发送
die每任副编辑,在反向的命令,他们说。
|
void |
end()
集
inProgress假。
|
String |
getPresentationName()
返回
getPresentationName从去年
UndoableEdit加入
edits。
|
String |
getRedoPresentationName()
返回
getRedoPresentationName从去年
UndoableEdit加入
edits。
|
String |
getUndoPresentationName()
返回
getUndoPresentationName从去年
UndoableEdit加入
edits。
|
boolean |
isInProgress()
如果这个编辑正在进行中,也就是说,它没有收到结束。
|
boolean |
isSignificant()
返回true,如果任何的
UndoableEdits在
edits做。
|
protected UndoableEdit |
lastEdit()
返回
edits最后
UndoableEdit,或
null如果
edits是空的。
|
void |
redo()
发送
redo所有包含
UndoableEdits在秩序中,他们补充说。
|
String |
toString()
返回显示并标识该对象属性的字符串。
|
void |
undo()
发送
undo所有包含
UndoableEdits在它们的顺序添加反向。
|
replaceEditprotected Vector<UndoableEdit> edits
UndoableEdits撤消/重做这个
CompoundEdit全体集合。
public void undo()
throws CannotUndoException
undo所有包含
UndoableEdits在它们的顺序添加反向。
undo 接口
UndoableEdit
undo 方法重写,继承类
AbstractUndoableEdit
CannotUndoException -如果
canUndo返回
false
AbstractUndoableEdit.canUndo()
public void redo()
throws CannotRedoException
redo所有包含
UndoableEdits在秩序中,他们补充说。
redo 接口
UndoableEdit
redo 方法重写,继承类
AbstractUndoableEdit
CannotRedoException -如果
canRedo返回
false
AbstractUndoableEdit.canRedo()
protected UndoableEdit lastEdit()
edits最后
UndoableEdit,或
null如果
edits是空的。
public void die()
die每任副编辑,在反向的命令,他们说。
die 接口
UndoableEdit
die 方法重写,继承类
AbstractUndoableEdit
die()
public boolean addEdit(UndoableEdit anEdit)
inProgress编辑,接受
anEdit返回true。
最后编辑说这CompoundEdit是机会addEdit(anEdit)。如果它拒绝(false),anEdit是机会replaceEdit最后编辑。如果anEdit返回false,它被添加到edits。
addEdit 接口
UndoableEdit
addEdit 方法重写,继承类
AbstractUndoableEdit
anEdit -编辑要添加
inProgress真;否则返回假
UndoableEdit.addEdit(javax.swing.undo.UndoableEdit)
public boolean canUndo()
isInProgress或者超返回返回FALSE。
canUndo 接口
UndoableEdit
canUndo 方法重写,继承类
AbstractUndoableEdit
alive和
hasBeenDone是
true编辑
isInProgress()
public boolean canRedo()
isInProgress或者超返回返回FALSE。
canRedo 接口
UndoableEdit
canRedo 方法重写,继承类
AbstractUndoableEdit
true编辑
alive和
hasBeenDone是
false
isInProgress()
public boolean isInProgress()
end()
public boolean isSignificant()
UndoableEdits在
edits做。如果他们都返回假,则返回假。
isSignificant 接口
UndoableEdit
isSignificant 方法重写,继承类
AbstractUndoableEdit
UndoableEdit.isSignificant()
public String getPresentationName()
getPresentationName从去年
UndoableEdit加入
edits。如果
edits是空的,称为超。
getPresentationName 接口
UndoableEdit
getPresentationName 方法重写,继承类
AbstractUndoableEdit
AbstractUndoableEdit.getUndoPresentationName(),
AbstractUndoableEdit.getRedoPresentationName()
public String getUndoPresentationName()
getUndoPresentationName从去年
UndoableEdit加入
edits。如果
edits是空的,称为超。
getUndoPresentationName 接口
UndoableEdit
getUndoPresentationName 方法重写,继承类
AbstractUndoableEdit
AbstractUndoableEdit.undoText,紧随其后的是一个空间,其次是
getPresentationName除非
getPresentationName是”在这种情况下,默认值是一个人回来。
AbstractUndoableEdit.getPresentationName()
public String getRedoPresentationName()
getRedoPresentationName从去年
UndoableEdit加入
edits。如果
edits是空的,称为超。
getRedoPresentationName 接口
UndoableEdit
getRedoPresentationName 方法重写,继承类
AbstractUndoableEdit
AbstractUndoableEdit.redoText,紧随其后的是一个空间,其次是
getPresentationName除非
getPresentationName是”在这种情况下,默认值是一个人回来。
AbstractUndoableEdit.getPresentationName()
public String toString()
toString 方法重写,继承类
AbstractUndoableEdit
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.