java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit
- 所有已实现的接口:
Serializable,UndoableEdit
UndoableEdit 用于记住元素的 AttributeSet 更改。
-
字段摘要
字段修饰符和类型Field描述protected AttributeSet元素包含的 AttributeSet 的副本。protected Element受影响的元素。protected boolean如果首先删除元素中的所有属性,则为 true。protected AttributeSet包含附加条目的 AttributeSet 必须是不可变的!在类 javax.swing.undo.AbstractUndoableEdit 中声明的字段
RedoName, UndoName -
构造方法总结
构造方法构造方法描述AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing) 构造一个AttributeUndoableEdit。 -
方法总结
在类 javax.swing.undo.AbstractUndoableEdit 中声明的方法
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
字段详细信息
-
newAttributes
包含附加条目的 AttributeSet 必须是不可变的! -
copy
元素包含的 AttributeSet 的副本。 -
isReplacing
protected boolean isReplacing如果首先删除元素中的所有属性,则为 true。 -
element
受影响的元素。
-
-
构造方法详细信息
-
AttributeUndoableEdit
构造一个AttributeUndoableEdit。- 参数:
element- 元素newAttributes- 新属性isReplacing- 如果首先删除元素中的所有属性,则为真。
-
-
方法详情
-
redo
重做一个改变。- 指定者:
redo在接口UndoableEdit中- 重写:
redo在类AbstractUndoableEdit中- 抛出:
CannotRedoException- 如果无法重做更改- 参见:
-
undo
撤消更改。- 指定者:
undo在接口UndoableEdit中- 重写:
undo在类AbstractUndoableEdit中- 抛出:
CannotUndoException- 如果更改无法撤消- 参见:
-