javax.swing.text
类 DefaultStyledDocument.AttributeUndoableEdit
java.lang.Object
  
javax.swing.undo.AbstractUndoableEdit
      
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()
 
 
提交错误或意见版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。