| 接口 | 描述 | 
|---|---|
| StateEditable |  
          
           StateEditable定义了可以通过StateEdit使其状态撤消/重做的对象的接口。 
            |  
       
| UndoableEdit |  
          
           一个 
            UndoableEdit代表一个编辑。 
          |  
       
| 类 | 描述 | 
|---|---|
| AbstractUndoableEdit |  
          
           UndoableEdit的抽象实现, 
            UndoableEdit对该接口中所有布尔方法的简单响应。 
          |  
       
| CompoundEdit |  
          
           AbstractUndoableEdit的一个具体子类,用于将小的UndoableEdits组合成大型的。 
            |  
       
| StateEdit |  
          
           StateEdit是更改状态的对象的一般编辑。 
            |  
       
| UndoableEditSupport |  
          
           用于管理 
            UndoableEdit听众的支持类。 
          |  
       
| UndoManager |  
         UndoManager管理列表 
          UndoableEdits ,提供了一种方法来撤消或恢复适当的编辑。 
          |  
       
| 异常 | 描述 | 
|---|---|
| CannotRedoException |  
          
           抛出一个UndoableEdit被告知到 
            redo()而不能。 
          |  
       
| CannotUndoException |  
          
           抛出一个UndoableEdit被告知到 
            undo()并且不能。 
          |  
       
注意:大多数Swing API 不是线程安全的。 有关详细信息,请参阅Threads and Swing ,在部分The Java Tutorial 。
 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.