- java.lang.Object
 -  
      
- javax.swing.undo.AbstractUndoableEdit
 -  
        
- javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit
 
 
 
-  
       
- 实现的所有接口
 -  
         
Serializable,UndoableEdit 
- Enclosing class:
 - DefaultStyledDocument
 
public static class DefaultStyledDocument.AttributeUndoableEdit extends AbstractUndoableEdit
UndoableEdit用于记住对Element的AttributeSet更改。- 另请参见:
 - Serialized Form
 
 
-  
        
       
-  
             
字段汇总
字段 变量和类型 字段 描述 protected AttributeSetcopyElement包含的AttributeSet的副本。protected Elementelement受影响的元素。protected booleanisReplacing如果首先删除元素中的所有属性,则为true。protected AttributeSetnewAttributes包含其他条目的AttributeSet必须是不可变的!-  
               
声明的属性在类 javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName 
 -  
               
 
-  
             
构造方法摘要
构造方法 构造器 描述 AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)构造一个AttributeUndoableEdit。 
-  
             
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 voidredo()重做改变。voidundo()撤消改变。-  
               
声明方法的类 javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
字段详细信息
-  
newAttributes
protected AttributeSet newAttributes
包含其他条目的AttributeSet必须是不可变的! 
-  
copy
protected AttributeSet copy
Element包含的AttributeSet的副本。 
-  
isReplacing
protected boolean isReplacing
如果首先删除元素中的所有属性,则为true。 
-  
element
protected Element element
受影响的元素。 
 -  
 
-  
             
构造方法详细信息
-  
AttributeUndoableEdit
public AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)
构造一个AttributeUndoableEdit。- 参数
 -  
              
element- 元素 -  
              
newAttributes- 新属性 -  
              
isReplacing- 如果首先删除元素中的所有属性,isReplacingtrue。 
 
 -  
 
-  
             
方法详细信息
-  
redo
public void redo() throws CannotRedoException重做改变。- Specified by:
 -  
              
redo在界面UndoableEdit - 重写:
 -  
              
redo在类AbstractUndoableEdit - 异常
 -  
              
CannotRedoException- 如果无法重做更改 - 另请参见:
 -  
              
AbstractUndoableEdit.canRedo() 
 
-  
undo
public void undo() throws CannotUndoException撤消改变。- Specified by:
 -  
              
undo在界面UndoableEdit - 重写:
 -  
              
undo在类AbstractUndoableEdit - 异常
 -  
              
CannotUndoException- 如果无法撤消更改 - 另请参见:
 -  
              
AbstractUndoableEdit.canUndo() 
 
 -  
 
 -