|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.text.AbstractDocument.ElementEdit
public static class AbstractDocument.ElementEdit
一个 ElementChange 实现,可将其添加到文档事件中。
| 字段摘要 |
|---|
| 从类 javax.swing.undo.AbstractUndoableEdit 继承的字段 |
|---|
RedoName, UndoName |
| 构造方法摘要 | |
|---|---|
AbstractDocument.ElementEdit(Element e,
int index,
Element[] removed,
Element[] added)
构造一个编辑记录。 |
|
| 方法摘要 | |
|---|---|
Element[] |
getChildrenAdded()
获得已添加的子元素列表。 |
Element[] |
getChildrenRemoved()
获得已移除的子元素列表。 |
Element |
getElement()
返回基础元素。 |
int |
getIndex()
返回元素列表中的索引。 |
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 |
| 构造方法详细信息 |
|---|
public AbstractDocument.ElementEdit(Element e,
int index,
Element[] removed,
Element[] added)
e - 元素index - 模型中的索引,该索引 >= 0removed - 已移除的元素集added - 已添加的元素集| 方法详细信息 |
|---|
public Element getElement()
DocumentEvent.ElementChange 中的 getElementpublic int getIndex()
DocumentEvent.ElementChange 中的 getIndexpublic Element[] getChildrenRemoved()
DocumentEvent.ElementChange 中的 getChildrenRemovedpublic Element[] getChildrenAdded()
DocumentEvent.ElementChange 中的 getChildrenAdded
public void redo()
throws CannotRedoException
UndoableEdit 中的 redoAbstractUndoableEdit 中的 redoCannotRedoException - 如果无法重复执行该更改AbstractUndoableEdit.canRedo()
public void undo()
throws CannotUndoException
UndoableEdit 中的 undoAbstractUndoableEdit 中的 undoCannotUndoException - 如果无法撤消该更改AbstractUndoableEdit.canUndo()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。