软件包 | 描述 |
---|---|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
javax.swing.undo |
允许开发人员在应用程序中提供支持,如文本编辑器中的撤消/重做。
|
Modifier and Type | Method and Description |
---|---|
UndoableEditListener[] |
AbstractDocument.getUndoableEditListeners()
返回一个数组的所有撤消编辑这个文件注册的监听器。
|
Modifier and Type | Method and Description |
---|---|
void |
Document.addUndoableEditListener(UndoableEditListener listener)
寄存器给出的观察开始时接收通知撤消修改了该文件。
|
void |
AbstractDocument.addUndoableEditListener(UndoableEditListener listener)
添加一个撤消侦听器以更改任何更改的通知。
|
void |
Document.removeUndoableEditListener(UndoableEditListener listener)
将给定的观察名单的通知,将不再接收更新。
|
void |
AbstractDocument.removeUndoableEditListener(UndoableEditListener listener)
移除一个撤消侦听器。
|
Modifier and Type | Class and Description |
---|---|
class |
UndoManager
UndoManager 管理
UndoableEdits 列表,提供一种方式来撤消或恢复适当的编辑。
|
Modifier and Type | Field and Description |
---|---|
protected Vector<UndoableEditListener> |
UndoableEditSupport.listeners |
Modifier and Type | Method and Description |
---|---|
UndoableEditListener[] |
UndoableEditSupport.getUndoableEditListeners()
返回所有的
UndoableEditListener s数组添加到这个undoableeditsupport与addundoableeditlistener()。
|
Modifier and Type | Method and Description |
---|---|
void |
UndoableEditSupport.addUndoableEditListener(UndoableEditListener l)
注册一个
UndoableEditListener 。
|
void |
UndoableEditSupport.removeUndoableEditListener(UndoableEditListener l)
删除一个
UndoableEditListener 。
|
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.