javax.swing.text
类 DefaultStyledDocument.AttributeUndoableEdit
java.lang.Object
   javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.AbstractUndoableEdit
       javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit
javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit
- 所有已实现的接口: 
- Serializable, UndoableEdit
- 正在封闭类:
- DefaultStyledDocument
- public static class DefaultStyledDocument.AttributeUndoableEdit 
- extends AbstractUndoableEdit
用于记住 AttributeSet 对 Element 更改的一个 UndoableEdit。
 
 
 
| 方法摘要 | 
|  void | redo()重复更改。
 | 
|  void | undo()撤消更改。
 | 
 
 
 
newAttributes
protected AttributeSet newAttributes
copy
protected AttributeSet copy
isReplacing
protected boolean isReplacing
element
protected Element element
DefaultStyledDocument.AttributeUndoableEdit
public DefaultStyledDocument.AttributeUndoableEdit(Element element,
                                                   AttributeSet newAttributes,
                                                   boolean isReplacing)
redo
public void redo()
          throws CannotRedoException
- 重复更改。
 
- 
- 指定者:
- 接口 UndoableEdit中的redo
- 覆盖:
- 类 AbstractUndoableEdit中的redo
 
- 
- 抛出:
- CannotRedoException- 如果更改不可重复
- 另请参见:
- AbstractUndoableEdit.canRedo()
 
undo
public void undo()
          throws CannotUndoException
- 撤消更改。
 
- 
- 指定者:
- 接口 UndoableEdit中的undo
- 覆盖:
- 类 AbstractUndoableEdit中的undo
 
- 
- 抛出:
- CannotUndoException- 如果更改不可撤消
- 另请参见:
- AbstractUndoableEdit.canUndo()
 
提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。 版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。