JavaTM 2 Platform
Standard Ed. 6

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。


字段摘要
protected  AttributeSet copy
           
protected  Element element
           
protected  boolean isReplacing
           
protected  AttributeSet newAttributes
           
 
从类 javax.swing.undo.AbstractUndoableEdit 继承的字段
RedoName, UndoName
 
构造方法摘要
DefaultStyledDocument.AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)
           
 
方法摘要
 void redo()
          重复更改。
 void undo()
          撤消更改。
 
从类 javax.swing.undo.AbstractUndoableEdit 继承的方法
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

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()

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only