软件包 | 描述 |
---|---|
javax.swing.event |
提供由摆动组件触发的事件。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
javax.swing.undo |
允许开发人员在应用程序中提供支持,如文本编辑器中的撤消/重做。
|
Modifier and Type | Method and Description |
---|---|
UndoableEdit |
UndoableEditEvent.getEdit()
返回编辑值。
|
Constructor and Description |
---|
UndoableEditEvent(Object source, UndoableEdit edit)
构建了一个undoableeditevent对象。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDocument.DefaultDocumentEvent
当正在修改文档时,存储文档更改。
|
static class |
AbstractDocument.ElementEdit
一个实现elementchange可添加到文件事件。
|
static class |
DefaultStyledDocument.AttributeUndoableEdit
一个undoableedit用来记住attributeset改变元素。
|
Modifier and Type | Method and Description |
---|---|
UndoableEdit |
StringContent.insertString(int where, String str)
在内容中插入一个字符串。
|
UndoableEdit |
AbstractDocument.Content.insertString(int where, String str)
将一个字符串插入到序列中。
|
UndoableEdit |
GapContent.insertString(int where, String str)
在内容中插入一个字符串。
|
UndoableEdit |
StringContent.remove(int where, int nitems)
删除内容的一部分。
|
UndoableEdit |
AbstractDocument.Content.remove(int where, int nitems)
移除序列的某些部分。
|
UndoableEdit |
GapContent.remove(int where, int nitems)
删除内容的一部分。
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractDocument.DefaultDocumentEvent.addEdit(UndoableEdit anEdit)
添加文档编辑。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractUndoableEdit
UndoableEdit 的抽象实现,实现简单,界面反应的布尔方法。
|
class |
CompoundEdit
AbstractUndoableEdit的一个具体子类,用于组装成大的小undoableedits。
|
class |
StateEdit
stateedit是总编辑,改变对象的状态。
|
class |
UndoManager
UndoManager 管理
UndoableEdits 列表,提供一种方式来撤消或恢复适当的编辑。
|
Modifier and Type | Field and Description |
---|---|
protected Vector<UndoableEdit> |
CompoundEdit.edits
对
UndoableEdit s撤消/重做这个
CompoundEdit 全体集合。
|
Modifier and Type | Method and Description |
---|---|
protected UndoableEdit |
UndoManager.editToBeRedone()
返回下一个重要的编辑要重做如果
redo 调用。
|
protected UndoableEdit |
UndoManager.editToBeUndone()
返回下一个重要的编辑是如果
undo 调用撤消。
|
protected UndoableEdit |
CompoundEdit.lastEdit()
返回
edits 最后
UndoableEdit ,或
null 如果
edits 是空的。
|
Modifier and Type | Method and Description |
---|---|
protected void |
UndoableEditSupport._postEdit(UndoableEdit e)
只有从
postEdit 和
endUpdate 叫。
|
boolean |
UndoManager.addEdit(UndoableEdit anEdit)
增加了一个
UndoableEdit 这
UndoManager ,如果可能的话。
|
boolean |
UndoableEdit.addEdit(UndoableEdit anEdit)
增加了一个
UndoableEdit 这
UndoableEdit 。
|
boolean |
CompoundEdit.addEdit(UndoableEdit anEdit)
如果这是
inProgress 编辑,接受
anEdit 返回true。
|
boolean |
AbstractUndoableEdit.addEdit(UndoableEdit anEdit)
此默认实现返回错误。
|
void |
UndoableEditSupport.postEdit(UndoableEdit e)
僵局警告:调用此方法,可以在所有的听众打电话
undoableEditHappened 。
|
protected void |
UndoManager.redoTo(UndoableEdit edit)
重做所有的变化从下个指标编辑
edit ,更新下适当指标编辑。
|
boolean |
UndoableEdit.replaceEdit(UndoableEdit anEdit)
如果这
UndoableEdit 应该取代
anEdit 返回true。
|
boolean |
AbstractUndoableEdit.replaceEdit(UndoableEdit anEdit)
此默认实现返回错误。
|
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.