软件包 | 描述 |
---|---|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
javax.swing.undo |
允许开发人员在应用程序中提供支持,如文本编辑器中的撤消/重做。
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractDocument.DefaultDocumentEvent.undo()
撤消更改。
|
void |
AbstractDocument.ElementEdit.undo()
撤消更改。
|
void |
DefaultStyledDocument.AttributeUndoableEdit.undo()
撤消更改。
|
Modifier and Type | Method and Description |
---|---|
void |
UndoManager.undo()
撤销相应的编辑。
|
void |
UndoableEdit.undo()
撤消编辑。
|
void |
CompoundEdit.undo()
发送
undo 所有包含
UndoableEdits 在它们的顺序添加反向。
|
void |
AbstractUndoableEdit.undo()
如果把
CannotUndoException
canUndo 返回
false 。
|
void |
UndoManager.undoOrRedo()
方便的方法,调用一
undo 或
redo 。
|
protected void |
UndoManager.undoTo(UndoableEdit edit)
撤消所有的变化,从下一个索引编辑
edit ,更新下适当指标编辑。
|
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.