public static class AbstractDocument.ElementEdit extends AbstractUndoableEdit implements DocumentEvent.ElementChange
RedoName, UndoName| コンストラクタ | 説明 |
|---|---|
ElementEdit(Element e, int index, Element[] removed, Element[] added) |
編集のレコードを構築します。
|
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
Element[] |
getChildrenAdded() |
追加された子のリストを取得します。
|
Element[] |
getChildrenRemoved() |
削除された子のリストを取得します。
|
Element |
getElement() |
処理対象の要素を返します。
|
int |
getIndex() |
要素のリスト内のインデックスを返します。
|
void |
redo() |
変更をやり直します。
|
void |
undo() |
変更を元に戻します。
|
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toStringpublic Element getElement()
getElement、インタフェースDocumentEvent.ElementChangepublic int getIndex()
getIndex、インタフェースDocumentEvent.ElementChangepublic Element[] getChildrenRemoved()
getChildrenRemoved、インタフェースDocumentEvent.ElementChangepublic Element[] getChildrenAdded()
getChildrenAdded、インタフェースDocumentEvent.ElementChangepublic void redo()
throws CannotRedoException
redo、インタフェースUndoableEditredo、クラスAbstractUndoableEditCannotRedoException - 変更のやり直しができない場合AbstractUndoableEdit.canRedo()public void undo()
throws CannotUndoException
undo、インタフェースUndoableEditundo、クラスAbstractUndoableEditCannotUndoException - 変更を元に戻せない場合AbstractUndoableEdit.canUndo() バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。