public class UndoHandler extends Object implements UndoableEditListener
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
addEdits |
| 构造器和说明 |
|---|
UndoHandler(AbstractEditor editor,
boolean addEdits) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
setAddEdits(boolean addEdits) |
void |
undoableEditHappened(UndoableEditEvent e)
Messaged when the Document has created an edit, the edit is added to
undo, an instance of UndoManager. |
public UndoHandler(AbstractEditor editor, boolean addEdits)
public void undoableEditHappened(UndoableEditEvent e)
undo, an instance of UndoManager.undoableEditHappened 在接口中 UndoableEditListenerpublic void setAddEdits(boolean addEdits)
Copyright © 2023 onecode. All rights reserved.